Xonotic
|
#include <common/weapons/_all.qh>
Go to the source code of this file.
Macros | |
#define | DMG_NOWEP (weaponentities[0]) |
Functions | |
string | AppendItemcodes (string s, entity player) |
bool (entity targ, entity inflictor, float amount, float limit) event_heal | |
void | Damage (entity targ, entity inflictor, entity attacker, float damage, int deathtype,.entity weaponentity, vector hitloc, vector force) |
void | Damage_DamageInfo (vector org, float coredamage, float edgedamage, float rad, vector force, int deathtype, float bloodtype, entity dmgowner) |
bool | Damage_DamageInfo_SendEntity (entity this, entity to, int sf) |
float | Fire_AddDamage (entity e, entity o, float d, float t, float dt) |
void | Fire_ApplyDamage (entity e) |
void | Freeze (entity targ, float revivespeed, int frozen_type, bool show_waypoint) |
void | GiveFrags (entity attacker, entity targ, float f, int deathtype,.entity weaponentity) |
bool | Heal (entity targ, entity inflictor, float amount, float limit) |
void | Ice_Think (entity this) |
float | IsFlying (entity a) |
void | LogDeath (string mode, int deathtype, entity killer, entity killed) |
void | Obituary (entity attacker, entity inflictor, entity targ, int deathtype,.entity weaponentity) |
void | Obituary_SpecialDeath (entity notif_target, float murder, int deathtype, string s1, string s2, string s3, float f1, float f2, float f3) |
float | Obituary_WeaponDeath (entity notif_target, float murder, int deathtype, string s1, string s2, string s3, float f1, float f2) |
float | RadiusDamage (entity inflictor, entity attacker, float coredamage, float edgedamage, float rad, entity cantbe, entity mustbe, float forceintensity, int deathtype,.entity weaponentity, entity directhitentity) |
float | RadiusDamageForSource (entity inflictor, vector inflictororigin, vector inflictorvelocity, entity attacker, float coredamage, float edgedamage, float rad, entity cantbe, entity mustbe, float inflictorselfdamage, float forceintensity, float forcezscale, int deathtype,.entity weaponentity, entity directhitentity) |
STATIC_INIT (g_damagedbycontents) | |
void | Unfreeze (entity targ, bool reset_health) |
void | UpdateFrags (entity player, int f) |
void (entity this, entity inflictor, entity attacker, float damage, int deathtype,.entity weaponentity, vector hitloc, vector force) event_damage | |
void | W_SwitchWeapon_Force (Player this, Weapon w,.entity weaponentity) |
#define DMG_NOWEP (weaponentities[0]) |
Definition at line 126 of file damage.qh.
Referenced by buff_Vengeance_DelayedDamage(), CheatImpulse(), checkpoint_passed(), ClientKill_Now(), CommonCommand_editmob(), CreatureFrame_FallDamage(), CreatureFrame_hotliquids(), ctf_CaptureShield_Touch(), door_blocked(), door_generic_plat_blocked(), DrownPlayer(), Fire_ApplyDamage(), generic_plat_blocked(), havocbot_role_ctf_carrier(), instagib_countdown(), KillPlayerForTeamChange(), Monster_Attack_Melee(), Monster_Frozen_Think(), Monster_Move(), Monster_Think(), MUTATOR_HOOKFUNCTION(), ons_CaptureShield_Touch(), ons_ControlPoint_Icon_Think(), Onslaught_CheckWinner(), plat_crush(), player_regen(), PlayerPreThink(), PlayerTouchExplode(), vehicles_impact(), vehicles_projectile_explode(), and vehicles_touch().
Definition at line 87 of file damage.qc.
References cnt, ftos(), M_ARGV, MAX_WEAPONSLOTS, MUTATOR_CALLHOOK, PHYS_INPUT_BUTTON_CHAT, strcat(), and weaponentities.
Referenced by LogDeath().
void Damage | ( | entity | targ, |
entity | inflictor, | ||
entity | attacker, | ||
float | damage, | ||
int | deathtype, | ||
.entity | weaponentity, | ||
vector | hitloc, | ||
vector | force | ||
) |
Definition at line 583 of file damage.qc.
References ACTIVE_ACTIVE, autocvar_g_balance_armor_blockpercent, autocvar_g_balance_damagepush_speedfactor, autocvar_g_balance_selfdamagepercent, autocvar_g_friendlyfire, autocvar_g_friendlyfire_virtual, autocvar_g_friendlyfire_virtual_force, autocvar_g_frozen_damage_trigger, autocvar_g_frozen_force, autocvar_g_frozen_revive_falldamage, autocvar_g_frozen_revive_falldamage_health, autocvar_g_mirrordamage, autocvar_g_mirrordamage_onlyweapons, autocvar_g_mirrordamage_virtual, autocvar_g_teamdamage_threshold, autocvar_g_weapondamagefactor, autocvar_g_weaponforcefactor, autocvar_teamplay_mode, CS(), Damage(), DAMAGE_AIM, damage_explosion_calcpush(), DEAD_NO, DEATH_ISSPECIAL, DEATH_ISWEAPON, DEATH_WEAPONOF, DIFF_TEAM, EF_TELEPORT_BIT, entity(), FL_GODMODE, FORCETYPE_FORCEATPOS, FRAGS_SPECTATOR, GetResource(), HITTYPE_SOUND, hook, impressive_hits, IS_CLIENT, IS_DEAD, IS_INDEPENDENT_PLAYER, IS_MONSTER, IS_PLAYER, IS_TURRET, IS_VEHICLE, IsFlying(), ITEM_DAMAGE_NEEDKILL, killcount, M_ARGV, MAX_WEAPONSLOTS, MOVETYPE_NOCLIP, MOVETYPE_PHYSICS, MUTATOR_CALLHOOK, normalize(), NULL, PHYS_INPUT_BUTTON_CHAT, RemoveHook(), RES_HEALTH, SAME_TEAM, SelectSpawnPoint(), setorigin(), SetResource(), SetResourceExplicit(), setthink, STATUSEFFECT_REMOVE_CLEAR, teamkill_complain, time, Unfreeze(), UNSET_ONGROUND, UpdateCSQCProjectile(), v, vector(), vehicles_exit(), vlen(), weaponentities, and yoda.
Referenced by buff_Vengeance_DelayedDamage(), checkpoint_passed(), ClientKill_Now(), CommonCommand_editmob(), CreatureFrame_FallDamage(), CreatureFrame_hotliquids(), ctf_CaptureShield_Touch(), Damage(), door_blocked(), door_generic_plat_blocked(), DrownPlayer(), Fire_ApplyDamage(), fireBullet_antilag(), generic_plat_blocked(), havocbot_role_ctf_carrier(), instagib_countdown(), KillPlayerForTeamChange(), Monster_Attack_Melee(), Monster_Move(), Monster_Think(), MUTATOR_HOOKFUNCTION(), ons_CaptureShield_Touch(), Onslaught_CheckWinner(), plat_crush(), RadiusDamageForSource(), vehicles_impact(), and vehicles_touch().
void Damage_DamageInfo | ( | vector | org, |
float | coredamage, | ||
float | edgedamage, | ||
float | rad, | ||
vector | force, | ||
int | deathtype, | ||
float | bloodtype, | ||
entity | dmgowner | ||
) |
Referenced by fireBullet_antilag(), FireRailgunBullet(), and RadiusDamageForSource().
Definition at line 1077 of file damage.qc.
References accuracy_add(), accuracy_isgooddamage(), DEATH_WEAPONOF, IS_DEAD, IS_PLAYER, max(), min(), and time.
Referenced by CreatureFrame_hotliquids(), and MUTATOR_HOOKFUNCTION().
Definition at line 1187 of file damage.qc.
References Damage(), DMG_NOWEP, entity(), frametime, g_damagedbycontents, IL_EACH, IS_INDEPENDENT_PLAYER, IS_NOT_A_CLIENT, min(), and time.
Definition at line 494 of file damage.qc.
References entity(), floor(), FOREACH_CLIENT, Freeze(), FROZEN_TEMP_DYING, g_bot_targets, Ice_Think(), IL_REMOVE(), IS_MONSTER, IS_PLAYER, MAX_WEAPONSLOTS, MUTATOR_CALLHOOK, NULL, random(), RemoveGrapplingHooks(), RemoveHook(), RES_HEALTH, setmodel, SetResource(), setthink, start_health, Team_ColorRGB(), time, and weaponentities.
Referenced by Freeze(), and freezetag_Freeze().
Definition at line 49 of file damage.qc.
References GameRules_scoring_add, M_ARGV, MUTATOR_CALLHOOK, UpdateFrags(), and warmup_stage.
Referenced by Obituary().
Definition at line 1063 of file damage.qc.
References CS(), FRAGS_SPECTATOR, IS_CLIENT, IS_DEAD, and killcount.
Definition at line 804 of file player.qc.
References CS(), CSQC_ClientMovement_PlayerMove_Frame(), csqcmodel_modelflags, entity(), frametime, intermission, IS_DEAD, IS_ONGROUND, IS_REAL_CLIENT, ITEMS_STAT, maxs, MF_ROCKET, mins, MOVE_NORMAL, origin, PM_UpdateButtons(), sys_phys_update(), trace_fraction, waterlevel, and WATERLEVEL_SWIMMING.
Referenced by Damage(), and sys_phys_update().
Definition at line 106 of file damage.qc.
References AppendItemcodes(), autocvar_sv_eventlog, Deathtype_Name(), ftos(), GameLogEcho(), and strcat().
Referenced by Obituary().
void Obituary | ( | entity | attacker, |
entity | inflictor, | ||
entity | targ, | ||
int | deathtype, | ||
.entity | weaponentity | ||
) |
Definition at line 229 of file damage.qc.
References APP_TEAM_NUM, backtrace, buff_FirstFromFlags(), checkrules_firstblood, CS(), DEATH_ENT, DEATH_ISSPECIAL, deathmessage, Deathtype_Name(), frag_centermessage_override(), GameRules_scoring_add, GetResource(), GiveFrags(), IS_BOT_CLIENT, IS_PLAYER, KILL_SPREE_LIST, killcount, LogDeath(), M_ARGV, MUTATOR_CALLHOOK, NearestLocation(), NULL, Obituary_SpecialDeath(), Obituary_WeaponDeath(), ping, RES_HEALTH, SAME_TEAM, strcat(), strstrofs, time, and warmup_stage.
Referenced by PlayerDamage().
void Obituary_SpecialDeath | ( | entity | notif_target, |
float | murder, | ||
int | deathtype, | ||
string | s1, | ||
string | s2, | ||
string | s3, | ||
float | f1, | ||
float | f2, | ||
float | f3 | ||
) |
Definition at line 125 of file damage.qc.
References backtrace, DEATH_ISSPECIAL, DT_FIRST, entity(), g_cts, and REGISTRY_GET.
Referenced by Obituary().
float Obituary_WeaponDeath | ( | entity | notif_target, |
float | murder, | ||
int | deathtype, | ||
string | s1, | ||
string | s2, | ||
string | s3, | ||
float | f1, | ||
float | f2 | ||
) |
Definition at line 170 of file damage.qc.
References DEATH_WEAPONOF, LOG_TRACEF, Weapon::netname, and w_deathtype.
Referenced by Obituary().
float RadiusDamage | ( | entity | inflictor, |
entity | attacker, | ||
float | coredamage, | ||
float | edgedamage, | ||
float | rad, | ||
entity | cantbe, | ||
entity | mustbe, | ||
float | forceintensity, | ||
int | deathtype, | ||
.entity | weaponentity, | ||
entity | directhitentity | ||
) |
Definition at line 1057 of file damage.qc.
References RadiusDamageForSource().
Referenced by CheatImpulse(), PlayerTouchExplode(), and vehicles_projectile_explode().
float RadiusDamageForSource | ( | entity | inflictor, |
vector | inflictororigin, | ||
vector | inflictorvelocity, | ||
entity | attacker, | ||
float | coredamage, | ||
float | edgedamage, | ||
float | rad, | ||
entity | cantbe, | ||
entity | mustbe, | ||
float | inflictorselfdamage, | ||
float | forceintensity, | ||
float | forcezscale, | ||
int | deathtype, | ||
.entity | weaponentity, | ||
entity | directhitentity | ||
) |
Definition at line 866 of file damage.qc.
References accuracy_add(), accuracy_isgooddamage(), autocvar_g_throughfloor_damage, autocvar_g_throughfloor_damage_max_stddev, autocvar_g_throughfloor_debug, autocvar_g_throughfloor_force, autocvar_g_throughfloor_force_max_stddev, autocvar_g_throughfloor_max_steps_other, autocvar_g_throughfloor_max_steps_player, autocvar_g_throughfloor_min_steps_other, autocvar_g_throughfloor_min_steps_player, backtrace, bound(), ceil(), CENTER_OR_VIEWOFS, Damage(), Damage_DamageInfo(), DEATH_ISSPECIAL, DEATH_WEAPONOF, entity(), HITTYPE_BOUNCE, HITTYPE_SECONDARY, HITTYPE_SOUND, HITTYPE_SPLASH, IS_PLAYER, LOG_INFOF, max(), MAX_DAMAGEEXTRARADIUS, min(), MIN_DAMAGEEXTRARADIUS, MOVE_NOMONSTERS, next, normalize(), RadiusDamage_running, random(), sqrt(), trace_ent, trace_fraction, vector(), vlen(), WarpZone_FindRadius(), WarpZone_TraceLine(), WarpZone_TransformOrigin(), and WarpZone_UnTransformOrigin().
Referenced by RadiusDamage().
STATIC_INIT | ( | g_damagedbycontents | ) |
Definition at line 546 of file damage.qc.
References autocvar_g_balance_pause_health_regen, FOREACH_CLIENT, FROZEN_TEMP_DYING, g_bot_targets, IL_PUSH(), IS_PLAYER, MAX_WEAPONSLOTS, MUTATOR_CALLHOOK, NULL, RemoveHook(), RES_HEALTH, SetResource(), start_health, time, Unfreeze(), and weaponentities.
Referenced by ClientDisconnect(), Damage(), ft_RemovePlayer(), Monster_Dead(), Monster_Frozen_Think(), Monster_Reset(), MUTATOR_HOOKFUNCTION(), PlayerDamage(), PlayerPreThink(), PutObserverInServer(), PutPlayerInServer(), reset_map(), and Unfreeze().
Definition at line 44 of file damage.qc.
References GameRules_scoring_add_team.
Referenced by GiveFrags(), and kh_Scores_Event().
void | ( | entity | this, |
entity | inflictor, | ||
entity | attacker, | ||
float | damage, | ||
int | deathtype, | ||
.entity | weaponentity, | ||
vector | hitloc, | ||
vector | force | ||
) |
Definition at line 243 of file selection.qc.
Referenced by GiveItems(), Item_GiveTo(), MUTATOR_HOOKFUNCTION(), TEST(), W_ThrowWeapon(), and W_WeaponFrame().
float autocvar_g_balance_armor_blockpercent |
Definition at line 21 of file damage.qh.
Referenced by ClientInit_CheckUpdate(), ctf_FlagcarrierWaypoints(), Damage(), MUTATOR_HOOKFUNCTION(), PlayerCorpseDamage(), PlayerDamage(), and PlayerPostThink().
float autocvar_g_balance_damagepush_speedfactor |
Definition at line 18 of file damage.qh.
Referenced by ClientInit_CheckUpdate(), Damage(), and MUTATOR_HOOKFUNCTION().
float autocvar_g_balance_selfdamagepercent |
float autocvar_g_friendlyfire |
Definition at line 25 of file damage.qh.
Referenced by Damage(), and MUTATOR_HOOKFUNCTION().
float autocvar_g_friendlyfire_virtual |
float autocvar_g_friendlyfire_virtual_force |
bool autocvar_g_frozen_damage_trigger |
float autocvar_g_frozen_revive_falldamage |
int autocvar_g_frozen_revive_falldamage_health |
float autocvar_g_maxpushtime |
Definition at line 17 of file damage.qh.
Referenced by GrapplingHook_Damage(), GrapplingHookThink(), MUTATOR_HOOKFUNCTION(), PlayerDamage(), Portal_TeleportPlayer(), and TeleportPlayer().
bool autocvar_g_mirrordamage_onlyweapons |
bool autocvar_g_mirrordamage_virtual |
float autocvar_g_teamdamage_resetspeed |
Definition at line 22 of file damage.qh.
Referenced by PlayerThink().
float autocvar_g_teamdamage_threshold |
float autocvar_g_throughfloor_damage |
Definition at line 6 of file damage.qh.
Referenced by RadiusDamageForSource().
float autocvar_g_throughfloor_damage_max_stddev |
Definition at line 8 of file damage.qh.
Referenced by RadiusDamageForSource().
bool autocvar_g_throughfloor_debug |
Definition at line 5 of file damage.qh.
Referenced by RadiusDamageForSource().
float autocvar_g_throughfloor_force |
Definition at line 7 of file damage.qh.
Referenced by RadiusDamageForSource().
float autocvar_g_throughfloor_force_max_stddev |
Definition at line 9 of file damage.qh.
Referenced by RadiusDamageForSource().
float autocvar_g_throughfloor_max_steps_other |
Definition at line 13 of file damage.qh.
Referenced by RadiusDamageForSource().
float autocvar_g_throughfloor_max_steps_player |
Definition at line 11 of file damage.qh.
Referenced by RadiusDamageForSource().
float autocvar_g_throughfloor_min_steps_other |
Definition at line 12 of file damage.qh.
Referenced by RadiusDamageForSource().
float autocvar_g_throughfloor_min_steps_player |
Definition at line 10 of file damage.qh.
Referenced by RadiusDamageForSource().
float checkrules_firstblood |
Definition at line 46 of file damage.qh.
Referenced by Obituary().
float damagedbycontents |
Definition at line 48 of file damage.qh.
Referenced by CopyBody(), ka_TouchEvent(), Monster_Spawn(), PlayerCorpseDamage(), PutObserverInServer(), PutPlayerInServer(), respawn(), vehicle_initialize(), and vehicles_spawn().
float damageforcescale |
Definition at line 137 of file damage.qh.
Referenced by CopyBody(), Monster_Damage(), Monster_Spawn_Setup(), PutObserverInServer(), PutPlayerInServer(), and vehicles_damage().
vector death_origin |
Definition at line 70 of file damage.qh.
Referenced by formatmessage(), and IMPULSE().
string deathmessage |
Definition at line 76 of file damage.qh.
Referenced by Obituary().
float dmg_edge |
Definition at line 38 of file damage.qh.
Referenced by STATIC_INIT().
float dmg_force |
Definition at line 39 of file damage.qh.
Referenced by STATIC_INIT().
float dmg_radius |
Definition at line 40 of file damage.qh.
Referenced by STATIC_INIT().
float dmg_team |
Definition at line 56 of file damage.qh.
Referenced by PlayerThink(), and PutPlayerInServer().
float freeze_time |
Definition at line 115 of file damage.qh.
Referenced by PlayerDamage().
entity frozen_by |
Definition at line 117 of file damage.qh.
Referenced by Monster_Frozen_Think(), and PlayerPreThink().
const int FROZEN_NORMAL = 1 |
Definition at line 109 of file damage.qh.
Referenced by freezetag_count_alive_players(), freezetag_Freeze(), freezetag_isEliminated(), freezetag_LastPlayerForTeam(), ft_RemovePlayer(), havocbot_goalrating_ft_freeplayers(), havocbot_role_ft_offense(), and MUTATOR_HOOKFUNCTION().
const int FROZEN_TEMP_DYING = 3 |
Definition at line 111 of file damage.qh.
Referenced by Freeze(), Monster_Frozen_Think(), PlayerPreThink(), and Unfreeze().
const int FROZEN_TEMP_REVIVING = 2 |
Definition at line 110 of file damage.qh.
Referenced by Monster_Frozen_Think(), and PlayerPreThink().
IntrusiveList g_damagedbycontents |
Definition at line 155 of file damage.qh.
Referenced by CopyBody(), CreatureFrame_All(), ctf_FlagSetup(), Fire_ApplyDamage(), FireGrapplingHook(), ka_DropEvent(), ka_SpawnBall(), ka_TouchEvent(), Monster_Spawn(), MUTATOR_HOOKFUNCTION(), PlayerCorpseDamage(), PutObserverInServer(), PutPlayerInServer(), and vehicle_initialize().
entity iceblock |
Definition at line 116 of file damage.qh.
Referenced by Monster_Frozen_Think(), Monster_Remove(), and PlayerPreThink().
const float MAX_DAMAGEEXTRARADIUS = 16 |
Definition at line 139 of file damage.qh.
Referenced by RadiusDamageForSource().
const float MIN_DAMAGEEXTRARADIUS = 2 |
Definition at line 138 of file damage.qh.
Referenced by RadiusDamageForSource().
float RadiusDamage_running |
Definition at line 131 of file damage.qh.
Referenced by RadiusDamageForSource().
float revival_time |
Definition at line 113 of file damage.qh.
Referenced by PutObserverInServer(), and PutPlayerInServer().
float revive_speed |
Definition at line 114 of file damage.qh.
Referenced by Monster_Frozen_Think(), and PlayerPreThink().
float spawnshieldtime |
Definition at line 64 of file damage.qh.
Referenced by Item_Touch().
float taunt_soundtime |
Definition at line 62 of file damage.qh.
Referenced by PlayerPreThink().
float teamkill_complain |
Definition at line 57 of file damage.qh.
Referenced by Damage(), and W_Nexball_Touch().
float teamkill_soundtime |
Definition at line 58 of file damage.qh.
Referenced by PlayerPreThink().
float w_deathtype |
Definition at line 97 of file damage.qh.
Referenced by Obituary_WeaponDeath().
float yoda |
Definition at line 51 of file damage.qh.
Referenced by Damage(), fireBullet_antilag(), and MUTATOR_HOOKFUNCTION().