Xonotic
|
#include "csqcmodel_hooks.qh"
#include <client/mutators/_mod.qh>
#include <client/player_skeleton.qh>
#include <client/weapons/projectile.qh>
#include <common/animdecide.qh>
#include <common/effects/all.inc>
#include <common/effects/all.qh>
#include <common/ent_cs.qh>
#include <common/gamemodes/_mod.qh>
#include <common/mapinfo.qh>
#include <common/physics/movetypes/movetypes.qh>
#include <common/physics/player.qh>
#include <common/viewloc.qh>
#include <lib/csqcmodel/cl_model.qh>
#include <lib/csqcmodel/cl_player.qh>
#include <lib/csqcmodel/interpolate.qh>
Go to the source code of this file.
Macros | |
#define | FIX_FRAMETIME(f, ft) |
#define | fpc autocvar_cl_forceplayercolors |
#define | IS_DEAD_FRAME(f) ((f) == 0 || (f) == 1) |
Functions | |
void | CSQCModel_AutoTagIndex_Apply (entity this) |
void | CSQCModel_Effects_Apply (entity this) |
void | CSQCModel_Effects_PostUpdate (entity this) |
void | CSQCModel_Effects_PreUpdate (entity this) |
void | CSQCModel_Hook_PostUpdate (entity this, bool isnew, bool isplayer, bool islocalplayer) |
void | CSQCModel_Hook_PreDraw (entity this, bool isplayer) |
void | CSQCModel_Hook_PreUpdate (entity this, bool isnew, bool isplayer, bool islocalplayer) |
void | CSQCPlayer_AnimDecide_PostUpdate (entity this, bool isnew) |
int | CSQCPlayer_FallbackFrame (entity this, int f) |
void | CSQCPlayer_FallbackFrame_Apply (entity this) |
void | CSQCPlayer_FallbackFrame_PostUpdate (entity this, bool isnew) |
void | CSQCPlayer_FallbackFrame_PreUpdate (entity this) |
void | CSQCPlayer_LOD_Apply (entity this) |
void | CSQCPlayer_ModelAppearance_Apply (entity this, bool islocalplayer) |
void | CSQCPlayer_ModelAppearance_PostUpdate (entity this) |
void | CSQCPlayer_ModelAppearance_PreUpdate (entity this) |
void | Reset_ArcBeam () |
#define FIX_FRAMETIME | ( | f, | |
ft | |||
) |
Referenced by CSQCPlayer_FallbackFrame_PostUpdate().
#define fpc autocvar_cl_forceplayercolors |
Referenced by CSQCPlayer_ModelAppearance_Apply().
#define IS_DEAD_FRAME | ( | f | ) | ((f) == 0 || (f) == 1) |
Definition at line 361 of file csqcmodel_hooks.qc.
Referenced by CSQCPlayer_FallbackFrame_PostUpdate().
Definition at line 436 of file csqcmodel_hooks.qc.
References CSQCModel_Hook_PreDraw(), drawmask, entnum, findfloat(), gettagindex, ISPLAYER_CLIENT, ISPLAYER_MODEL, LOG_TRACE, model, MUTATOR_CALLHOOK, NULL, skeleton_loadinfo(), substring(), tag_entity, tag_entity_lastmodelindex, and tag_index.
Referenced by CSQCModel_Hook_PreDraw().
Definition at line 532 of file csqcmodel_hooks.qc.
References absmax, absmin, adddynamiclight, alpha, angles, autocvar_cl_jetpack_attenuation, bound(), CH_TRIGGER_SINGLE, CSQCMODEL_EF_RESPAWNGHOST, csqcmodel_effects, csqcmodel_modelflags, csqcmodel_traileffect, drawmask, EF_ADDITIVE, EF_BLUE, EF_BRIGHTFIELD, EF_BRIGHTLIGHT, EF_DIMLIGHT, EF_DOUBLESIDED, EF_DYNAMICMODELLIGHT, EF_FLAME, EF_FULLBRIGHT, EF_NODEPTHTEST, EF_NODRAW, EF_NOSELFSHADOW, EF_NOSHADOW, EF_RED, EF_STARDUST, effects, fmod(), frametime, makevectors, MF_GIB, MF_GRENADE, MF_ROCKET, MF_ROTATE, MF_TRACER, MF_TRACER2, MF_TRACER3, MF_ZOMGIB, origin, particleeffectnum, Projectile_DrawTrail(), Projectile_ResetTrail(), renderflags, RF_ADDITIVE, RF_DEPTHHACK, RF_DYNAMICMODELLIGHT, RF_FULLBRIGHT, RF_NOSHADOW, RF_USEAXIS, snd_looping, sound, time, velocity, and VOL_BASE.
Referenced by CSQCModel_Hook_PreDraw(), and viewmodel_draw().
Definition at line 516 of file csqcmodel_hooks.qc.
References csqcmodel_effects, csqcmodel_modelflags, csqcmodel_teleported, csqcmodel_traileffect, csqcplayer, effects, modelflags, origin, Projectile_ResetTrail(), and Reset_ArcBeam().
Referenced by CSQCModel_Hook_PostUpdate().
Definition at line 509 of file csqcmodel_hooks.qc.
References csqcmodel_effects, csqcmodel_modelflags, csqcmodel_traileffect, effects, modelflags, and Reset_ArcBeam().
Referenced by CSQCModel_Hook_PreUpdate().
Definition at line 764 of file csqcmodel_hooks.qc.
References BIT, BITSET, CSQCModel_Effects_PostUpdate(), csqcmodel_isdead, CSQCPlayer_AnimDecide_PostUpdate(), CSQCPlayer_FallbackFrame_PostUpdate(), CSQCPlayer_ModelAppearance_PostUpdate(), ISPLAYER_MODEL, isplayermodel, model, and substring().
Referenced by NET_HANDLE().
Definition at line 644 of file csqcmodel_hooks.qc.
References anim_frame, anim_frame1time, anim_frame2, anim_frame2time, anim_prev_pmove_flags, anim_saveframe, anim_saveframe1time, anim_saveframe2, anim_saveframe2time, anim_state, animdecide_load_if_needed(), animdecide_setframes(), animdecide_setimplicitstate(), animdecide_setstate(), ANIMSTATE_DUCK, autocvar_cl_jetpack_attenuation, CSQCModel_ApplyStairSmoothing(), CSQCModel_AutoTagIndex_Apply(), CSQCModel_Effects_Apply(), CSQCModel_InterpolateAnimation_2To4_Do(), CSQCModel_InterpolateAnimation_2To4_Note(), CSQCModel_InterpolateAnimation_2To4_PreNote(), csqcmodel_isdead, csqcmodel_predraw_run, CSQCMODEL_PROPERTY_FRAME, CSQCMODEL_PROPERTY_FRAME2, CSQCMODEL_PROPERTY_LERPFRAC, csqcplayer, CSQCPlayer_FallbackFrame_Apply(), CSQCPlayer_LOD_Apply(), CSQCPlayer_ModelAppearance_Apply(), drawmask, flags, frame, frame1time, frame2, frame2time, framecount, free_skeleton_from_frames(), IS_ONGROUND, ISPLAYER_LOCAL, ISPLAYER_MODEL, isplayermodel, lerpfrac, lerpfrac4, MASK_NORMAL, maxs, mins, model, modelindex, MOVE_NORMAL, origin, skeleton_from_frames(), skeleton_loadinfo(), snd_looping, sound, trace_fraction, trace_startsolid, and VOL_BASE.
Referenced by CSQCModel_AutoTagIndex_Apply(), and CSQCModel_Draw().
Definition at line 750 of file csqcmodel_hooks.qc.
References CSQCModel_Effects_PreUpdate(), CSQCPlayer_FallbackFrame_PreUpdate(), CSQCPlayer_ModelAppearance_PreUpdate(), IFLAG_V_ANGLE_X, iflags, ISPLAYER_MODEL, and isplayermodel.
Referenced by NET_HANDLE().
Definition at line 397 of file csqcmodel_hooks.qc.
References anim_state, ANIMSTATE_DEAD1, ANIMSTATE_DEAD2, boolean, and csqcmodel_isdead.
Referenced by CSQCModel_Hook_PostUpdate().
Definition at line 401 of file csqcmodel_hooks.qc.
References LOG_DEBUGF, model, modelindex, and TC.
Referenced by CSQCPlayer_FallbackFrame_Apply().
Definition at line 422 of file csqcmodel_hooks.qc.
References CSQCPlayer_FallbackFrame(), frame, frame2, frame3, and frame4.
Referenced by CSQCModel_Hook_PreDraw().
Definition at line 371 of file csqcmodel_hooks.qc.
References csqcmodel_isdead, csqcmodel_saveframe, csqcmodel_saveframe2, FIX_FRAMETIME, frame, frame1time, frame2, frame2time, frame3, frame3time, frame4, frame4time, and IS_DEAD_FRAME.
Referenced by CSQCModel_Hook_PostUpdate().
Definition at line 362 of file csqcmodel_hooks.qc.
References csqcmodel_saveframe, csqcmodel_saveframe2, frame, frame2, frame3, and frame4.
Referenced by CSQCModel_Hook_PreUpdate().
Definition at line 26 of file csqcmodel_hooks.qc.
References autocvar_cl_loddistance1, autocvar_cl_loddistance2, autocvar_cl_playerdetailreduction, bound(), current_viewzoom, fexists(), lodmodelindex0, lodmodelindex1, lodmodelindex2, maxs, mins, model, modelindex, origin, strcat(), strlen(), substring(), vector(), view_origin, view_quality, and vlen().
Referenced by CSQCModel_Hook_PreDraw().
Definition at line 136 of file csqcmodel_hooks.qc.
References autocvar__cl_color, autocvar__cl_playermodel, autocvar__cl_playerskin, autocvar_cl_deathglow, autocvar_cl_deathglow_min, autocvar_cl_forcemyplayercolors, autocvar_cl_forcemyplayermodel, autocvar_cl_forcemyplayerskin, autocvar_cl_forceplayermodels, autocvar_cl_forceuniqueplayercolors, autocvar_cl_respawn_ghosts_keepcolors, bound(), colormap, colormapPaletteColor, CSQCMODEL_EF_RESPAWNGHOST, csqcmodel_effects, csqcmodel_isdead, cvar_defstring(), death_time, entity(), entnum, fexists(), floor(), forceplayermodels_attempted, forceplayermodels_goodmodel, forceplayermodels_goodmodelindex, forceplayermodels_isgoodmodel, forceplayermodels_model, forceplayermodels_modelindex, forceplayermodels_modelisgoodmodel, forceplayermodels_myisgoodmodel, forceplayermodels_mymodel, forceplayermodels_mymodelindex, forceplayermodels_savecolormap, forceplayermodels_savemodel, forceplayermodels_savemodelindex, forceplayermodels_saveskin, forceplayermodels_skin, fpc, glowmod, isdemo(), ISGAMETYPE, LABEL, model, modelindex, MUTATOR_CALLHOOK, NUM_SPECTATOR, player_localnum, skin, spawn(), team_count, teamplay, teams, and time.
Referenced by CSQCModel_Hook_PreDraw().
Definition at line 121 of file csqcmodel_hooks.qc.
References colormap, fexists(), forceplayermodels_isgoodmodel, forceplayermodels_isgoodmodel_mdl, forceplayermodels_savecolormap, forceplayermodels_savemodel, forceplayermodels_savemodelindex, forceplayermodels_saveskin, LOG_INFOF, model, modelindex, and skin.
Referenced by CSQCModel_Hook_PostUpdate().
Definition at line 114 of file csqcmodel_hooks.qc.
References colormap, forceplayermodels_savecolormap, forceplayermodels_savemodel, forceplayermodels_savemodelindex, forceplayermodels_saveskin, model, modelindex, and skin.
Referenced by CSQCModel_Hook_PreUpdate().
void Reset_ArcBeam | ( | ) |
Referenced by CSQCModel_Effects_PostUpdate(), CSQCModel_Effects_PreUpdate(), TeleportPlayer(), and WarpZone_PostTeleportPlayer_Callback().
int anim_frame |
Definition at line 635 of file csqcmodel_hooks.qc.
Referenced by CSQCModel_Hook_PreDraw().
int anim_frame1time |
Definition at line 636 of file csqcmodel_hooks.qc.
Referenced by CSQCModel_Hook_PreDraw().
int anim_frame2 |
Definition at line 637 of file csqcmodel_hooks.qc.
Referenced by CSQCModel_Hook_PreDraw().
int anim_frame2time |
Definition at line 638 of file csqcmodel_hooks.qc.
Referenced by CSQCModel_Hook_PreDraw().
int anim_prev_pmove_flags |
Definition at line 643 of file csqcmodel_hooks.qc.
Referenced by CSQCModel_Hook_PreDraw().
int anim_saveframe |
Definition at line 639 of file csqcmodel_hooks.qc.
Referenced by CSQCModel_Hook_PreDraw().
int anim_saveframe1time |
Definition at line 640 of file csqcmodel_hooks.qc.
Referenced by CSQCModel_Hook_PreDraw().
int anim_saveframe2 |
Definition at line 641 of file csqcmodel_hooks.qc.
Referenced by CSQCModel_Hook_PreDraw().
int anim_saveframe2time |
Definition at line 642 of file csqcmodel_hooks.qc.
Referenced by CSQCModel_Hook_PreDraw().
int csqcmodel_framecount |
Definition at line 359 of file csqcmodel_hooks.qc.
int csqcmodel_predraw_run |
Definition at line 634 of file csqcmodel_hooks.qc.
Referenced by CSQCModel_Hook_PreDraw().
int csqcmodel_saveframe |
Definition at line 353 of file csqcmodel_hooks.qc.
Referenced by CSQCPlayer_FallbackFrame_PostUpdate(), and CSQCPlayer_FallbackFrame_PreUpdate().
int csqcmodel_saveframe2 |
Definition at line 354 of file csqcmodel_hooks.qc.
Referenced by CSQCPlayer_FallbackFrame_PostUpdate(), and CSQCPlayer_FallbackFrame_PreUpdate().
float death_time |
Definition at line 19 of file csqcmodel_hooks.qc.
Referenced by CopyBody(), CSQCPlayer_ModelAppearance_Apply(), PlayerDamage(), PlayerPostThink(), PutObserverInServer(), and PutPlayerInServer().
bool forceplayermodels_attempted |
Definition at line 99 of file csqcmodel_hooks.qc.
Referenced by CSQCPlayer_ModelAppearance_Apply().
string forceplayermodels_goodmodel |
Definition at line 109 of file csqcmodel_hooks.qc.
Referenced by CSQCPlayer_ModelAppearance_Apply().
int forceplayermodels_goodmodelindex |
Definition at line 110 of file csqcmodel_hooks.qc.
Referenced by CSQCPlayer_ModelAppearance_Apply().
bool forceplayermodels_isgoodmodel |
Definition at line 107 of file csqcmodel_hooks.qc.
Referenced by CSQCPlayer_ModelAppearance_Apply(), and CSQCPlayer_ModelAppearance_PostUpdate().
string forceplayermodels_isgoodmodel_mdl |
Definition at line 106 of file csqcmodel_hooks.qc.
Referenced by CSQCPlayer_ModelAppearance_PostUpdate().
string forceplayermodels_model |
Definition at line 90 of file csqcmodel_hooks.qc.
Referenced by CSQCPlayer_ModelAppearance_Apply().
int forceplayermodels_modelindex |
Definition at line 92 of file csqcmodel_hooks.qc.
Referenced by CSQCPlayer_ModelAppearance_Apply().
bool forceplayermodels_modelisgoodmodel |
Definition at line 91 of file csqcmodel_hooks.qc.
Referenced by CSQCPlayer_ModelAppearance_Apply().
bool forceplayermodels_myisgoodmodel |
Definition at line 96 of file csqcmodel_hooks.qc.
Referenced by CSQCPlayer_ModelAppearance_Apply().
string forceplayermodels_mymodel |
Definition at line 95 of file csqcmodel_hooks.qc.
Referenced by CSQCPlayer_ModelAppearance_Apply().
int forceplayermodels_mymodelindex |
Definition at line 97 of file csqcmodel_hooks.qc.
Referenced by CSQCPlayer_ModelAppearance_Apply().
int forceplayermodels_savecolormap |
Definition at line 104 of file csqcmodel_hooks.qc.
Referenced by CSQCPlayer_ModelAppearance_Apply(), CSQCPlayer_ModelAppearance_PostUpdate(), and CSQCPlayer_ModelAppearance_PreUpdate().
string forceplayermodels_savemodel |
Definition at line 101 of file csqcmodel_hooks.qc.
Referenced by CSQCPlayer_ModelAppearance_Apply(), CSQCPlayer_ModelAppearance_PostUpdate(), and CSQCPlayer_ModelAppearance_PreUpdate().
int forceplayermodels_savemodelindex |
Definition at line 102 of file csqcmodel_hooks.qc.
Referenced by CSQCPlayer_ModelAppearance_Apply(), CSQCPlayer_ModelAppearance_PostUpdate(), and CSQCPlayer_ModelAppearance_PreUpdate().
int forceplayermodels_saveskin |
Definition at line 103 of file csqcmodel_hooks.qc.
Referenced by CSQCPlayer_ModelAppearance_Apply(), CSQCPlayer_ModelAppearance_PostUpdate(), and CSQCPlayer_ModelAppearance_PreUpdate().
int forceplayermodels_skin |
Definition at line 93 of file csqcmodel_hooks.qc.
Referenced by CSQCPlayer_ModelAppearance_Apply().
vector glowmod |
Definition at line 112 of file csqcmodel_hooks.qc.
Referenced by _StartItem(), buff_Init(), buff_Think(), buffs_BuffModel_Think(), CL_ExteriorWeaponentity_Think(), CopyBody(), CSQCPlayer_ModelAppearance_Apply(), Item_SetAlpha(), ItemSend(), NET_HANDLE(), physical_item_think(), and weapon_defaultspawnfunc().
int lodmodelindex0 |
Definition at line 23 of file csqcmodel_hooks.qc.
Referenced by CSQCPlayer_LOD_Apply(), and SUB_CalcAngleMoveEnt().
int lodmodelindex1 |
Definition at line 24 of file csqcmodel_hooks.qc.
Referenced by CSQCPlayer_LOD_Apply(), and SUB_CalcAngleMoveEnt().
int lodmodelindex2 |
Definition at line 25 of file csqcmodel_hooks.qc.
Referenced by CSQCPlayer_LOD_Apply(), and SUB_CalcAngleMoveEnt().
int modelflags |
Definition at line 20 of file csqcmodel_hooks.qc.
Referenced by CSQCModel_Effects_PostUpdate(), CSQCModel_Effects_PreUpdate(), player_powerups(), and PlayerThink().
int snd_looping |
Definition at line 531 of file csqcmodel_hooks.qc.
Referenced by CSQCModel_Effects_Apply(), CSQCModel_Hook_PreDraw(), and Ent_Remove().
entity tag_entity |
Definition at line 433 of file csqcmodel_hooks.qc.
Referenced by CL_ExteriorWeaponentity_Think(), CSQCModel_AutoTagIndex_Apply(), and vehicles_reset_colors().
int tag_entity_lastmodelindex |
Definition at line 434 of file csqcmodel_hooks.qc.
Referenced by CSQCModel_AutoTagIndex_Apply().
int tag_index |
Definition at line 435 of file csqcmodel_hooks.qc.
Referenced by CL_ExteriorWeaponentity_Think(), and CSQCModel_AutoTagIndex_Apply().