From 707bf993d413a73a7fba77deb0eea0727fd45c66 Mon Sep 17 00:00:00 2001 From: ALord7 <124674138+ALord7@users.noreply.github.com> Date: Tue, 27 Aug 2024 10:55:13 +0800 Subject: [PATCH] Update Moveable.cpp --- game/Moveable.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/game/Moveable.cpp b/game/Moveable.cpp index e3458b3..706b0b5 100644 --- a/game/Moveable.cpp +++ b/game/Moveable.cpp @@ -175,6 +175,10 @@ void idMoveable::Spawn( void ) { if ( spawnArgs.GetBool( "nonsolid" ) ) { BecomeNonSolid(); } + if ( spawnArgs.GetBool( "gibclear" ) ) { // makes the moveable burn at spawn, i don't know if this works!!! + GetRenderEntity()->shaderParms[SHADERPARM_TIME_OF_DEATH] = gameLocal.time * 0.001f; // darknar, test custom gib clear for splat moveable for optimization + PostEventMS( &EV_Remove, 4000 ); // darknar, remove this after 4 seconds + } allowStep = spawnArgs.GetBool( "allowStep", "1" );