Originally posted by omicron
View Post

/*QUAKED item_health (.3 .3 1) (0 0 0) (32 32 32) rotten megahealth Health box. Normally gives 25 points. [COLOR="Yellow"]Rotten box heals 5-10 points,[/COLOR] megahealth will add 100 health, then rot you down to your maximum health limit, one point per second. */ float H_ROTTEN = 1; float H_MEGA = 2; .float healamount, healtype; void() health_touch; void() item_megahealth_rot; void() item_health = { self.touch = health_touch; if (self.spawnflags & H_ROTTEN) { precache_model("maps/b_bh10.bsp"); precache_sound("items/r_item1.wav"); setmodel(self, "maps/b_bh10.bsp"); self.noise = "items/r_item1.wav"; [COLOR="Yellow"] self.healamount = 15;[/COLOR] self.healtype = 0; } ...
Comment