Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
spider.qh
Go to the documentation of this file.
1#pragma once
2
3#include "../all.qh"
4
5#ifdef GAMEQC
6MODEL(MON_SPIDER, M_Model("spider.dpm"));
7#endif
8
10#ifdef SVQC
12 ATTRIB(Spider, m_mins, vector, '-30 -30 -25');
13 ATTRIB(Spider, m_maxs, vector, '30 30 30');
14#endif
15#ifdef GAMEQC
16 ATTRIB(Spider, m_model, Model, MDL_MON_SPIDER);
17#endif
18 ATTRIB(Spider, netname, string, "spider");
19 ATTRIB(Spider, m_name, string, _("Spider"));
21
23
24#include <common/weapons/_all.qh>
25
28/* impulse */ ATTRIB(SpiderAttack, impulse, int, 9);
29/* refname */ ATTRIB(SpiderAttack, netname, string, "spider");
30/* wepname */ ATTRIB(SpiderAttack, m_name, string, _("Spider attack"));
33
34#include <common/mutators/mutator/status_effects/all.qh>
35
37 ATTRIB(Webbed, netname, string, "webbed");
38#if 0
39 // NOTE: status effect name and icon disabled as they are not displayed
40 // re-enable if status effects are given a visual element
41 ATTRIB(Webbed, m_name, string, _("Webbed"));
42 ATTRIB(Webbed, m_icon, string, "buff_disability");
43#endif
44 ATTRIB(Webbed, m_color, vector, '0.94 0.3 1');
45 ATTRIB(Webbed, m_hidden, bool, true);
46 ATTRIB(Webbed, m_lifetime, float, 10);
Definition model.qh:3
string m_name
Definition spider.qh:30
int spawnflags
Definition spider.qh:27
int impulse
Definition spider.qh:28
string netname
Definition spider.qh:29
int spawnflags
Definition spider.qh:11
string netname
Definition spider.qh:18
vector m_mins
Definition spider.qh:12
Model m_model
Definition spider.qh:16
string m_name
Definition spider.qh:19
vector m_maxs
Definition spider.qh:13
ATTRIB(StatusEffect, m_name, string)
ATTRIB(Weapon, m_canonical_spawnfunc, string)
the canonical spawnfunc name
string netname
Definition spider.qh:37
vector m_color
Definition spider.qh:44
float m_lifetime
Definition spider.qh:46
bool m_hidden
Definition spider.qh:45
string m_name
Definition scores.qh:142
#define MODEL(name, path)
Definition all.qh:8
string M_Model(string m_mdl)
Definition all.qc:4
#define REGISTER_MONSTER(id, inst)
Definition all.qh:11
const int MON_FLAG_RANGED
monster shoots projectiles
Definition monster.qh:10
const int MON_FLAG_MELEE
Definition monster.qh:11
const int MON_FLAG_RIDE
monster can be ridden in special modes
Definition monster.qh:13
#define REGISTER_STATUSEFFECT(id, inst)
Definition all.qh:12
#define NEW(cname,...)
Definition oo.qh:117
#define CLASS(...)
Definition oo.qh:145
#define ENDCLASS(cname)
Definition oo.qh:281
#define ATTRIB(...)
Definition oo.qh:148
vector
Definition self.qh:92
#define REGISTER_WEAPON(id, inst)
Definition all.qh:136
const int WEP_FLAG_HIDDEN
Definition weapon.qh:258
const int WEP_FLAG_SPECIALATTACK
Definition weapon.qh:269