CServerOnlyPointEntity
Class hierarchy |
---|
CServerOnlyPointEntity |
baseentity.h
|
Server only equivalent of CPointEntity. Its super class is CServerOnlyEntity thus entities inheriting this won't have edicts.
Prevents entities from changing mins/maxs via keyvalues
bool CServerOnlyPointEntity::KeyValue( const char *szKeyName, const char *szValue )
{
if ( FStrEq( szKeyName, "mins" ) || FStrEq( szKeyName, "maxs" ) )
{
Warning("Warning! Can't specify mins/maxs for point entities! (%s)\n", GetClassname() );
return true;
}
return BaseClass::KeyValue( szKeyName, szValue );
}
See Also
- CLogicalEntity - the only difference from CServerOnlyPointEntity is the name (at least in source code)