void SP_misc_explobox2( ) { float oldz; if ( !CheckExistence( ) ) { dremove( self ); return; } self->s.v.solid = SOLID_BBOX; self->s.v.movetype = MOVETYPE_NONE; trap_precache_model( "maps/b_exbox2.bsp" ); setmodel( self, "maps/b_exbox2.bsp" ); setsize( self, 0, 0, 0, 32, 32, 32 ); trap_precache_sound( "weapons/r_exp3.wav" ); self->s.v.health = 20; self->th_die = barrel_explode; self->s.v.takedamage = DAMAGE_AIM; self->s.v.origin[2] += 2; oldz = self->s.v.origin[2]; droptofloor( self ); if ( oldz - self->s.v.origin[2] > 250 ) { G_dprintf( "item fell out of level at '%f %f %f'\n", PASSVEC3( self->s.v.origin ) ); ent_remove( self ); } }
/*QUAKED light_flame_small_white (0 1 0) (-10 -10 -40) (10 10 40) START_OFF Small white flame ball */ void SP_light_flame_small_white() { trap_precache_model( "progs/flame2.mdl" ); setmodel( self, "progs/flame2.mdl" ); FireAmbient( self ); makestatic( self ); }
void viewthing() { self->s.v.movetype = MOVETYPE_NONE; self->s.v.solid = SOLID_NOT; trap_precache_model( "progs/player.mdl" ); setmodel( self, "progs/player.mdl" ); }
/*QUAKED light_torch_small_walltorch (0 .5 0) (-10 -10 -20) (10 10 20) Short wall torch Default light value is 200 Default style is 0 */ void SP_light_torch_small_walltorch() { trap_precache_model( "progs/flame.mdl" ); setmodel( self, "progs/flame.mdl" ); FireAmbient( self ); makestatic( self ); }
/*QUAKED light_flame_large_yellow (0 1 0) (-10 -10 -12) (12 12 18) Large yellow flame ball */ void SP_light_flame_large_yellow() { trap_precache_model( "progs/flame2.mdl" ); setmodel( self, "progs/flame2.mdl" ); self->s.v.frame = 1; FireAmbient( self ); makestatic( self ); }
void SP_item_armorInv() { self->s.v.touch = ( func_t ) armor_touch; trap_precache_model( "progs/armor.mdl" ); setmodel( self, "progs/armor.mdl" ); self->s.v.skin = 2; setsize( self, -16, -16, 0, 16, 16, 56 ); StartItem( self ); }
void SP_misc_fireball() { trap_precache_model( "progs/lavaball.mdl" ); self->classname = "fireball"; self->s.v.nextthink = g_globalvars.time + ( g_random() * 5 ); self->think = ( func_t ) fire_fly; if ( !self->speed ) self->speed = 1000; }
/*QUAKED light_globe (0 1 0) (-8 -8 -8) (8 8 8) Sphere globe light. Default light value is 300 Default style is 0 */ void SP_light_globe( ) { if ( !CheckExistence( ) ) { dremove( self ); return; } trap_precache_model( "progs/s_light.spr" ); setmodel( self, "progs/s_light.spr" ); makestatic( self ); }
void viewthing( ) { if ( !CheckExistence( ) ) { dremove( self ); return; } self->s.v.movetype = MOVETYPE_NONE; self->s.v.solid = SOLID_NOT; trap_precache_model( "progs/player.mdl" ); setmodel( self, "progs/player.mdl" ); }
/*QUAKED light_flame_small_white (0 1 0) (-10 -10 -40) (10 10 40) START_OFF Small white flame ball */ void SP_light_flame_small_white( ) { if ( !CheckExistence( ) ) { dremove( self ); return; } trap_precache_model( "progs/flame2.mdl" ); setmodel( self, "progs/flame2.mdl" ); FireAmbient( ); makestatic( self ); }
/*QUAKED light_flame_large_yellow (0 1 0) (-10 -10 -12) (12 12 18) Large yellow flame ball */ void SP_light_flame_large_yellow( ) { if ( !CheckExistence( ) ) { dremove( self ); return; } trap_precache_model( "progs/flame2.mdl" ); setmodel( self, "progs/flame2.mdl" ); self->s.v.frame = 1; FireAmbient( ); makestatic( self ); }
void SP_trap_spikeshooter() { SetMovedir(); self->use = ( func_t ) spikeshooter_use; if ( ( int ) ( self->s.v.spawnflags ) & SPAWNFLAG_LASER ) { trap_precache_model( "progs/laser.mdl" ); trap_precache_sound( "enforcer/enfire.wav" ); trap_precache_sound( "enforcer/enfstop.wav" ); } else trap_precache_sound( "weapons/spike2.wav" ); }
void SP_misc_fireball( ) { if ( !CheckExistence( ) ) { dremove( self ); return; } trap_precache_model( "progs/lavaball.mdl" ); self->s.v.classname = "fireball"; self->s.v.nextthink = g_globalvars.time + ( g_random( ) * 5 ); self->s.v.think = ( func_t ) fire_fly; if ( !self->speed ) self->speed = 1000; }
void SP_item_health() { self->s.v.touch = ( func_t ) health_touch; if ( ( int ) self->s.v.spawnflags & H_ROTTEN ) { trap_precache_model( "maps/b_bh10.bsp" ); trap_precache_sound( "items/r_item1.wav" ); setmodel( self, "maps/b_bh10.bsp" ); self->s.v.noise = "items/r_item1.wav"; self->healamount = 15; self->healtype = 0; } else { if ( ( int ) self->s.v.spawnflags & H_MEGA ) { trap_precache_model( "maps/b_bh100.bsp" ); trap_precache_sound( "items/r_item2.wav" ); setmodel( self, "maps/b_bh100.bsp" ); self->s.v.noise = "items/r_item2.wav"; self->healamount = 100; self->healtype = 2; } else { trap_precache_model( "maps/b_bh25.bsp" ); trap_precache_sound( "items/health1.wav" ); setmodel( self, "maps/b_bh25.bsp" ); self->s.v.noise = "items/health1.wav"; self->healamount = 25; self->healtype = 1; } } setsize( self, 0, 0, 0, 32, 32, 56 ); StartItem( self ); }
/*QUAKED light_globe (0 1 0) (-8 -8 -8) (8 8 8) Sphere globe light. Default light value is 300 Default style is 0 */ void SP_light_globe() { trap_precache_model( "progs/s_light.spr" ); setmodel( self, "progs/s_light.spr" ); makestatic( self ); }