Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
monster.qc File Reference
Include dependency graph for monster.qc:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void nade_monster_boom (entity this)

Function Documentation

◆ nade_monster_boom()

void nade_monster_boom ( entity this)

Definition at line 7 of file monster.qc.

8{
10 return;
11 entity e = spawn();
12 e.noalign = true; // don't drop to floor
13 e = spawnmonster(e, this.pokenade_type, MON_Null, this.realowner, this.realowner, this.origin, false, false, 1);
14 if(!e)
15 return; // monster failed to be spawned
16
19 e.monster_skill = MONSTER_SKILL_INSANE;
20}
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
float time
vector origin
#define spawn
float autocvar_g_nades_pokenade_monster_lifetime
Definition monster.qh:9
float autocvar_g_monsters
Definition sv_monsters.qh:5
const int MONSTER_SKILL_INSANE
string pokenade_type
Definition sv_nades.qh:48
entity spawnmonster(entity e, string monster, Monster monster_id, entity spawnedby, entity own, vector orig, bool respwn, bool removeifinvalid, int moveflag)
Definition sv_spawn.qc:14
entity realowner

References autocvar_g_monsters, autocvar_g_nades_pokenade_monster_lifetime, entity(), MONSTER_SKILL_INSANE, origin, pokenade_type, realowner, spawn, spawnmonster(), and time.

Referenced by nade_boom().