From 27339449c067a00d9997a2d71a3c8f7ab4d070cb Mon Sep 17 00:00:00 2001 From: SanyaSho Date: Tue, 16 Aug 2022 18:17:52 +0300 Subject: [PATCH] game: rpg missle fixes (hrgve/hl2dm-bugfix@36de43ebc1efe7fa6b29613b85c942e86b39b940) --- game/shared/hl2mp/weapon_rpg.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/game/shared/hl2mp/weapon_rpg.cpp b/game/shared/hl2mp/weapon_rpg.cpp index 34ca3398..3d91f4e9 100644 --- a/game/shared/hl2mp/weapon_rpg.cpp +++ b/game/shared/hl2mp/weapon_rpg.cpp @@ -359,6 +359,11 @@ void CMissile::ShotDown( void ) //----------------------------------------------------------------------------- void CMissile::DoExplosion( void ) { + //Fix GetAbsOrigin().z+1 in gamerules.cpp:349 + Vector origin = GetAbsOrigin(); + origin.z -= 1; + SetAbsOrigin( origin ); + // Explode ExplosionCreate( GetAbsOrigin(), GetAbsAngles(), GetOwnerEntity(), GetDamage(), GetDamage() * 2, SF_ENVEXPLOSION_NOSPARKS | SF_ENVEXPLOSION_NODLIGHTS | SF_ENVEXPLOSION_NOSMOKE, 0.0f, this); @@ -452,7 +457,7 @@ void CMissile::IgniteThink( void ) { SetMoveType( MOVETYPE_FLY ); SetModel("models/weapons/w_missile.mdl"); - UTIL_SetSize( this, vec3_origin, vec3_origin ); + //UTIL_SetSize( this, vec3_origin, vec3_origin ); //This cause weird no damage dealing on stairs RemoveSolidFlags( FSOLID_NOT_SOLID ); //TODO: Play opening sound