]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Remove poison (needs a proper implementation)
authorMario <mario.mario@y7mail.com>
Sun, 16 Jun 2013 03:56:05 +0000 (13:56 +1000)
committerMario <mario.mario@y7mail.com>
Sun, 16 Jun 2013 03:56:05 +0000 (13:56 +1000)
13 files changed:
effectinfo.txt
qcsrc/client/View.qc
qcsrc/client/csqcmodel_hooks.qc
qcsrc/common/constants.qh
qcsrc/server/cl_client.qc
qcsrc/server/defs.qh
qcsrc/server/g_damage.qc
qcsrc/server/g_world.qc
qcsrc/server/monsters/monster/knight.qc
qcsrc/server/monsters/monster/spider.qc
qcsrc/server/monsters/monster/stingray.qc
qcsrc/server/monsters/monster/wyvern.qc
qcsrc/server/w_fireball.qc

index e24defbc322664544f8cc65a0efe47ec338f67a0..05e881c5da6b5e9d9adc122128fe586d0d0dc681 100644 (file)
@@ -8017,39 +8017,3 @@ size 1 1
 alpha 256 256 64
 color 0xFF0FFF 0xFF0FFF
 sizeincrease 1
-
-//EF_POISON
-//poison
-// used nowhere in code
-effect EF_POISON
-count 100
-type smoke
-tex 48 55
-size 5 21
-alpha 200 356 512
-gravity -0.5
-color 0x00ff00 0x00ff00
-bounce 2
-sizeincrease -1
-originoffset 0 0 10
-originjitter 12 12 34
-velocityjitter 22 22 50
-// smoke
-effect EF_POISON
-type alphastatic
-count 50
-tex 0 8
-size 11 15
-sizeincrease 6
-alpha 200 256 200
-color 0x00ff00 0x00ff00
-gravity -0.3
-originoffset 0 0 10
-originjitter 12 12 34
-velocityjitter 11 11 50
-bounce 2
-effect EF_POISON
-count 0.5
-lightradius 200
-lightradiusfade 10000
-lightcolor 0.9 0.9 0.2
index c08883b108dbcfb75a9e95ed949d457b9d417a7a..e24c306caeb9f88871e632036a1b86376fda65fb 100644 (file)
@@ -904,7 +904,7 @@ void CSQC_UpdateView(float w, float h)
                }
        }
 
-       if(autocvar_hud_damage && !getstati(STAT_FROZEN) && !getstati(STAT_POISONED))
+       if(autocvar_hud_damage && !getstati(STAT_FROZEN))
        {
                splash_size_x = max(vid_conwidth, vid_conheight);
                splash_size_y = max(vid_conwidth, vid_conheight);
@@ -990,21 +990,6 @@ void CSQC_UpdateView(float w, float h)
                }
        }
        
-       if(getstati(STAT_POISONED))
-       {
-               if(cvar("v_idlescale") != 50)
-               {
-                       old_v_idlescale = cvar("v_idlescale");
-                       cvar_set("v_idlescale", "50");
-               }
-       }
-       else
-       {
-               if(cvar("v_idlescale") == 50)
-                       cvar_set("v_idlescale", ftos(old_v_idlescale));
-       }
-               
-
        float e1 = (autocvar_hud_postprocessing_maxbluralpha != 0);
        float e2 = (autocvar_hud_powerup != 0);
        if(autocvar_hud_postprocessing && (e1 || e2)) // TODO: Remove this code and re-do the postprocess handling in the engine, where it properly belongs.
@@ -1103,9 +1088,6 @@ void CSQC_UpdateView(float w, float h)
                        DrawCircleClippedPic(eX * 0.5 * vid_conwidth + eY * 0.6 * vid_conheight, 0.1 * vid_conheight, "gfx/crosshair_ring.tga", getstatf(STAT_REVIVE_PROGRESS), '0.25 0.90 1', autocvar_hud_colorflash_alpha, DRAWFLAG_ADDITIVE);
                        drawstring_aspect(eY * 0.64 * vid_conheight, _("Revival progress"), eX * vid_conwidth + eY * 0.025 * vid_conheight, '1 1 1', 1, DRAWFLAG_NORMAL);
                }
