Xonotic
|
#include "player.qh"
#include <common/anim.qh>
#include <common/animdecide.qh>
#include <common/csqcmodel_settings.qh>
#include <common/deathtypes/all.qh>
#include <common/effects/all.qh>
#include <common/effects/qc/_mod.qh>
#include <common/gamemodes/_mod.qh>
#include <common/gamemodes/sv_rules.qh>
#include <common/mapobjects/_mod.qh>
#include <common/mapobjects/subs.qh>
#include <common/mapobjects/teleporters.qh>
#include <common/minigames/sv_minigames.qh>
#include <common/mutators/mutator/status_effects/_mod.qh>
#include <common/mutators/mutator/waypoints/waypointsprites.qh>
#include <common/physics/player.qh>
#include <common/playerstats.qh>
#include <common/state.qh>
#include <common/wepent.qh>
#include <lib/csqcmodel/sv_model.qh>
#include <server/bot/api.qh>
#include <server/cheats.qh>
#include <server/client.qh>
#include <server/clientkill.qh>
#include <server/command/common.qh>
#include <server/command/vote.qh>
#include <server/damage.qh>
#include <server/handicap.qh>
#include <server/hook.qh>
#include <server/main.qh>
#include <server/mutators/_mod.qh>
#include <server/portals.qh>
#include <server/teamplay.qh>
#include <server/weapons/accuracy.qh>
#include <server/weapons/common.qh>
#include <server/weapons/throwing.qh>
#include <server/weapons/weaponstats.qh>
#include <server/weapons/weaponsystem.qh>
#include <server/world.qh>
Go to the source code of this file.
Functions | |
void | CopyBody (entity this, float keepvelocity) |
void | CopyBody_Think (entity this) |
void | Drop_Special_Items (entity player) |
void | player_anim (entity this) |
void | player_setupanimsformodel (entity this) |
void | PlayerCorpseDamage (entity this, entity inflictor, entity attacker, float damage, int deathtype,.entity weaponentity, vector hitloc, vector force) |
void | PlayerDamage (entity this, entity inflictor, entity attacker, float damage, int deathtype,.entity weaponentity, vector hitloc, vector force) |
bool | PlayerHeal (entity targ, entity inflictor, float amount, float limit) |
PRECACHE (PlayerModels) | |
void | precache_all_playermodels (string pattern) |
void | precache_playermodel (string m) |
void | precache_playermodels (string s) |
Definition at line 64 of file player.qc.
References _ps, alpha, angles, anim_implicit_state, anim_implicit_time, anim_lower_action, anim_lower_implicit_action, anim_lower_implicit_time, anim_lower_time, anim_state, anim_time, anim_upper_action, anim_upper_implicit_action, anim_upper_implicit_time, anim_upper_time, animdecide_load_if_needed(), animdecide_setframes(), armortype, avelocity, clientcolors, colormap, CopyBody(), CopyBody_Think(), damagedbycontents, damageforcescale, death_time, dphitcontentsmask, Drag_MoveDrag(), EF_NODRAW, effects, entity(), fade_rate, fade_time, frame, frame1time, frame2, frame2time, g_clones, g_damagedbycontents, GetResource(), getthink, glowmod, IL_PUSH(), iscreature, lip, maxclients, maxs, mins, model, modelindex, move_movetype, MUTATOR_CALLHOOK, nextthink, origin, pain_finished, RES_HEALTH, set_movetype(), setorigin(), SetResourceExplicit(), setthink, skin, solid, species, takedamage, teleportable, time, v_angle, and velocity.
Referenced by CheatImpulse(), CopyBody(), and respawn().
Definition at line 50 of file player.qc.
References CopyBody_nextthink, CopyBody_Think(), getthink, nextthink, setthink, and time.
Referenced by CopyBody(), CopyBody_Think(), and PlayerDamage().
Definition at line 42 of file player.qc.
References MUTATOR_CALLHOOK.
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 152 of file player.qc.
References anim_state, animdecide_setimplicitstate(), animdecide_setstate(), ANIMSTATE_DEAD1, ANIMSTATE_DEAD2, ANIMSTATE_DUCK, ANIMSTATE_FOLLOW, ANIMSTATE_FROZEN, IS_DEAD, IS_DUCKED, IS_ONGROUND, move_movetype, MOVETYPE_FOLLOW, and random().
Referenced by PlayerThink().
Definition at line 145 of file player.qc.
References animdecide_load_if_needed(), and animdecide_setstate().
Referenced by setplayermodel().
void PlayerCorpseDamage | ( | entity | this, |
entity | inflictor, | ||
entity | attacker, | ||
float | damage, | ||
int | deathtype, | ||
.entity | weaponentity, | ||
vector | hitloc, | ||
vector | force | ||
) |
Definition at line 178 of file player.qc.
References alpha, ATTEN_NORM, autocvar_g_balance_armor_blockpercent, autocvar_g_balance_pause_health_regen, autocvar_sv_gibhealth, bound(), CH_SHOTS, DAMAGE_NO, damagedbycontents, dmg_inflictor, dmg_save, dmg_take, frame, g_damagedbycontents, GetResource(), IL_REMOVE(), max(), MSG_BROADCAST, pauseregen_finished, RES_HEALTH, solid, SOLID_NOT, sound, takedamage, TakeResource(), time, v, vector(), view_ofs, and VOL_BASE.
Referenced by PlayerDamage().
void PlayerDamage | ( | entity | this, |
entity | inflictor, | ||
entity | attacker, | ||
float | damage, | ||
int | deathtype, | ||
.entity | weaponentity, | ||
vector | hitloc, | ||
vector | force | ||
) |
Definition at line 229 of file player.qc.
References accuracy_isgooddamage(), alivetime, alpha, angles, anim_state, ANIMACTION_PAIN1, ANIMACTION_PAIN2, animdecide_setaction(), animdecide_setstate(), ANIMSTATE_DEAD1, ANIMSTATE_DEAD2, animstate_override, ATTACK_FINISHED_FOR, ATTEN_NORM, autocvar_g_balance_armor_blockpercent, autocvar_g_balance_pause_health_regen, autocvar_g_ballistics_density_corpse, autocvar_g_maxpushtime, autocvar_g_spawnshield_blockdamage, autocvar_sv_gibhealth, avelocity, bound(), calculate_player_respawn_time(), CH_PAIN, CH_SHOTS, classname, ClientKill_Now_TeamChange(), CopyBody_nextthink, CopyBody_Think(), CS(), DEAD_DYING, deadflag, DEATH_ISSPECIAL, death_time, DEATH_WEAPONOF, default_player_alpha, DIFF_TEAM, dmg_inflictor, dmg_save, dmg_take, fixangle, FL_GODMODE, flags, FOREACH, freeze_time, func_null(), GameRules_scoring_add, GetResource(), getthink, Handicap_GetTotalHandicap(), HITTYPE_SOUND, IS_BOT_CLIENT, IS_PLAYER, IS_REAL_CLIENT, istypefrag, ITEM_DAMAGE_NEEDKILL, killindicator, killindicator_teamchange, M_ARGV, Weapon::m_id, makevectors, max(), max_armorvalue, MAX_WEAPONSLOTS, maxs, mins, move_movetype, MOVETYPE_NOCLIP, MOVETYPE_TOSS, MSG_BROADCAST, MUTATOR_CALLHOOK, nextthink, NULL, Obituary(), origin, pain_finished, pauseregen_finished, PHYS_INPUT_BUTTON_CHAT, PlayerCorpseDamage(), Portal_ClearAllLater(), PS, pusher, pushltime, random(), RemoveGrapplingHooks(), RES_HEALTH, respawn_time, round_handler_IsActive, round_handler_IsRoundStarted, set_movetype(), setthink, skill, solid, SOLID_CORPSE, sound, spawnflags, SpawnThrownWeapon(), SUB_SetFade(), TakeResource(), TELEPORT_SIMPLE, teleportable, time, Unfreeze(), UNSET_ONGROUND, v, v_angle, v_right, vector(), velocity, view_ofs, vlen(), VOICETYPE_PLAYERSOUND, VOL_BASE, weaponentities, WeaponStats_LogDamage(), WeaponStats_LogKill(), and WEP_FLAG_CANCLIMB.
Referenced by PutPlayerInServer(), and vehicles_exit().
Definition at line 608 of file player.qc.
References GetResource(), GiveResourceWithLimit(), and RES_HEALTH.
Referenced by PutPlayerInServer().
PRECACHE | ( | PlayerModels | ) |
Definition at line 669 of file player.qc.
References autocvar_sv_defaultcharacter, autocvar_sv_defaultplayermodel, autocvar_sv_defaultplayermodel_blue, autocvar_sv_defaultplayermodel_pink, autocvar_sv_defaultplayermodel_red, autocvar_sv_defaultplayermodel_yellow, autocvar_sv_precacheplayermodels, precache_all_playermodels(), precache_playermodels(), and PrecachePlayerSounds().
Definition at line 651 of file player.qc.
References precache_playermodel(), search_begin(), search_end(), search_getfilename(), and search_getsize().
Referenced by PRECACHE(), and REGISTER_MUTATOR().
Definition at line 617 of file player.qc.
References fexists(), PrecachePlayerSounds(), search_begin(), search_end(), search_getfilename(), search_getsize(), strcat(), strstrofs, and substring().
Referenced by precache_all_playermodels(), and precache_playermodels().
Definition at line 664 of file player.qc.
References FOREACH_WORD, and precache_playermodel().
Referenced by PRECACHE().