Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/game/server/world.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,16 @@ END_DATADESC()

LINK_ENTITY_TO_CLASS( infodecal, CDecal );

bool CWorld::AcceptInput(const char *szInputName, CBaseEntity *pActivator, CBaseEntity *pCaller, variant_t Value, int outputID)
{
if (FStrEq(szInputName, "Kill"))
{
Warning("Prevented kill input on worldspawn from firing! Be careful next time.\n");
return false; // block the kill
}
return BaseClass::AcceptInput(szInputName, pActivator, pCaller, Value, outputID);
}

// UNDONE: These won't get sent to joining players in multi-player
void CDecal::Spawn( void )
{
Expand Down
2 changes: 2 additions & 0 deletions src/game/server/world.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ class CWorld : public CBaseEntity
virtual void VPhysicsCollision( int index, gamevcollisionevent_t *pEvent ) {}
virtual void VPhysicsFriction( IPhysicsObject *pObject, float energy, int surfaceProps, int surfacePropsHit ) {}

virtual bool AcceptInput(const char *szInputName, CBaseEntity *pActivator, CBaseEntity *pCaller, variant_t Value, int outputID);

inline void GetWorldBounds( Vector &vecMins, Vector &vecMaxs )
{
VectorCopy( m_WorldMins, vecMins );
Expand Down