-               
-               if(getstati(STAT_POISONED))
-                       drawfill('0 0 0', eX * vid_conwidth + eY * vid_conheight, '0.25 0.90 0.25', autocvar_hud_colorflash_alpha, DRAWFLAG_ADDITIVE);
 
                if(autocvar_r_letterbox == 0)
                        if(autocvar_viewsize < 120)
index 17f7f1224ce20cd20634850db76c2010194327af..264f4797e58915db809e3154ddfbf73a97305c83 100644 (file)
@@ -513,12 +513,7 @@ void CSQCModel_Effects_Apply(void)
        if(eff & EF_FULLBRIGHT)
                self.renderflags |= RF_FULLBRIGHT;
        if(eff & EF_FLAME)
-       {
-               if(getstati(STAT_POISONED))
-                       pointparticles(particleeffectnum("EF_POISON"), self.origin, '0 0 0', bound(0, frametime, 0.1));
-               else
-                       pointparticles(particleeffectnum("EF_FLAME"), self.origin, '0 0 0', bound(0, frametime, 0.1));
-       }
+               pointparticles(particleeffectnum("EF_FLAME"), self.origin, '0 0 0', bound(0, frametime, 0.1));
        if(eff & EF_STARDUST)
                pointparticles(particleeffectnum("EF_STARDUST"), self.origin, '0 0 0', bound(0, frametime, 0.1));
        if(eff & EF_NOSHADOW)
index 8bc7a20f14335cd229330b7788d236d98af54d42..7b403ddd107609a9ec804e324e837776e38d3c9e 100644 (file)
@@ -188,8 +188,6 @@ const float STAT_TOTALWAVES = 74;
 const float STAT_MONSTERS_TOTAL = 75;
 const float STAT_MONSTERS_KILLED = 76;
 
-const float STAT_POISONED = 77;
-
 // mod stats (1xx)
 const float STAT_REDALIVE = 100;
 const float STAT_BLUEALIVE = 101;
index 7172948c8b27247844fbf96e8ebc4752e2f79fb6..41f8f911728ad29cf474bb76357f794f662aa395 100644 (file)
@@ -2256,9 +2256,6 @@ void PlayerPreThink (void)
                if(self.revive_progress >= 1)
                        Unfreeze(self);
        }
-       
-       if(!Fire_IsBurning(self))
-               self.poisoned = FALSE;
 
        MUTATOR_CALLHOOK(PlayerPreThink);
 
index b46b4a1b248e60f28f81f1bd0464d340ff3f0505..43755d94238cce6c936127f4a2e27e066d868f8c 100644 (file)
@@ -587,8 +587,6 @@ float serverflags;
 .float revive_speed; // NOTE: multiplier (anything above 1 is instaheal)
 .entity iceblock;
 
-.float poisoned;
-
 .entity muzzle_flash;
 .float misc_bulletcounter;     // replaces uzi & hlac bullet counter.
 
index 5a1403f4849d9c3ce773212f3fdc6ea31e9af130..7ca31cecbb91adc8f24e61dc755bff041fc985ba 100644 (file)
@@ -1127,12 +1127,10 @@ float Fire_IsBurning(entity e)
        return (time < e.fire_endtime);
 }
 
