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

Go to the source code of this file.

Classes

class  MonsterNade

Functions

void nade_monster_boom (entity this)

Variables

bool autocvar_g_nades_pokenade
float autocvar_g_nades_pokenade_monster_lifetime
string autocvar_g_nades_pokenade_monster_type
const int PROJECTILE_NADE_MONSTER = 82
const int PROJECTILE_NADE_MONSTER_BURN = 83

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().

Variable Documentation

◆ autocvar_g_nades_pokenade

bool autocvar_g_nades_pokenade

Definition at line 7 of file monster.qh.

Referenced by nades_CheckTypes().

◆ autocvar_g_nades_pokenade_monster_lifetime

float autocvar_g_nades_pokenade_monster_lifetime

Definition at line 9 of file monster.qh.

Referenced by nade_monster_boom().

◆ autocvar_g_nades_pokenade_monster_type

string autocvar_g_nades_pokenade_monster_type

Definition at line 8 of file monster.qh.

Referenced by MUTATOR_HOOKFUNCTION(), and nade_prime().

◆ PROJECTILE_NADE_MONSTER

const int PROJECTILE_NADE_MONSTER = 82

Definition at line 14 of file monster.qh.

Referenced by REGISTER_NADE().

◆ PROJECTILE_NADE_MONSTER_BURN

const int PROJECTILE_NADE_MONSTER_BURN = 83

Definition at line 15 of file monster.qh.

Referenced by REGISTER_NADE().