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
11 ATTRIB(Spider, m_mins, vector, '-30 -30 -25');
12 ATTRIB(Spider, m_maxs, vector, '30 30 30');
13#ifdef GAMEQC
14 ATTRIB(Spider, m_model, Model, MDL_MON_SPIDER);
15#endif
16 ATTRIB(Spider, netname, string, "spider");
17 ATTRIB(Spider, m_name, string, _("Spider"));
19
21
22#include <common/weapons/_all.qh>
23
26/* impulse */ ATTRIB(SpiderAttack, impulse, int, 9);
27/* refname */ ATTRIB(SpiderAttack, netname, string, "spider");
28/* wepname */ ATTRIB(SpiderAttack, m_name, string, _("Spider attack"));
31
32#include <common/mutators/mutator/status_effects/all.qh>
33
35 ATTRIB(Webbed, netname, string, "webbed");
36#if 0
37 // NOTE: status effect name and icon disabled as they are not displayed
38 // re-enable if status effects are given a visual element
39 ATTRIB(Webbed, m_name, string, _("Webbed"));
40 ATTRIB(Webbed, m_icon, string, "buff_disability");
41#endif
42 ATTRIB(Webbed, m_color, vector, '0.94 0.3 1');
43 ATTRIB(Webbed, m_hidden, bool, true);
44 ATTRIB(Webbed, m_lifetime, float, 10);
Definition model.qh:3
ATTRIB(Monster, m_icon, string)
icon
string m_name
Definition spider.qh:28
int spawnflags
Definition spider.qh:25
int impulse
Definition spider.qh:26
string netname
Definition spider.qh:27
int spawnflags
Definition spider.qh:10
string netname
Definition spider.qh:16
vector m_mins
Definition spider.qh:11
Model m_model
Definition spider.qh:14
string m_name
Definition spider.qh:17
vector m_maxs
Definition spider.qh:12
ATTRIB(StatusEffect, m_name, string)
ATTRIB(Weapon, m_canonical_spawnfunc, string)
the canonical spawnfunc name
string netname
Definition spider.qh:35
vector m_color
Definition spider.qh:42
float m_lifetime
Definition spider.qh:44
bool m_hidden
Definition spider.qh:43
string m_name
Definition scores.qh:142
#define MODEL(name, path)
Definition all.qh:8
string M_Model(string m_mdl)
Definition all.qc:3
#define REGISTER_MONSTER(id, inst)
Definition all.qh:9
const int MON_FLAG_RANGED
Definition monster.qh:13
const int MON_FLAG_MELEE
Definition monster.qh:14
const int MON_FLAG_RIDE
Definition monster.qh:16
#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:216
const int WEP_FLAG_SPECIALATTACK
Definition weapon.qh:227