|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include "mage.qh"Go to the source code of this file.
Classes | |
| class | OffhandMageTeleport |
Functions | |
| bool | M_Mage_Attack (int attack_type, entity actor, entity targ,.entity weaponentity) |
| void | M_Mage_Attack_Push (entity this) |
| void | M_Mage_Attack_Spike (entity this, vector dir) |
| void | M_Mage_Attack_Spike_Explode (entity this, entity directhitentity) |
| void | M_Mage_Attack_Spike_Think (entity this) |
| void | M_Mage_Attack_Spike_Touch (entity this, entity toucher) |
| void | M_Mage_Attack_Teleport (entity this, entity targ) |
| void | M_Mage_Defend_Heal (entity this) |
| bool | M_Mage_Defend_Heal_Check (entity this, entity targ) |
| void | M_Mage_Defend_Shield (entity this) |
| SOUND (MageSpike_FIRE, W_Sound("electro_fire")) | |
| SOUND (MageSpike_IMPACT, W_Sound("grenade_impact")) | |
| SOUND (MageSpike_PUSH, W_Sound("tagexp1")) | |
| spawnfunc (monster_mage) | |
| STATIC_INIT (OFFHAND_MAGE_TELEPORT) | |
Definition at line 350 of file mage.qc.
References autocvar_g_monster_mage_attack_push_chance, autocvar_g_monster_mage_attack_spike_chance, autocvar_g_monster_mage_attack_spike_delay, autocvar_g_monster_mage_attack_teleport_chance, entity(), MONSTER_ATTACK_MELEE, MONSTER_ATTACK_RANGED, OFFHAND_MAGE_TELEPORT, OffhandWeapon::offhand_think(), random(), setanim, time, and Weapon::wr_think().
Definition at line 279 of file mage.qc.
References anim_finished, attack_finished_single, ATTEN_NORM, autocvar_g_monster_mage_attack_push_damage, autocvar_g_monster_mage_attack_push_delay, autocvar_g_monster_mage_attack_push_force, autocvar_g_monster_mage_attack_push_radius, CH_SHOTS, DMG_NOWEP, entity(), MONSTER_ATTACK_MELEE, NULL, origin, RadiusDamage(), Send_Effect(), setanim, sound, state, and time.
Definition at line 196 of file mage.qc.
References angles, CSQCProjectile(), dir, enemy, entity(), FL_PROJECTILE, g_bot_dodge, g_projectiles, IL_PUSH(), M_Mage_Attack_Spike(), M_Mage_Attack_Spike_Think(), M_Mage_Attack_Spike_Touch(), mage_spike, makevectors, MOVETYPE_FLYMISSILE, origin, PROJECTILE_MAGE_SPIKE, set_movetype(), setthink, settouch, SOLID_BBOX, time, v_forward, v_right, and vector.
Referenced by M_Mage_Attack_Spike().
Definition at line 118 of file mage.qc.
References ATTEN_NORM, autocvar_g_monster_mage_attack_spike_damage, autocvar_g_monster_mage_attack_spike_radius, CH_SHOTS, DMG_NOWEP, entity(), func_null(), NULL, origin, RadiusDamage(), realowner, Send_Effect(), sound, and VOL_BASE.
Referenced by M_Mage_Attack_Spike_Think(), and M_Mage_Attack_Spike_Touch().
Definition at line 143 of file mage.qc.
References autocvar_g_monster_mage_attack_spike_accel, autocvar_g_monster_mage_attack_spike_decel, autocvar_g_monster_mage_attack_spike_smart, autocvar_g_monster_mage_attack_spike_smart_mindist, autocvar_g_monster_mage_attack_spike_smart_trace_max, autocvar_g_monster_mage_attack_spike_smart_trace_min, autocvar_g_monster_mage_attack_spike_speed_max, autocvar_g_monster_mage_attack_spike_turnrate, bound(), DAMAGE_AIM, enemy, entity(), frametime, GetResource(), HITTYPE_SPLASH, IS_DEAD, ltime, M_Mage_Attack_Spike_Explode(), nextthink, normalize(), NULL, origin, owner, projectiledeathtype, time, trace_endpos, trace_fraction, trace_plane_normal, UpdateCSQCProjectile(), vdist, vector, velocity, vlen(), vlen2, and wait.
Referenced by M_Mage_Attack_Spike().
Definition at line 133 of file mage.qc.
References entity(), M_Mage_Attack_Spike_Explode(), PROJECTILE_TOUCH, and toucher.
Referenced by M_Mage_Attack_Spike().
Definition at line 292 of file mage.qc.
References absmax, absmin, angles, angles_y, attack_finished_single, autocvar_g_monster_mage_attack_teleport_delay, autocvar_g_monster_mage_attack_teleport_random, autocvar_g_monster_mage_attack_teleport_random_range, CENTER_OR_VIEWOFS, DPCONTENTS_BODY, DPCONTENTS_CORPSE, DPCONTENTS_DONOTENTER, DPCONTENTS_LAVA, DPCONTENTS_PLAYERCLIP, DPCONTENTS_SKY, DPCONTENTS_SLIME, DPCONTENTS_SOLID, entity(), fixangle, IS_ONGROUND, makevectors, maxs, mins, MOVE_NOMONSTERS, MoveToRandomLocationWithinBounds(), origin, Q3SURFACEFLAG_SKY, random(), Send_Effect(), time, trace_endpos, trace_fraction, v_forward, vdist, vectoangles(), vector, and velocity.
Referenced by OffhandMageTeleport::offhand_think().
Definition at line 222 of file mage.qc.
References anim_finished, attack_finished_single, autocvar_g_balance_armor_regenstable, autocvar_g_balance_health_regenstable, autocvar_g_monster_mage_heal_allies, autocvar_g_monster_mage_heal_delay, autocvar_g_monster_mage_heal_range, autocvar_g_pickup_cells_max, autocvar_g_pickup_nails_max, autocvar_g_pickup_rockets_max, autocvar_g_pickup_shells_max, entity(), FOREACH_ENTITY_RADIUS, GetResource(), GiveResourceWithLimit(), Heal(), IS_PLAYER, M_Mage_Defend_Heal_Check(), MONSTER_ATTACK_MELEE, MONSTERFLAG_INVINCIBLE, origin, RES_ARMOR, RES_LIMIT_NONE, Send_Effect(), setanim, skin, state, time, and WaypointSprite_UpdateHealth().
Definition at line 85 of file mage.qc.
References autocvar_g_balance_armor_regenstable, autocvar_g_balance_health_regenstable, autocvar_g_pickup_cells_max, autocvar_g_pickup_nails_max, autocvar_g_pickup_rockets_max, autocvar_g_pickup_shells_max, DIFF_TEAM, entity(), GetResource(), IS_MONSTER, IS_PLAYER, monster_follow, RES_ARMOR, skin, STAT, and StatusEffects_active().
Referenced by M_Mage_Defend_Heal().
Definition at line 340 of file mage.qc.
References anim_finished, attack_finished_single, autocvar_g_monster_mage_shield_blockpercent, autocvar_g_monster_mage_shield_delay, autocvar_g_monster_mage_shield_time, entity(), mage_shield_delay, RES_ARMOR, setanim, SetResourceExplicit(), StatusEffects_apply(), and time.
| SOUND | ( | MageSpike_FIRE | , |
| W_Sound("electro_fire") | ) |
| SOUND | ( | MageSpike_IMPACT | , |
| W_Sound("grenade_impact") | ) |
| SOUND | ( | MageSpike_PUSH | , |
| W_Sound("tagexp1") | ) |
References autocvar_g_monsters_target_range, CH_WEAPON_B, dir, entity(), v_forward, vector, w_ready(), and w_shotdir.
| spawnfunc | ( | monster_mage | ) |
Definition at line 393 of file mage.qc.
References Monster_Spawn().
| STATIC_INIT | ( | OFFHAND_MAGE_TELEPORT | ) |
Definition at line 77 of file mage.qc.
References NEW, OFFHAND_MAGE_TELEPORT, and STATIC_INIT.
| float autocvar_g_monster_mage_attack_push_chance = 0.7 |
Definition at line 19 of file mage.qc.
Referenced by M_Mage_Attack().
| float autocvar_g_monster_mage_attack_push_damage |
Definition at line 20 of file mage.qc.
Referenced by M_Mage_Attack_Push().
| float autocvar_g_monster_mage_attack_push_delay |
Definition at line 22 of file mage.qc.
Referenced by M_Mage_Attack_Push().
| float autocvar_g_monster_mage_attack_push_force |
Definition at line 23 of file mage.qc.
Referenced by M_Mage_Attack_Push().
| float autocvar_g_monster_mage_attack_push_radius |
Definition at line 21 of file mage.qc.
Referenced by M_Mage_Attack_Push().
| float autocvar_g_monster_mage_attack_spike_accel |
Definition at line 10 of file mage.qc.
Referenced by M_Mage_Attack_Spike_Think().
| float autocvar_g_monster_mage_attack_spike_chance = 0.45 |
Definition at line 12 of file mage.qc.
Referenced by M_Mage_Attack().
| float autocvar_g_monster_mage_attack_spike_damage |
Definition at line 7 of file mage.qc.
Referenced by M_Mage_Attack_Spike_Explode().
| float autocvar_g_monster_mage_attack_spike_decel |
Definition at line 11 of file mage.qc.
Referenced by M_Mage_Attack_Spike_Think().
| float autocvar_g_monster_mage_attack_spike_delay |
Definition at line 9 of file mage.qc.
Referenced by M_Mage_Attack().
| float autocvar_g_monster_mage_attack_spike_radius |
Definition at line 8 of file mage.qc.
Referenced by M_Mage_Attack_Spike_Explode().
| float autocvar_g_monster_mage_attack_spike_smart |
Definition at line 15 of file mage.qc.
Referenced by M_Mage_Attack_Spike_Think().
| float autocvar_g_monster_mage_attack_spike_smart_mindist |
Definition at line 18 of file mage.qc.
Referenced by M_Mage_Attack_Spike_Think().
| float autocvar_g_monster_mage_attack_spike_smart_trace_max |
Definition at line 17 of file mage.qc.
Referenced by M_Mage_Attack_Spike_Think().
| float autocvar_g_monster_mage_attack_spike_smart_trace_min |
Definition at line 16 of file mage.qc.
Referenced by M_Mage_Attack_Spike_Think().
| float autocvar_g_monster_mage_attack_spike_speed_max |
Definition at line 14 of file mage.qc.
Referenced by M_Mage_Attack_Spike_Think().
| float autocvar_g_monster_mage_attack_spike_turnrate |
Definition at line 13 of file mage.qc.
Referenced by M_Mage_Attack_Spike_Think().
| float autocvar_g_monster_mage_attack_teleport_chance = 0.2 |
Definition at line 24 of file mage.qc.
Referenced by M_Mage_Attack().
| float autocvar_g_monster_mage_attack_teleport_delay = 2 |
Definition at line 25 of file mage.qc.
Referenced by M_Mage_Attack_Teleport().
| float autocvar_g_monster_mage_attack_teleport_random = 0.4 |
Definition at line 26 of file mage.qc.
Referenced by M_Mage_Attack_Teleport().
| float autocvar_g_monster_mage_attack_teleport_random_range = 1200 |
Definition at line 27 of file mage.qc.
Referenced by M_Mage_Attack_Teleport().
| float autocvar_g_monster_mage_heal_allies |
Definition at line 28 of file mage.qc.
Referenced by M_Mage_Defend_Heal().
| float autocvar_g_monster_mage_heal_delay |
Definition at line 31 of file mage.qc.
Referenced by M_Mage_Defend_Heal().
| float autocvar_g_monster_mage_heal_range |
Definition at line 30 of file mage.qc.
Referenced by M_Mage_Defend_Heal().
| float autocvar_g_monster_mage_shield_blockpercent |
Definition at line 34 of file mage.qc.
Referenced by M_Mage_Defend_Shield().
| float autocvar_g_monster_mage_shield_delay |
Definition at line 33 of file mage.qc.
Referenced by M_Mage_Defend_Shield().
| float autocvar_g_monster_mage_shield_time |
Definition at line 32 of file mage.qc.
Referenced by M_Mage_Defend_Shield().
| float mage_shield_delay |
Definition at line 83 of file mage.qc.
Referenced by M_Mage_Defend_Shield().
| entity mage_spike |
Definition at line 82 of file mage.qc.
Referenced by M_Mage_Attack_Spike().
| OffhandMageTeleport OFFHAND_MAGE_TELEPORT |
Definition at line 76 of file mage.qc.
Referenced by M_Mage_Attack(), and STATIC_INIT().