plugins/include/entity.inc
changeset 555 e4af2e799a6a
parent 554 acf114bd5fd6
child 556 494400c877f6
     1.1 --- a/plugins/include/entity.inc	Fri Mar 02 00:52:55 2007 +0000
     1.2 +++ b/plugins/include/entity.inc	Fri Mar 02 01:21:43 2007 +0000
     1.3 @@ -18,6 +18,22 @@
     1.4  #endif
     1.5  #define _entity_included
     1.6  
     1.7 +
     1.8 +/**
     1.9 + * For more information on these, see the HL2SDK (public/edict.h)
    1.10 + */
    1.11 +#define FL_EDICT_CHANGED	(1<<0)	/**< Game DLL sets this when the entity state changes
    1.12 +										 Mutually exclusive with FL_EDICT_PARTIAL_CHANGE. */
    1.13 +#define FL_EDICT_FREE		(1<<1)	/**< this edict if free for reuse */
    1.14 +#define FL_EDICT_FULL		(1<<2)	/**< this is a full server entity */
    1.15 +#define FL_EDICT_FULLCHECK	(0<<0)  /**< call ShouldTransmit() each time, this is a fake flag */
    1.16 +#define FL_EDICT_ALWAYS		(1<<3)	/**< always transmit this entity */
    1.17 +#define FL_EDICT_DONTSEND	(1<<4)	/**< don't transmit this entity */
    1.18 +#define FL_EDICT_PVSCHECK	(1<<5)	/**< always transmit entity, but cull against PVS */
    1.19 +#define FL_EDICT_PENDING_DORMANT_CHECK	(1<<6)
    1.20 +#define FL_EDICT_DIRTY_PVS_INFORMATION	(1<<7)
    1.21 +#define FL_FULL_EDICT_CHANGED			(1<<8)
    1.22 +
    1.23  /**
    1.24   * Returns the maximum number of entities.
    1.25   *
    1.26 @@ -36,7 +52,7 @@
    1.27   * Returns whether or not an entity is valid.  Returns false
    1.28   * if there is no matching CBaseEntity for this edict index.
    1.29   *
    1.30 - * @param edict			Index of the entity.
    1.31 + * @param edict			Index of the entity/edict.
    1.32   * @return				True if valid, false otherwise.
    1.33   */
    1.34  native bool:IsValidEntity(edict);
    1.35 @@ -50,17 +66,44 @@
    1.36  native bool:IsValidEdict(edict);
    1.37  
    1.38  /**
    1.39 + * Returns whether or not an entity is a valid networkable edict.
    1.40 + *
    1.41 + * @param edict			Index of the edict.
    1.42 + * @return				True if networkable, false if invalid or not networkable.
    1.43 + */
    1.44 +native bool:IsEntNetworkable(edict);
    1.45 +
    1.46 +/**
    1.47   * Creates a new edict (the basis of a networkable entity)
    1.48   *
    1.49 - * @return				Index of the entity, 0 on failure.
    1.50 + * @return				Index of the edict, 0 on failure.
    1.51   */
    1.52  native CreateEdict();
    1.53  
    1.54  /** 
    1.55   * Removes an edict from the world.
    1.56   *
    1.57 - * @param edict			Index of the entity.
    1.58 + * @param edict			Index of the edict.
    1.59   * @noreturn
    1.60 - * @error				Invalid entity index.
    1.61 + * @error				Invalid edict index.
    1.62   */
    1.63  native RemoveEdict(edict);
    1.64 +
    1.65 +/**
    1.66 + * Returns the flags on an edict.  These are not the same as entity flags.
    1.67 + *
    1.68 + * @param edict			Index of the entity.
    1.69 + * @return				Edict flags.
    1.70 + * @error				Invalid edict index.
    1.71 + */
    1.72 +native GetEdictFlags(edict);
    1.73 +
    1.74 +/**
    1.75 + * Sets the flags on an edict.  These are not the same as entity flags.
    1.76 + *
    1.77 + * @param edict			Index of the entity.
    1.78 + * @param flags			Flags to set.
    1.79 + * @noreturn
    1.80 + * @error				Invalid edict index.
    1.81 + */
    1.82 +native SetEdictFlags(edict, flags);
    1.83 \ No newline at end of file