|
Xonotic
|
#include "all.qh"
Include dependency graph for sv_monsters.qh:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Macros | |
| #define | _MSOUND(m) .string monstersound_##m; |
| #define | ALLMONSTERSOUNDS |
| #define | MONSTER_SKILLMOD(mon) (0.5 + mon.monster_skill * ((1.2 - 0.3) / 10)) |
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_monsters) | |
| STATIC_INIT (g_monster_targets) | |
| #define _MSOUND | ( | m | ) | .string monstersound_##m; |
Definition at line 138 of file sv_monsters.qh.
| #define ALLMONSTERSOUNDS |
Definition at line 128 of file sv_monsters.qh.
Referenced by Monster_Sound_SampleField(), and Monster_Sounds_Clear().
| #define MONSTER_SKILLMOD | ( | mon | ) | (0.5 + mon.monster_skill * ((1.2 - 0.3) / 10)) |
Definition at line 59 of file sv_monsters.qh.
Referenced by 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 403 of file sv_monsters.qc.
References anim_finished, animstate_endtime, attack_finished_single, IS_MONSTER, Monster_Attack_Leap_Check(), MONSTER_ATTACK_RANGED, setanim, state, time, UNSET_ONGROUND, and velocity.
Here is the call graph for this function:| float Monster_Attack_Melee | ( | entity | this, |
| entity | targ, | ||
| float | damg, | ||
| vector | anim, | ||
| float | er, | ||
| float | animtime, | ||
| int | deathtype, | ||
| float | dostop | ||
| ) |
Definition at line 218 of file sv_monsters.qc.
References entity(), Monster_Delay(), Monster_Delay_Action(), new_pure, setthink, and time.
Referenced by Monster_Delay().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 126 of file sv_monsters.qc.
References CENTER_OR_VIEWOFS, enemy, entity(), g_monster_targets, IL_EACH, MUTATOR_CALLHOOK, NULL, vdist, and vector().
Referenced by Monster_Enemy_Check().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 66 of file sv_monsters.qc.
References IS_MONSTER, makevectors, origin, v, v_angle, vectoangles(), vector(), and view_ofs.
Referenced by Monster_Attack_Check(), and Monster_Delay_Action().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 852 of file sv_monsters.qc.
References iceblock, IS_CLIENT, MAX_WEAPONSLOTS, MUTATOR_CALLHOOK, origin, sprite, and weaponentities.
Referenced by CommonCommand_editmob(), Invasion_CheckWinner(), and Monster_Spawn().
Here is the caller graph for this function:Definition at line 154 of file sv_monsters.qc.
References colormap, 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 invasion_SpawnChosenMonster(), monster_changeteam(), and Monster_Spawn().
Here is the caller graph for this function:| void Monster_Sound | ( | entity | this, |
| .string | samplefield, | ||
| float | sound_delay, | ||
| float | delaytoo, | ||
| float | chan | ||
| ) |
Definition at line 1325 of file sv_monsters.qc.
References angles, autocvar_g_fullbrightplayers, autocvar_g_monsters, autocvar_g_monsters_edit, autocvar_g_monsters_quake_resize, autocvar_g_monsters_spawnshieldtime, autocvar_g_monsters_think_delay, autocvar_g_nodepthtestplayers, autocvar_g_playerclip_collisions, bot_attack, bound(), candrop, classname, cvar(), DAMAGE_AIM, damagedbycontents, DEAD_NO, deadflag, DPCONTENTS_BODY, DPCONTENTS_BOTCLIP, DPCONTENTS_MONSTERCLIP, DPCONTENTS_PLAYERCLIP, DPCONTENTS_SOLID, dphitcontentsmask, EF_FULLBRIGHT, EF_NODEPTHTEST, effects, enemy, 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, maxs, mdl_dead, mins, Monster_Appear_Check(), Monster_Damage(), monster_face, Monster_Heal(), monster_moveto, Monster::monster_name, Monster_Remove(), Monster_Reset(), monster_setupcolors(), MONSTER_SIZE_BROKEN, 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, MOVETYPE_FLY, MOVETYPE_WALK, netname, Monster::netname, noalign, NULL, oldtarget2, origin, pos1, scale, set_movetype(), setmodel, setorigin(), solid, SOLID_BBOX, spawn_time, Monster::spawnflags, spawnflags, sys_frametime, takedamage, target2, team, teamplay, teleportable, ticrate, time, trace_endpos, use, velocity, and view_ofs.
Referenced by Monster_Appear(), Monster_Respawn(), and spawnmonster().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 479 of file sv_monsters.qc.
References enemy, IS_MONSTER, Monster_ValidTarget(), and NULL.
Referenced by Monster_Dead(), Monster_Move(), and Monster_Spawn().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 33 of file sv_monsters.qc.
References monsters_killed, and monsters_total.
Referenced by PlayerThink().
Here is the caller graph for this function:| STATIC_INIT | ( | g_monsters | ) |
| STATIC_INIT | ( | g_monster_targets | ) |
| float anim_finished |
Definition at line 51 of file sv_monsters.qh.
Referenced by Monster_Attack_Leap(), Monster_Attack_Melee(), and Monster_Move().
| float attack_range |
Definition at line 43 of file sv_monsters.qh.
Referenced by Monster_Spawn_Setup().
| float autocvar_g_monsters |
Definition at line 5 of file sv_monsters.qh.
Referenced by CommonCommand_editmob(), Monster_Spawn(), and spawnfunc().
| float autocvar_g_monsters_armor_blockpercent |
Definition at line 28 of file sv_monsters.qh.
| 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 11 of file sv_monsters.qh.
Referenced by Monster_Spawn_Setup().
| float autocvar_g_monsters_drop_time |
Definition at line 22 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 29 of file sv_monsters.qh.
Referenced by Monster_Spawn_Setup().
Definition at line 30 of file sv_monsters.qh.
Referenced by Monster_ValidTarget().
| int autocvar_g_monsters_max |
Definition at line 9 of file sv_monsters.qh.
Referenced by CommonCommand_editmob().
| int autocvar_g_monsters_max_perplayer |
Definition at line 10 of file sv_monsters.qh.
Referenced by CommonCommand_editmob().
| float autocvar_g_monsters_miniboss_chance |
Definition at line 20 of file sv_monsters.qh.
Referenced by Monster_Miniboss_Check().
| float autocvar_g_monsters_miniboss_healthboost |
Definition at line 21 of file sv_monsters.qh.
Referenced by Monster_Miniboss_Check().
| bool autocvar_g_monsters_owners |
Definition at line 19 of file sv_monsters.qh.
Referenced by spawnmonster().
Definition at line 24 of file sv_monsters.qh.
Referenced by Monster_Spawn().
| bool autocvar_g_monsters_respawn |
Definition at line 27 of file sv_monsters.qh.
Referenced by Monster_Respawn_Check().
| float autocvar_g_monsters_respawn_delay |
Definition at line 26 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 23 of file sv_monsters.qh.
Referenced by Monster_Spawn().
| bool autocvar_g_monsters_target_infront |
Definition at line 13 of file sv_monsters.qh.
Referenced by Monster_ValidTarget().
| float autocvar_g_monsters_target_infront_range = 0.3 |
Definition at line 14 of file sv_monsters.qh.
Referenced by Monster_ValidTarget().
| float autocvar_g_monsters_target_range |
Definition at line 12 of file sv_monsters.qh.
Referenced by Monster_Spawn_Setup().
| bool autocvar_g_monsters_teams |
Definition at line 25 of file sv_monsters.qh.
Referenced by Monster_Move(), and spawnmonster().
| float autocvar_g_monsters_think_delay |
Definition at line 8 of file sv_monsters.qh.
Referenced by Monster_Spawn().
| bool autocvar_g_monsters_typefrag |
Definition at line 18 of file sv_monsters.qh.
Referenced by Monster_ValidTarget().
| bool candrop |
Definition at line 45 of file sv_monsters.qh.
Referenced by Monster_Damage(), Monster_Dead(), monster_dropitem(), and Monster_Spawn().
| IntrusiveList g_monster_targets |
Definition at line 147 of file sv_monsters.qh.
Referenced by invasion_SpawnChosenMonster(), monster_changeteam(), Monster_FindTarget(), Monster_Spawn_Setup(), PutObserverInServer(), PutPlayerInServer(), and SV_OnEntityPreSpawnFunction().
| IntrusiveList g_monsters |
Definition at line 144 of file sv_monsters.qh.
Referenced by antilag_restore_all(), antilag_takeback_all(), CommonCommand_editmob(), EndFrame(), Invasion_CheckWinner(), Monster_Spawn(), spawner_use(), and WinningCondition_Invasion().
| ALLMONSTERSOUNDS float GetMonsterSoundSampleField_notFound |
Definition at line 142 of file sv_monsters.qh.
Referenced by Monster_Sound_SampleField(), and Monster_Sounds_Load().
| float last_enemycheck |
Definition at line 50 of file sv_monsters.qh.
Referenced by Monster_Think().
| float last_trace |
Definition at line 49 of file sv_monsters.qh.
Referenced by Monster_Move(), and Monster_Move_Target().
| string mdl_dead |
Definition at line 57 of file sv_monsters.qh.
Referenced by Monster_Dead(), and Monster_Spawn().
| bool monster_attack |
Definition at line 62 of file sv_monsters.qh.
Referenced by monster_changeteam(), Monster_Spawn_Setup(), PutObserverInServer(), PutPlayerInServer(), and SV_OnEntityPreSpawnFunction().
| const int MONSTER_ATTACK_MELEE = 6 |
Definition at line 70 of file sv_monsters.qh.
Referenced by Monster_Attack_Check(), Monster_Attack_Melee(), and Monster_Move().
| const int MONSTER_ATTACK_RANGED = 7 |
Definition at line 71 of file sv_monsters.qh.
Referenced by Monster_Attack_Check(), Monster_Attack_Leap(), and Monster_Move().
| vector monster_face |
Definition at line 53 of file sv_monsters.qh.
Referenced by Monster_Enemy_Check(), Monster_Move(), and Monster_Spawn().
| entity monster_follow |
Definition at line 39 of file sv_monsters.qh.
Referenced by Monster_Move(), Monster_Move_Target(), Monster_Spawn_Setup(), and Monster_ValidTarget().
| float monster_lifetime |
Definition at line 42 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 69 of file sv_monsters.qh.
Referenced by Monster_Move_Target().
| const int MONSTER_MOVE_FOLLOW = 1 |
Definition at line 65 of file sv_monsters.qh.
Referenced by Monster_Move_Target().
| const int MONSTER_MOVE_NOMOVE = 4 |
Definition at line 68 of file sv_monsters.qh.
Referenced by Monster_Move_Target().
| const int MONSTER_MOVE_SPAWNLOC = 3 |
Definition at line 67 of file sv_monsters.qh.
Referenced by Monster_Move_Target().
| const int MONSTER_MOVE_WANDER = 2 |
Definition at line 66 of file sv_monsters.qh.
Referenced by Monster_Move_Target(), and Monster_Spawn_Setup().
| int monster_moveflags |
Definition at line 47 of file sv_monsters.qh.
Referenced by Monster_Move_Target(), Monster_Spawn_Setup(), and spawner_use().
| int monster_movestate |
Definition at line 38 of file sv_monsters.qh.
Referenced by Monster_Move_Target().
| vector monster_moveto |
Definition at line 52 of file sv_monsters.qh.
Referenced by Monster_Enemy_Check(), Monster_Move(), Monster_Move_Target(), and Monster_Spawn().
| int monster_skill |
Definition at line 96 of file sv_monsters.qh.
Referenced by monster_setupcolors(), Monster_Spawn(), and spawner_use().
| const int MONSTER_SKILL_EASY = 1 |
Definition at line 74 of file sv_monsters.qh.
Referenced by monster_setupcolors(), and Monster_Spawn().
| const int MONSTER_SKILL_HARD = 5 |
Definition at line 76 of file sv_monsters.qh.
Referenced by monster_setupcolors(), and Monster_Spawn().
| const int MONSTER_SKILL_INSANE = 7 |
Definition at line 77 of file sv_monsters.qh.
Referenced by monster_setupcolors().
| const int MONSTER_SKILL_MEDIUM = 3 |
Definition at line 75 of file sv_monsters.qh.
Referenced by monster_setupcolors(), and Monster_Spawn().
| const int MONSTER_SKILL_NIGHTMARE = 10 |
Definition at line 78 of file sv_monsters.qh.
Referenced by monster_setupcolors().
| const int MONSTERFLAG_APPEAR = 2 |
Definition at line 85 of file sv_monsters.qh.
Referenced by Monster_Appear_Check().
| const int MONSTERFLAG_FLY_VERTICAL = 8 |
Definition at line 87 of file sv_monsters.qh.
Referenced by Monster_Move(), and Monster_Move_Target().
| const int MONSTERFLAG_INFRONT = 32 |
Definition at line 88 of file sv_monsters.qh.
Referenced by Monster_ValidTarget().
| const int MONSTERFLAG_INVINCIBLE = 128 |
Definition at line 90 of file sv_monsters.qh.
Referenced by Monster_Damage(), Monster_Frozen_Think(), and Monster_Spawn_Setup().
| const int MONSTERFLAG_MINIBOSS = 64 |
Definition at line 89 of file sv_monsters.qh.
Referenced by invasion_SpawnChosenMonster(), and Monster_Miniboss_Check().
| const int MONSTERFLAG_NORESPAWN = 4 |
Definition at line 86 of file sv_monsters.qh.
Referenced by Monster_Respawn_Check(), and spawnmonster().
| const int MONSTERFLAG_RESPAWNED = 32768 |
Definition at line 92 of file sv_monsters.qh.
Referenced by Monster_Dead(), Monster_Dead_Fade(), Monster_Spawn(), Monster_Spawn_Setup(), MUTATOR_HOOKFUNCTION(), and WinningCondition_Invasion().
| const int MONSTERFLAG_SPAWNED = 16384 |
Definition at line 91 of file sv_monsters.qh.
Referenced by Monster_Dead(), Monster_Spawn(), MUTATOR_HOOKFUNCTION(), and spawnmonster().
| int monsters_killed |
Definition at line 35 of file sv_monsters.qh.
Referenced by CommonCommand_editmob(), Monster_Dead(), monsters_setstatus(), and MUTATOR_HOOKFUNCTION().
| int monsters_total |
Definition at line 34 of file sv_monsters.qh.
Referenced by CommonCommand_editmob(), Monster_Spawn(), monsters_setstatus(), and MUTATOR_HOOKFUNCTION().
| const int MONSTERSKILL_NOTEASY = 256 |
Definition at line 80 of file sv_monsters.qh.
Referenced by Monster_Spawn().
| const int MONSTERSKILL_NOTHARD = 1024 |
Definition at line 82 of file sv_monsters.qh.
Referenced by Monster_Spawn().
| const int MONSTERSKILL_NOTMEDIUM = 512 |
Definition at line 81 of file sv_monsters.qh.
Referenced by Monster_Spawn().
| float msound_delay |
Definition at line 127 of file sv_monsters.qh.
Referenced by Monster_Sound().
| int oldskin |
Definition at line 56 of file sv_monsters.qh.
Referenced by FixPlayermodel().
| string oldtarget2 |
Definition at line 48 of file sv_monsters.qh.
Referenced by Monster_Damage(), and Monster_Spawn().
| float spawn_time |
Definition at line 44 of file sv_monsters.qh.
Referenced by Monster_Move(), Monster_Move_2D(), and Monster_Spawn().
| float speed2 |
Definition at line 54 of file sv_monsters.qh.
Referenced by Monster_Think().
| float stopspeed |
Definition at line 55 of file sv_monsters.qh.
Referenced by Monster_Think().
| int totalspawned |
number of monsters spawned with mobspawn command
Definition at line 124 of file sv_monsters.qh.
Referenced by CommonCommand_editmob(), Monster_Dead(), Monster_Dead_Damage(), and Monster_Dead_Fade().
| float wander_delay |
Definition at line 40 of file sv_monsters.qh.
Referenced by Monster_Move_Target(), and Monster_Spawn_Setup().
| float wander_distance |
Definition at line 41 of file sv_monsters.qh.
Referenced by Monster_Move_Target(), and Monster_Spawn_Setup().