From 141a3845f890af9b28a389e06b1d6fd722806554 Mon Sep 17 00:00:00 2001 From: lorderadicator <> Date: Sun, 17 Nov 2002 08:23:19 +0000 Subject: [PATCH] made corpse gibable --- demon.qc | 2 +- dog.qc | 2 +- enforcer.qc | 4 ++-- fish.qc | 2 +- hknight.qc | 4 ++-- knight.qc | 4 ++-- ogre.qc | 4 ++-- shalrath.qc | 2 +- shambler.qc | 2 +- soldier.qc | 4 ++-- 10 files changed, 15 insertions(+), 15 deletions(-) diff --git a/demon.qc b/demon.qc index 72bec12..cdefa92 100644 --- a/demon.qc +++ b/demon.qc @@ -145,7 +145,7 @@ void() demon1_die3 =[ $death3, demon1_die4 ] {}; void() demon1_die4 =[ $death4, demon1_die5 ] {}; void() demon1_die5 =[ $death5, demon1_die6 ] {}; void() demon1_die6 =[ $death6, demon1_die7 ] -{self.solid = SOLID_NOT;}; +{become_corpse();}; void() demon1_die7 =[ $death7, demon1_die8 ] {}; void() demon1_die8 =[ $death8, demon1_die9 ] {}; void() demon1_die9 =[ $death9, demon1_die9 ] {}; diff --git a/dog.qc b/dog.qc index 2654a00..aeddc2e 100644 --- a/dog.qc +++ b/dog.qc @@ -241,7 +241,7 @@ void() dog_die = // regular death sound (self, CHAN_VOICE, "dog/ddeath.wav", 1, ATTN_NORM); - self.solid = SOLID_NOT; + become_corpse(); if (random() > 0.5) dog_die1 (); diff --git a/enforcer.qc b/enforcer.qc index 280f0f7..d17d081 100644 --- a/enforcer.qc +++ b/enforcer.qc @@ -256,7 +256,7 @@ void(entity attacker, float damage) enf_pain = void() enf_die1 =[ $death1, enf_die2 ] {}; void() enf_die2 =[ $death2, enf_die3 ] {}; void() enf_die3 =[ $death3, enf_die4 ] -{self.solid = SOLID_NOT;self.ammo_cells = 5;DropBackpack();}; +{become_corpse();self.ammo_cells = 5;DropBackpack();}; void() enf_die4 =[ $death4, enf_die5 ] {ai_forward(14);}; void() enf_die5 =[ $death5, enf_die6 ] {ai_forward(2);}; void() enf_die6 =[ $death6, enf_die7 ] {}; @@ -274,7 +274,7 @@ void() enf_fdie1 =[ $fdeath1, enf_fdie2 ] { }; void() enf_fdie2 =[ $fdeath2, enf_fdie3 ] {}; void() enf_fdie3 =[ $fdeath3, enf_fdie4 ] -{self.solid = SOLID_NOT;self.ammo_cells = 5;DropBackpack();}; +{become_corpse();self.ammo_cells = 5;DropBackpack();}; void() enf_fdie4 =[ $fdeath4, enf_fdie5 ] {}; void() enf_fdie5 =[ $fdeath5, enf_fdie6 ] {}; void() enf_fdie6 =[ $fdeath6, enf_fdie7 ] {}; diff --git a/fish.qc b/fish.qc index b4e2d68..a6be8ed 100644 --- a/fish.qc +++ b/fish.qc @@ -130,7 +130,7 @@ void() f_death17 =[ $death17, f_death18 ] {}; void() f_death18 =[ $death18, f_death19 ] {}; void() f_death19 =[ $death19, f_death20 ] {}; void() f_death20 =[ $death20, f_death21 ] {}; -void() f_death21 =[ $death21, f_death21 ] {self.solid = SOLID_NOT;}; +void() f_death21 =[ $death21, f_death21 ] {become_corpse();}; void() f_pain1 =[ $pain1, f_pain2 ] {}; void() f_pain2 =[ $pain2, f_pain3 ] {ai_pain(6);}; diff --git a/hknight.qc b/hknight.qc index 71afae9..60ffdbb 100644 --- a/hknight.qc +++ b/hknight.qc @@ -175,7 +175,7 @@ void() hknight_pain5 =[ $pain5, hknight_run1 ] {}; void() hknight_die1 =[ $death1, hknight_die2 ] {ai_forward(10);}; void() hknight_die2 =[ $death2, hknight_die3 ] {ai_forward(8);}; void() hknight_die3 =[ $death3, hknight_die4 ] -{self.solid = SOLID_NOT; ai_forward(7);}; +{become_corpse(); ai_forward(7);}; void() hknight_die4 =[ $death4, hknight_die5 ] {}; void() hknight_die5 =[ $death5, hknight_die6 ] {}; void() hknight_die6 =[ $death6, hknight_die7 ] {}; @@ -189,7 +189,7 @@ void() hknight_die12 =[ $death12, hknight_die12 ] {}; void() hknight_dieb1 =[ $deathb1, hknight_dieb2 ] {}; void() hknight_dieb2 =[ $deathb2, hknight_dieb3 ] {}; void() hknight_dieb3 =[ $deathb3, hknight_dieb4 ] -{self.solid = SOLID_NOT;}; +{become_corpse();}; void() hknight_dieb4 =[ $deathb4, hknight_dieb5 ] {}; void() hknight_dieb5 =[ $deathb5, hknight_dieb6 ] {}; void() hknight_dieb6 =[ $deathb6, hknight_dieb7 ] {}; diff --git a/knight.qc b/knight.qc index 5a817b0..16337f8 100644 --- a/knight.qc +++ b/knight.qc @@ -186,7 +186,7 @@ void() knight_bow10 =[ $walk1, knight_walk1 ] {ai_turn();}; void() knight_die1 =[ $death1, knight_die2 ] {}; void() knight_die2 =[ $death2, knight_die3 ] {}; void() knight_die3 =[ $death3, knight_die4 ] -{self.solid = SOLID_NOT;}; +{become_corpse();}; void() knight_die4 =[ $death4, knight_die5 ] {}; void() knight_die5 =[ $death5, knight_die6 ] {}; void() knight_die6 =[ $death6, knight_die7 ] {}; @@ -199,7 +199,7 @@ void() knight_die10=[ $death10, knight_die10] {}; void() knight_dieb1 =[ $deathb1, knight_dieb2 ] {}; void() knight_dieb2 =[ $deathb2, knight_dieb3 ] {}; void() knight_dieb3 =[ $deathb3, knight_dieb4 ] -{self.solid = SOLID_NOT;}; +{become_corpse();}; void() knight_dieb4 =[ $deathb4, knight_dieb5 ] {}; void() knight_dieb5 =[ $deathb5, knight_dieb6 ] {}; void() knight_dieb6 =[ $deathb6, knight_dieb7 ] {}; diff --git a/ogre.qc b/ogre.qc index b53aa75..ba5d969 100644 --- a/ogre.qc +++ b/ogre.qc @@ -354,7 +354,7 @@ void(entity attacker, float damage) ogre_pain = void() ogre_die1 =[ $death1, ogre_die2 ] {}; void() ogre_die2 =[ $death2, ogre_die3 ] {}; void() ogre_die3 =[ $death3, ogre_die4 ] -{self.solid = SOLID_NOT; +{become_corpse(); self.ammo_rockets = 2;DropBackpack();}; void() ogre_die4 =[ $death4, ogre_die5 ] {}; void() ogre_die5 =[ $death5, ogre_die6 ] {}; @@ -371,7 +371,7 @@ void() ogre_die14 =[ $death14, ogre_die14 ] {}; void() ogre_bdie1 =[ $bdeath1, ogre_bdie2 ] {}; void() ogre_bdie2 =[ $bdeath2, ogre_bdie3 ] {ai_forward(5);}; void() ogre_bdie3 =[ $bdeath3, ogre_bdie4 ] -{self.solid = SOLID_NOT; +{become_corpse(); self.ammo_rockets = 2;DropBackpack();}; void() ogre_bdie4 =[ $bdeath4, ogre_bdie5 ] {ai_forward(1);}; void() ogre_bdie5 =[ $bdeath5, ogre_bdie6 ] {ai_forward(3);}; diff --git a/shalrath.qc b/shalrath.qc index 12d071b..6f8abcb 100644 --- a/shalrath.qc +++ b/shalrath.qc @@ -112,7 +112,7 @@ void() shalrath_die = sound (self, CHAN_VOICE, "shalrath/death.wav", 1, ATTN_NORM); shal_death1(); - self.solid = SOLID_NOT; + become_corpse(); // insert death sounds here }; diff --git a/shambler.qc b/shambler.qc index 1b282f7..922108f 100644 --- a/shambler.qc +++ b/shambler.qc @@ -293,7 +293,7 @@ void(entity attacker, float damage) sham_pain = void() sham_death1 =[ $death1, sham_death2 ] {}; void() sham_death2 =[ $death2, sham_death3 ] {}; -void() sham_death3 =[ $death3, sham_death4 ] {self.solid = SOLID_NOT;}; +void() sham_death3 =[ $death3, sham_death4 ] {become_corpse();}; void() sham_death4 =[ $death4, sham_death5 ] {}; void() sham_death5 =[ $death5, sham_death6 ] {}; void() sham_death6 =[ $death6, sham_death7 ] {}; diff --git a/soldier.qc b/soldier.qc index b48c3b9..096d34b 100644 --- a/soldier.qc +++ b/soldier.qc @@ -195,7 +195,7 @@ void() army_fire = void() army_die1 =[ $death1, army_die2 ] {}; void() army_die2 =[ $death2, army_die3 ] {}; void() army_die3 =[ $death3, army_die4 ] -{self.solid = SOLID_NOT;self.ammo_shells = 5;DropBackpack();}; +{become_corpse();self.ammo_shells = 5;DropBackpack();}; void() army_die4 =[ $death4, army_die5 ] {}; void() army_die5 =[ $death5, army_die6 ] {}; void() army_die6 =[ $death6, army_die7 ] {}; @@ -207,7 +207,7 @@ void() army_die10 =[ $death10, army_die10 ] {}; void() army_cdie1 =[ $deathc1, army_cdie2 ] {}; void() army_cdie2 =[ $deathc2, army_cdie3 ] {ai_back(5);}; void() army_cdie3 =[ $deathc3, army_cdie4 ] -{self.solid = SOLID_NOT;self.ammo_shells = 5;DropBackpack();ai_back(4);}; +{become_corpse();self.ammo_shells = 5;DropBackpack();ai_back(4);}; void() army_cdie4 =[ $deathc4, army_cdie5 ] {ai_back(13);}; void() army_cdie5 =[ $deathc5, army_cdie6 ] {ai_back(3);}; void() army_cdie6 =[ $deathc6, army_cdie7 ] {ai_back(4);};