]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add cvars for the force field
authorMario <mario.mario@y7mail.com>
Thu, 18 Apr 2013 06:39:46 +0000 (16:39 +1000)
committerMario <mario.mario@y7mail.com>
Thu, 18 Apr 2013 06:39:46 +0000 (16:39 +1000)
monsters.cfg
qcsrc/server/monsters/monster/shalrath.qc

index e4219c9c4014737b77f9f1b5e8d2719799360861..44d632ee1d32544461719399266e6b4ab6f4c7bc 100644 (file)
@@ -190,6 +190,9 @@ set g_monster_shalrath_heal_friends 15 "Amount of health Vore will regenerate ne
 set g_monster_shalrath_heal_minhealth 250 "Health limit below which Vore will try to heal itself"
 set g_monster_shalrath_heal_range 200 "Maximum healing distance"
 set g_monster_shalrath_heal_delay 1.5 "Delay between healing bursts"
+set g_monster_shalrath_shield_blockpercent 20 "% of damage inflicted on Vore if using a force field"
+set g_monster_shalrath_shield_delay 7 "Refire for Vore force shield"
+set g_monster_shalrath_shield_time 3 "Amount of time Vore force field lasts"
 
 // Zombie
 set g_monster_zombie 1 "Enable Zombies"
index 7971d1d724bf933c2f1b55df8078157410e38806..f0690025732cd22743a03a9c192b60785c07915e 100644 (file)
@@ -20,6 +20,9 @@ float autocvar_g_monster_shalrath_heal_friends;
 float autocvar_g_monster_shalrath_heal_minhealth;
 float autocvar_g_monster_shalrath_heal_range;
 float autocvar_g_monster_shalrath_heal_delay;
+float autocvar_g_monster_shalrath_shield_time;
+float autocvar_g_monster_shalrath_shield_delay;
+float autocvar_g_monster_shalrath_shield_blockpercent;
 
 // animations
 const float shalrath_anim_idle         = 0;
@@ -286,7 +289,7 @@ void shalrath_shield()
        setmodel(self.weaponentity, "models/onslaught/generator_shield.md3");
        setattachment(self.weaponentity, self, "");
        self.weaponentity.classname = "shield";
-       self.weaponentity.ltime = time + 3;
+       self.weaponentity.ltime = time + autocvar_g_monster_shalrath_shield_time;
        self.weaponentity.health = 70;
        self.weaponentity.alpha = 0.5;
        self.weaponentity.scale = self.scale * 0.6;
@@ -295,12 +298,12 @@ void shalrath_shield()
        self.weaponentity.movetype = MOVETYPE_NOCLIP;
        self.weaponentity.avelocity = '7 0 11';
        
-       self.lastshielded = time + 7; // 1 shield every 7 seconds?
+       self.lastshielded = time + autocvar_g_monster_shalrath_shield_delay;
        
        monsters_setframe(shalrath_anim_attack);
        self.attack_finished_single = time + 1;
        
-       self.armorvalue = 0.2;
+       self.armorvalue = autocvar_g_monster_shalrath_shield_blockpercent / 100;
 }
 
 void shalrath_die ()