-float Fire_AddDamage(entity e, entity o, float d, float t, float dt, float ispoison)
+float Fire_AddDamage(entity e, entity o, float d, float t, float dt)
 {
        float dps;
        float maxtime, mintime, maxdamage, mindamage, maxdps, mindps, totaldamage, totaltime;
-       
-       e.poisoned = ispoison;
 
        if(IS_PLAYER(e))
        {
@@ -1262,7 +1260,6 @@ void Fire_ApplyDamage(entity e)
                o = e.fire_owner;
 
        // water and slime stop fire
-       if(!e.poisoned)
        if(e.waterlevel)
        if(e.watertype != CONTENT_LAVA)
                e.fire_endtime = 0;
@@ -1294,7 +1291,7 @@ void Fire_ApplyDamage(entity e)
                {
                        t = autocvar_g_balance_firetransfer_time * (e.fire_endtime - time);
                        d = autocvar_g_balance_firetransfer_damage * e.fire_damagepersec * t;
-                       Fire_AddDamage(other, o, d, t, DEATH_FIRE, FALSE);
+                       Fire_AddDamage(other, o, d, t, DEATH_FIRE);
                }
        }
 }
@@ -1318,7 +1315,6 @@ void fireburner_think()
        Fire_ApplyEffect(self.owner);
        if(!Fire_IsBurning(self.owner))
        {
-               self.owner.poisoned = FALSE;
                self.owner.fire_burner = world;
                remove(self);
                return;
index d28ef613c1be22c7458601f5fb324bed9a952dd7..cf2d12612e27e0a648de1d32fcd1df620a618ee9 100644 (file)
@@ -821,7 +821,6 @@ void spawnfunc_worldspawn (void)
 
        // misc
        addstat(STAT_RESPAWN_TIME, AS_FLOAT, stat_respawn_time);
-       addstat(STAT_POISONED, AS_INT, poisoned);
 
        next_pingtime = time + 5;
 
index a35bba2bd9ea313b9029302696d86df88a0a9055..816ac600ffbadbf7f94cfb185ffe3787b808ac57 100644 (file)
@@ -64,7 +64,7 @@ void knight_inferno()
        sound(self.enemy, CHAN_AUTO, "player/lava.wav", 1, ATTN_NORM);
        
        if(vlen(self.enemy.origin - self.origin) <= 2000)
-               Fire_AddDamage(self.enemy, self, autocvar_g_monster_knight_inferno_damage * monster_skill, autocvar_g_monster_knight_inferno_damagetime, DEATH_MONSTER_KNIGHT_INFERNO, FALSE);
+               Fire_AddDamage(self.enemy, self, autocvar_g_monster_knight_inferno_damage * monster_skill, autocvar_g_monster_knight_inferno_damagetime, DEATH_MONSTER_KNIGHT_INFERNO);
 }
 
 void knight_fireball_explode()
@@ -77,7 +77,7 @@ void knight_fireball_explode()
                RadiusDamage(self, self.realowner, autocvar_g_monster_knight_fireball_damage, autocvar_g_monster_knight_fireball_edgedamage, autocvar_g_monster_knight_fireball_force, world, autocvar_g_monster_knight_fireball_radius, self.projectiledeathtype, world);
                
                for(e = world; (e = findfloat(e, takedamage, DAMAGE_AIM)); ) if(vlen(e.origin - self.origin) <= autocvar_g_monster_knight_fireball_radius)
-                       Fire_AddDamage(e, self, 5 * monster_skill, autocvar_g_monster_knight_inferno_damagetime, self.projectiledeathtype, FALSE);
+                       Fire_AddDamage(e, self, 5 * monster_skill, autocvar_g_monster_knight_inferno_damagetime, self.projectiledeathtype);
                
                remove(self);
        }
index 4b6eda73fe8791412b630ee1b1f1cdd9fc245f42..cdae2f4293ae37c9598dd02fde5fde5dd44f794d 100644 (file)
@@ -62,7 +62,7 @@ void spider_web_explode()
                                        Freeze(e, 0.3, 2, FALSE);
                                        break;
                                case SPIDER_TYPE_FIRE:
-                                       Fire_AddDamage(e, self.realowner, 5 * monster_skill, autocvar_g_monster_spider_attack_fire_time, DEATH_MONSTER_SPIDER_FIRE, FALSE);
+                                       Fire_AddDamage(e, self.realowner, 5 * monster_skill, autocvar_g_monster_spider_attack_fire_time, DEATH_MONSTER_SPIDER_FIRE);
                                        break;
                        }
                }
