Update 4 id1, hipnotic, mg1, and rogue source

This commit is contained in:
Mike Rubits
2022-08-18 15:18:32 -05:00
parent bebf782915
commit 7bcbd29c99
14 changed files with 149 additions and 12 deletions

View File

@@ -520,7 +520,10 @@ void(string gibname, float dm) ThrowGib =
setmodel (new, gibname);
setsize (new, '0 0 0', '0 0 0');
new.velocity = VelocityForDamage (dm);
new.movetype = MOVETYPE_GIB;
new.movetype = MOVETYPE_BOUNCE;
if (cvar("pr_checkextension"))
if (checkextension("EX_MOVETYPE_GIB"))
new.movetype = MOVETYPE_GIB;
new.solid = SOLID_NOT;
new.avelocity_x = random()*600;
new.avelocity_y = random()*600;
@@ -537,7 +540,10 @@ void(string gibname, float dm) ThrowHead =
setmodel (self, gibname);
self.frame = 0;
self.nextthink = -1;
self.movetype = MOVETYPE_GIB;
self.movetype = MOVETYPE_BOUNCE;
if (cvar("pr_checkextension"))
if (checkextension("EX_MOVETYPE_GIB"))
self.movetype = MOVETYPE_GIB;
self.takedamage = DAMAGE_NO;
self.solid = SOLID_NOT;
self.view_ofs = '0 0 8';