home *** CD-ROM | disk | FTP | other *** search
- void() W_SetCurrentAmmo;
- void() BecomeExplosion;
- void(entity inflictor, entity attacker, float damage, entity ignore) T_ABombDamage;
-
- void() ABomb_Explode =
- {
- if(other == self.owner) //Don't explode if
- return; //you touch it
- bprint("it's the end of the world as we know it...\n"); //Tee Hee...
- self.effects=14; // EF_MUZZLEFLASH && EF_BRIGHTLIGHT && EF_DIMLIGHT
- T_ABombDamage(self, self.owner, 8000, world);
-
- sound (self, CHAN_WEAPON, "weapons/r_exp3.wav", 1, ATTN_NORM);
- // self.origin = self.origin - 8*normalize(self.velocity);
-
- WriteByte (MSG_BROADCAST, SVC_TEMPENTITY);
- WriteByte (MSG_BROADCAST, TE_EXPLOSION);
- WriteCoord (MSG_BROADCAST, self.origin_x);
- WriteCoord (MSG_BROADCAST, self.origin_y);
- WriteCoord (MSG_BROADCAST, self.origin_z);
-
- BecomeExplosion (); //And become an explosion
- };
-