index 7408fa8971292ce83930d556508f7e346d2c5052..61dccfbd6af3f80e4231cd7fead87b006a2170ba 100644 (file)
@@ -31,9 +31,7 @@ float stingray_attack(float attack_type)
                {
                        monsters_setframe(stingray_anim_attack);
                        self.attack_finished_single = time + 0.5;
-                       if(monster_melee(self.enemy, autocvar_g_monster_stingray_damage, 0.1, DEATH_MONSTER_STINGRAY, FALSE))
-                       if(random() < 0.2)
-                               Fire_AddDamage(self.enemy, self, 30, 10, DEATH_MONSTER_STINGRAY, TRUE);
+                       monster_melee(self.enemy, autocvar_g_monster_stingray_damage, 0.1, DEATH_MONSTER_STINGRAY, FALSE);
                        
                        return TRUE;
                }
index 40128660b69da6b7a80334b9f34c10adaf15448f..e9eda6d6aa2b5fc37cbe94b2ff7e693211aa00f5 100644 (file)
@@ -39,7 +39,7 @@ void wyvern_fireball_explode()
                RadiusDamage(self, self.realowner, autocvar_g_monster_wyvern_fireball_damage, autocvar_g_monster_wyvern_fireball_edgedamage, autocvar_g_monster_wyvern_fireball_force, world, autocvar_g_monster_wyvern_fireball_radius, self.projectiledeathtype, world);
                
                for(e = world; (e = findfloat(e, takedamage, DAMAGE_AIM)); ) if(vlen(e.origin - self.origin) <= autocvar_g_monster_wyvern_fireball_radius)
-                       Fire_AddDamage(e, self, 5 * monster_skill, autocvar_g_monster_wyvern_fireball_damagetime, self.projectiledeathtype, FALSE);
+                       Fire_AddDamage(e, self, 5 * monster_skill, autocvar_g_monster_wyvern_fireball_damagetime, self.projectiledeathtype);
                
                remove(self);
        }
index 520a53e4e5b2a6fd5d80417c98c6da76e87cfbf4..7bccac949414513b6f2aa50cb21ab896fdb3bdc2 100644 (file)
@@ -100,7 +100,7 @@ void W_Fireball_LaserPlay(float dt, float dist, float damage, float edgedamage,
        {
                d = vlen(WarpZone_UnTransformOrigin(RandomSelection_chosen_ent, self.origin) - RandomSelection_chosen_ent.fireball_impactvec);
                d = damage + (edgedamage - damage) * (d / dist);
-               Fire_AddDamage(RandomSelection_chosen_ent, self.realowner, d * burntime, burntime, self.projectiledeathtype | HITTYPE_BOUNCE, FALSE);
+               Fire_AddDamage(RandomSelection_chosen_ent, self.realowner, d * burntime, burntime, self.projectiledeathtype | HITTYPE_BOUNCE);
                //trailparticles(self, particleeffectnum("fireball_laser"), self.origin, RandomSelection_chosen_ent.fireball_impactvec);
                pointparticles(particleeffectnum("fireball_laser"), self.origin, RandomSelection_chosen_ent.fireball_impactvec - self.origin, 1);
        }
@@ -244,7 +244,7 @@ void W_Firemine_Touch (void)
 {
        PROJECTILE_TOUCH;
        if (other.takedamage == DAMAGE_AIM)
-       if(Fire_AddDamage(other, self.realowner, autocvar_g_balance_fireball_secondary_damage, autocvar_g_balance_fireball_secondary_damagetime, self.projectiledeathtype, FALSE) >= 0)
+       if(Fire_AddDamage(other, self.realowner, autocvar_g_balance_fireball_secondary_damage, autocvar_g_balance_fireball_secondary_damagetime, self.projectiledeathtype) >= 0)
        {
                remove(self);
                return;