|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include "all.qh"Go to the source code of this file.
Macros | |
| #define | _MSOUND(m) |
| #define | ALLMONSTERSOUNDS |
| #define | MONSTER_SKILLMOD(mon) |
Functions | |
| bool | Monster_Attack_Leap (entity this, vector anm, void(entity this, entity toucher) touchfunc, vector vel, float animtime) |
| float | Monster_Attack_Melee (entity this, entity targ, float damg, vector anim, float er, float animtime, int deathtype, float dostop) |
| void | Monster_Delay (entity this, int repeat_count, float defer_amnt, void(entity) func) |
| entity | Monster_FindTarget (entity this) |
| void | monster_makevectors (entity this, entity targ) |
| void | Monster_Move_2D (entity this, float mspeed, float allow_jumpoff) |
| void | Monster_Remove (entity this) |
| void | monster_setupcolors (entity this) |
| void | Monster_Sound (entity this,.string samplefield, float sound_delay, float delaytoo, float chan) |
| bool | Monster_Spawn (entity this, bool check_appear, Monster mon) |
| void | Monster_Touch (entity this, entity toucher) |
| void | monsters_setstatus (entity this) |
| STATIC_INIT (g_monster_targets) | |
| STATIC_INIT (g_monsters) | |
| #define _MSOUND | ( | m | ) |
Definition at line 141 of file sv_monsters.qh.
| #define ALLMONSTERSOUNDS |
Definition at line 131 of file sv_monsters.qh.
Referenced by Monster_Sound_SampleField(), and Monster_Sounds_Clear().
| #define MONSTER_SKILLMOD | ( | mon | ) |
Definition at line 62 of file sv_monsters.qh.
Referenced by M_Golem_Attack_Smash(), M_Zombie_Attack_Leap_Touch(), Monster_Attack_Melee(), Monster_Move(), and Monster_Spawn_Setup().
| bool Monster_Attack_Leap | ( | entity | this, |
| vector | anm, | ||
| void(entity this, entity toucher) | touchfunc, | ||
| vector | vel, | ||
| float | animtime ) |
Definition at line 430 of file sv_monsters.qc.
References anim_finished, animstate_endtime, attack_finished_single, entity(), IS_MONSTER, Monster_Attack_Leap_Check(), MONSTER_ATTACK_RANGED, setanim, settouch, state, time, toucher, UNSET_ONGROUND, vector, and velocity.
Referenced by M_Zombie_Attack().
Definition at line 246 of file sv_monsters.qc.
References entity(), Monster_Delay(), Monster_Delay_Action(), new_pure, setthink, and time.
Referenced by M_Golem_Attack(), M_Wyvern_Attack(), M_Zombie_Defend_Block(), and Monster_Delay().
Definition at line 142 of file sv_monsters.qc.
References CENTER_OR_VIEWOFS, enemy, entity(), g_monster_targets, IL_EACH, MUTATOR_CALLHOOK, NULL, and vector.
Referenced by Monster_Enemy_Check().
Definition at line 85 of file sv_monsters.qc.
References entity(), IS_MONSTER, makevectors, origin, v_angle, vectoangles(), vector, and view_ofs.
Referenced by M_Golem_Attack_Lightning(), Monster_Attack_Check(), and Monster_Delay_Action().
Definition at line 943 of file sv_monsters.qc.
References entity(), IS_CLIENT, MAX_WEAPONSLOTS, MUTATOR_CALLHOOK, origin, Send_Effect(), sprite, WaypointSprite_Kill(), and weaponentities.
Referenced by CommonCommand_editmob(), Invasion_CheckWinner(), Monster_Reset(), and Monster_Spawn().
Definition at line 176 of file sv_monsters.qc.
References colormap, colormapPaletteColor, entity(), glowmod, IS_PLAYER, monster_skill, MONSTER_SKILL_EASY, MONSTER_SKILL_HARD, MONSTER_SKILL_INSANE, MONSTER_SKILL_MEDIUM, MONSTER_SKILL_NIGHTMARE, realowner, team, and teamplay.
Referenced by monster_changeteam(), and Monster_Spawn().
| void Monster_Sound | ( | entity | this, |
| .string | samplefield, | ||
| float | sound_delay, | ||
| float | delaytoo, | ||
| float | chan ) |
References entity().
Definition at line 1397 of file sv_monsters.qc.
References angles, autocvar_g_fullbrightplayers, autocvar_g_monsters, autocvar_g_monsters_edit, autocvar_g_monsters_playerclip_collisions, autocvar_g_monsters_quake_resize, autocvar_g_monsters_spawnshieldtime, autocvar_g_nodepthtestplayers, bot_attack, candrop, classname, CSQCMODEL_AUTOINIT, cvar(), DAMAGE_AIM, damagedbycontents, DEAD_NO, deadflag, DPCONTENTS_BODY, DPCONTENTS_BOTCLIP, DPCONTENTS_MONSTERCLIP, DPCONTENTS_PLAYERCLIP, DPCONTENTS_SOLID, dphitcontentsmask, EF_FULLBRIGHT, EF_NODEPTHTEST, effects, enemy, entity(), FL_FLY, FL_MONSTER, FL_SWIM, flags, g_bot_targets, g_damagedbycontents, g_monsters, grab, gravity, IL_PUSH(), iscreature, Monster::m_maxs, Monster::m_mins, m_name, Monster::m_name, maxs, mdl, mdl_dead, mins, Monster_Appear_Check(), Monster_Damage(), monster_face, Monster_Heal(), monster_moveto, Monster_Remove(), Monster_Reset(), monster_setupcolors(), MONSTER_SIZE_QUAKE, monster_skill, MONSTER_SKILL_EASY, MONSTER_SKILL_HARD, MONSTER_SKILL_MEDIUM, Monster_Spawn_Setup(), Monster_Touch(), MONSTER_TYPE_FLY, MONSTER_TYPE_SWIM, Monster_UpdateModel(), Monster_Use(), monsterdef, MONSTERFLAG_RESPAWNED, MONSTERFLAG_SPAWNED, monsters_total, MONSTERSKILL_NOTEASY, MONSTERSKILL_NOTHARD, MONSTERSKILL_NOTMEDIUM, MOVE_WORLDONLY, moveto, MOVETYPE_FLY, MOVETYPE_WALK, Monster::netname, netname, noalign, NULL, oldtarget2, origin, pos1, RoundPerfectVector(), scale, set_movetype(), setmodel, settouch, solid, SOLID_BBOX, spawn_time, Monster::spawnflags, spawnflags, statuseffects, StatusEffects_apply(), StatusEffects_clearall(), StatusEffects_update(), takedamage, target2, team, teamplay, teleportable, time, trace_endpos, use, velocity, and view_ofs.
Referenced by Monster_Appear(), Monster_Respawn(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), and spawnmonster().
Definition at line 508 of file sv_monsters.qc.
References enemy, entity(), IS_MONSTER, Monster_ValidTarget(), spawn_time, time, and toucher.
Referenced by M_Zombie_Attack_Leap_Touch(), Monster_Dead(), Monster_Move(), and Monster_Spawn().
Definition at line 34 of file sv_monsters.qc.
References entity(), monsters_killed, monsters_total, and STAT.
Referenced by PlayerThink().
| STATIC_INIT | ( | g_monster_targets | ) |
| STATIC_INIT | ( | g_monsters | ) |
| float anim_finished |
Definition at line 53 of file sv_monsters.qh.
Referenced by M_Mage_Attack_Push(), M_Mage_Defend_Heal(), M_Mage_Defend_Shield(), M_Zombie_Defend_Block(), Monster_Attack_Leap(), Monster_Attack_Melee(), and Monster_Move().
| float attack_range |
Definition at line 45 of file sv_monsters.qh.
Referenced by M_Golem_Attack_Swing(), and Monster_Spawn_Setup().
| float autocvar_g_monsters |
Definition at line 5 of file sv_monsters.qh.
Referenced by CommonCommand_editmob(), Monster_Spawn(), nade_monster_boom(), nades_CheckTypes(), and spawnfunc().
| float autocvar_g_monsters_armor_blockpercent |
Definition at line 30 of file sv_monsters.qh.
Referenced by M_Zombie_Defend_Block_End().
| float autocvar_g_monsters_attack_range |
Definition at line 15 of file sv_monsters.qh.
Referenced by Monster_Spawn_Setup().
| float autocvar_g_monsters_damageforcescale = 0.8 |
Definition at line 10 of file sv_monsters.qh.
Referenced by Monster_Spawn_Setup().
| float autocvar_g_monsters_drop_time = 10 |
Definition at line 24 of file sv_monsters.qh.
Referenced by monster_dropitem().
| bool autocvar_g_monsters_edit |
Definition at line 6 of file sv_monsters.qh.
Referenced by CommonCommand_editmob(), and Monster_Spawn().
| float autocvar_g_monsters_healthbars |
Definition at line 31 of file sv_monsters.qh.
Referenced by Monster_Spawn_Setup().
Definition at line 32 of file sv_monsters.qh.
Referenced by Monster_ValidTarget().
| int autocvar_g_monsters_max |
Definition at line 8 of file sv_monsters.qh.
Referenced by CommonCommand_editmob().
| int autocvar_g_monsters_max_perplayer |
Definition at line 9 of file sv_monsters.qh.
Referenced by CommonCommand_editmob().
| float autocvar_g_monsters_miniboss_chance |
Definition at line 21 of file sv_monsters.qh.
Referenced by Monster_Miniboss_Setup().
| float autocvar_g_monsters_miniboss_healthboost |
Definition at line 22 of file sv_monsters.qh.
Referenced by Monster_Miniboss_Setup().
| string autocvar_g_monsters_miniboss_loot = "vortex" |
Definition at line 23 of file sv_monsters.qh.
Referenced by monster_dropitem().
| bool autocvar_g_monsters_owners |
Definition at line 19 of file sv_monsters.qh.
Referenced by spawnmonster().
| bool autocvar_g_monsters_playerclip_collisions |
Definition at line 20 of file sv_monsters.qh.
Referenced by Monster_Spawn().
Definition at line 26 of file sv_monsters.qh.
Referenced by Monster_Spawn().
| bool autocvar_g_monsters_respawn |
Definition at line 29 of file sv_monsters.qh.
Referenced by Monster_Respawn_Check().
| float autocvar_g_monsters_respawn_delay |
Definition at line 28 of file sv_monsters.qh.
Referenced by Monster_Spawn_Setup().
| int autocvar_g_monsters_score_kill |
Definition at line 16 of file sv_monsters.qh.
Referenced by Monster_Dead().
| int autocvar_g_monsters_score_spawned |
Definition at line 17 of file sv_monsters.qh.
Referenced by Monster_Dead().
| bool autocvar_g_monsters_sounds |
Definition at line 7 of file sv_monsters.qh.
Referenced by Monster_Sound().
| float autocvar_g_monsters_spawnshieldtime |
Definition at line 25 of file sv_monsters.qh.
Referenced by Monster_Spawn().
| bool autocvar_g_monsters_target_infront |
Definition at line 12 of file sv_monsters.qh.
Referenced by Monster_Attack_Check(), and Monster_ValidTarget().
Definition at line 14 of file sv_monsters.qh.
Referenced by monster_facing().
| float autocvar_g_monsters_target_infront_range = 0.3 |
Definition at line 13 of file sv_monsters.qh.
Referenced by monster_facing().
| float autocvar_g_monsters_target_range |
Definition at line 11 of file sv_monsters.qh.
Referenced by Monster_Spawn_Setup(), and SOUND().
| bool autocvar_g_monsters_teams |
Definition at line 27 of file sv_monsters.qh.
Referenced by Monster_Move(), and spawnmonster().
| bool autocvar_g_monsters_typefrag |
Definition at line 18 of file sv_monsters.qh.
Referenced by Monster_ValidTarget().
| bool candrop |
Definition at line 47 of file sv_monsters.qh.
Referenced by Monster_Damage(), monster_dropitem(), and Monster_Spawn().
| IntrusiveList g_monster_targets |
Definition at line 150 of file sv_monsters.qh.
Referenced by func_breakable_setup(), invasion_SpawnChosenMonster(), monster_changeteam(), Monster_FindTarget(), Monster_Spawn_Setup(), PutObserverInServer(), PutPlayerInServer(), STATIC_INIT(), and SV_OnEntityPreSpawnFunction().
| IntrusiveList g_monsters |
Definition at line 147 of file sv_monsters.qh.
Referenced by antilag_restore_all(), antilag_takeback_all(), CommonCommand_editmob(), EndFrame(), Invasion_CheckWinner(), Monster_Spawn(), spawner_use(), STATIC_INIT(), and WinningCondition_Invasion().
| ALLMONSTERSOUNDS float GetMonsterSoundSampleField_notFound |
Definition at line 145 of file sv_monsters.qh.
Referenced by Monster_Sound_SampleField(), and Monster_Sounds_Load().
| float last_enemycheck |
Definition at line 52 of file sv_monsters.qh.
Referenced by Monster_Spawn_Setup(), and Monster_Think().
| float last_trace |
Definition at line 51 of file sv_monsters.qh.
Referenced by Monster_Move(), and Monster_Move_Target().
| string mdl_dead |
Definition at line 59 of file sv_monsters.qh.
| bool monster_attack |
Definition at line 65 of file sv_monsters.qh.
Referenced by func_breakable_setup(), monster_changeteam(), Monster_Spawn_Setup(), PutObserverInServer(), PutPlayerInServer(), and SV_OnEntityPreSpawnFunction().
| const int MONSTER_ATTACK_MELEE = 6 |
Definition at line 73 of file sv_monsters.qh.
Referenced by M_Golem_Attack(), M_Mage_Attack(), M_Mage_Attack_Push(), M_Mage_Defend_Heal(), M_Spider_Attack(), M_Wyvern_Attack(), M_Zombie_Attack(), M_Zombie_Defend_Block(), Monster_Attack_Check(), Monster_Attack_Melee(), and Monster_Move().
| const int MONSTER_ATTACK_RANGED = 7 |
Definition at line 74 of file sv_monsters.qh.
Referenced by M_Golem_Attack(), M_Mage_Attack(), M_Spider_Attack(), M_Wyvern_Attack(), M_Zombie_Attack(), Monster_Attack_Check(), Monster_Attack_Leap(), and Monster_Move().
| vector monster_face |
Definition at line 55 of file sv_monsters.qh.
Referenced by Monster_Enemy_Check(), Monster_Move(), and Monster_Spawn().
| entity monster_follow |
Definition at line 41 of file sv_monsters.qh.
Referenced by M_Mage_Defend_Heal_Check(), Monster_Move(), Monster_Move_Target(), and Monster_ValidTarget().
| bool monster_item |
Definition at line 60 of file sv_monsters.qh.
| float monster_lifetime |
Definition at line 44 of file sv_monsters.qh.
Referenced by Monster_Dead(), Monster_Dead_Fade(), Monster_Dead_Think(), and Monster_Think().
| const int MONSTER_MOVE_ENEMY = 5 |
Definition at line 72 of file sv_monsters.qh.
Referenced by Monster_Move_Target().
| const int MONSTER_MOVE_FOLLOW = 1 |
Definition at line 68 of file sv_monsters.qh.
Referenced by Monster_Move_Target().
| const int MONSTER_MOVE_NOMOVE = 4 |
Definition at line 71 of file sv_monsters.qh.
Referenced by Monster_Move_Target().
| const int MONSTER_MOVE_SPAWNLOC = 3 |
Definition at line 70 of file sv_monsters.qh.
Referenced by Monster_Move_Target().
| const int MONSTER_MOVE_WANDER = 2 |
Definition at line 69 of file sv_monsters.qh.
Referenced by Monster_Move_Target(), and Monster_Spawn_Setup().
| int monster_moveflags |
Definition at line 49 of file sv_monsters.qh.
Referenced by Monster_Move_Target(), Monster_Spawn_Setup(), and spawner_use().
| int monster_movestate |
Definition at line 40 of file sv_monsters.qh.
Referenced by Monster_Move_Target().
| vector monster_moveto |
Definition at line 54 of file sv_monsters.qh.
Referenced by Monster_Enemy_Check(), Monster_Move(), Monster_Move_Target(), and Monster_Spawn().
| int monster_skill |
Definition at line 99 of file sv_monsters.qh.
Referenced by monster_setupcolors(), Monster_Spawn(), and spawner_use().
| const int MONSTER_SKILL_EASY = 1 |
Definition at line 77 of file sv_monsters.qh.
Referenced by monster_setupcolors(), and Monster_Spawn().
| const int MONSTER_SKILL_HARD = 5 |
Definition at line 79 of file sv_monsters.qh.
Referenced by monster_setupcolors(), and Monster_Spawn().
| const int MONSTER_SKILL_INSANE = 7 |
Definition at line 80 of file sv_monsters.qh.
Referenced by monster_setupcolors(), and nade_monster_boom().
| const int MONSTER_SKILL_MEDIUM = 3 |
Definition at line 78 of file sv_monsters.qh.
Referenced by monster_setupcolors(), and Monster_Spawn().
| const int MONSTER_SKILL_NIGHTMARE = 10 |
Definition at line 81 of file sv_monsters.qh.
Referenced by monster_setupcolors().
| const int MONSTERFLAG_APPEAR = 2 |
Definition at line 88 of file sv_monsters.qh.
Referenced by Monster_Appear_Check().
| const int MONSTERFLAG_FLY_VERTICAL = 8 |
Definition at line 90 of file sv_monsters.qh.
Referenced by Monster_Move(), and Monster_WanderTarget().
| const int MONSTERFLAG_INFRONT = 32 |
Definition at line 91 of file sv_monsters.qh.
Referenced by Monster_Attack_Check(), and Monster_ValidTarget().
| const int MONSTERFLAG_INVINCIBLE = 128 |
Definition at line 93 of file sv_monsters.qh.
Referenced by M_Mage_Defend_Heal(), Monster_Damage(), and Monster_Spawn_Setup().
| const int MONSTERFLAG_MINIBOSS = 64 |
Definition at line 92 of file sv_monsters.qh.
Referenced by invasion_SpawnChosenMonster(), monster_dropitem(), and Monster_Miniboss_Setup().
| const int MONSTERFLAG_NORESPAWN = 4 |
Definition at line 89 of file sv_monsters.qh.
Referenced by Monster_Respawn_Check(), and spawnmonster().
| const int MONSTERFLAG_RESPAWNED = 32768 |
Definition at line 95 of file sv_monsters.qh.
Referenced by Monster_Dead(), Monster_Dead_Fade(), Monster_Miniboss_Setup(), Monster_Spawn(), Monster_Spawn_Setup(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), and WinningCondition_Invasion().
| const int MONSTERFLAG_SPAWNED = 16384 |
Definition at line 94 of file sv_monsters.qh.
Referenced by Monster_Dead(), Monster_Reset(), Monster_Spawn(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), and spawnmonster().
| int monsters_killed |
Definition at line 37 of file sv_monsters.qh.
Referenced by CommonCommand_editmob(), Monster_Dead(), monsters_setstatus(), and MUTATOR_HOOKFUNCTION().
| int monsters_total |
Definition at line 36 of file sv_monsters.qh.
Referenced by CommonCommand_editmob(), Monster_Spawn(), monsters_setstatus(), and MUTATOR_HOOKFUNCTION().
| const int MONSTERSKILL_NOTEASY = 256 |
Definition at line 83 of file sv_monsters.qh.
Referenced by Monster_Spawn().
| const int MONSTERSKILL_NOTHARD = 1024 |
Definition at line 85 of file sv_monsters.qh.
Referenced by Monster_Spawn().
| const int MONSTERSKILL_NOTMEDIUM = 512 |
Definition at line 84 of file sv_monsters.qh.
Referenced by Monster_Spawn().
| float msound_delay |
Definition at line 130 of file sv_monsters.qh.
Referenced by Monster_Sound().
| int oldskin |
Definition at line 58 of file sv_monsters.qh.
Referenced by FixPlayermodel().
| string oldtarget2 |
Definition at line 50 of file sv_monsters.qh.
Referenced by Monster_Damage(), and Monster_Spawn().
| float spawn_time |
Definition at line 46 of file sv_monsters.qh.
Referenced by Monster_Move(), Monster_Move_2D(), Monster_Spawn(), Monster_Spawn_Setup(), and Monster_Touch().
| float speed2 |
Definition at line 56 of file sv_monsters.qh.
Referenced by Monster_Think(), and tubasound().
| float stopspeed |
Definition at line 57 of file sv_monsters.qh.
Referenced by Monster_Think().
| int totalspawned |
number of monsters spawned with mobspawn command
Definition at line 127 of file sv_monsters.qh.
Referenced by CommonCommand_editmob(), Monster_Dead(), Monster_Dead_Damage(), and Monster_Dead_Fade().
| float wander_delay |
Definition at line 42 of file sv_monsters.qh.
Referenced by Monster_Move_Target(), and Monster_Spawn_Setup().
| float wander_distance |
Definition at line 43 of file sv_monsters.qh.
Referenced by Monster_Spawn_Setup(), and Monster_WanderTarget().