prop_dynamic: Now solid by default, unless spawnflags bit 256 is set.
This commit is contained in:
parent
24b00565e3
commit
8bf7315253
1 changed files with 8 additions and 2 deletions
|
@ -14,7 +14,7 @@
|
|||
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/*QUAKED prop_dynamic (0 0.2 1) (-8 -8 -8) (8 8 8) SF_BASIC_COL
|
||||
/*QUAKED prop_dynamic (0 0.2 1) (-8 -8 -8) (8 8 8) x x x x x x x x PRPDYN_NONSOLID
|
||||
Client-side decorative model entity.
|
||||
|
||||
-------- KEYS --------
|
||||
|
@ -27,6 +27,8 @@ Client-side decorative model entity.
|
|||
This entity was introduced in Half-Life 2 (2004).
|
||||
*/
|
||||
|
||||
#define PRPDYN_NONSOLID 256
|
||||
|
||||
class prop_dynamic:NSSurfacePropEntity
|
||||
{
|
||||
void(void) prop_dynamic;
|
||||
|
@ -39,7 +41,11 @@ prop_dynamic::Respawn(void)
|
|||
{
|
||||
super::Respawn();
|
||||
SetModel(GetSpawnModel());
|
||||
SetSolid(SOLID_CORPSE);
|
||||
|
||||
if (spawnflags & PRPDYN_NONSOLID)
|
||||
SetSolid(SOLID_NOT);
|
||||
else
|
||||
SetSolid(SOLID_BBOX);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in a new issue