|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#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 | GiveFrags (entity attacker, entity targ, float f, int deathtype,.entity weaponentity) |
| bool | Heal (entity targ, entity inflictor, float amount, float limit) |
| 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, bool murder, bool msg_from_ent, int deathtype, string s1, string s2, string s3, string s4, 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, vector forcexyzscale, int deathtype,.entity weaponentity, entity directhitentity) |
| STATIC_INIT (g_damagedbycontents) | |
| 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 104 of file damage.qh.
Referenced by buff_Vengeance_DelayedDamage(), bumblebee_blowup(), bumblebee_pilot_frame(), CheatImpulse(), ClientKill_Now(), CommonCommand_editmob(), CreatureFrame_FallDamage(), CreatureFrame_hotliquids(), ctf_CaptureShield_Touch(), door_blocked(), door_generic_plat_blocked(), DrownPlayer(), Fire_ApplyDamage(), func_breakable_destroy(), generic_plat_blocked(), havocbot_role_ctf_carrier(), instagib_countdown(), KillPlayerForTeamChange(), M_Golem_Attack_Lightning_Explode(), M_Golem_Attack_Smash(), M_Mage_Attack_Push(), M_Mage_Attack_Spike_Explode(), M_Spider_Attack_Web_Explode(), M_Wyvern_Attack_Fireball_Explode(), M_Zombie_Attack_Leap_Touch(), misc_laser_think(), Monster_Attack_Melee(), Monster_Move(), Monster_Think(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), nade_heal_touch(), nade_normal_boom(), nade_spawn_DestroyDamage(), nade_translocate_DestroyDamage(), ons_CaptureShield_Touch(), ons_ControlPoint_Icon_Think(), Onslaught_CheckWinner(), plat_crush(), player_regen(), PlayerTouchExplode(), racer_blowup(), raptor_blowup(), raptor_bomblet_boom(), spiderbot_blowup(), target_kill_use(), tdeath(), trigger_hurt_touch(), turret_flac_projectile_think_explode(), turret_projectile_explode(), vehicles_impact(), vehicles_projectile_explode(), vehicles_touch(), walker_melee_do_dmg(), and walker_rocket_explode().
Definition at line 83 of file damage.qc.
References cnt, entity(), ftos(), M_ARGV, m_weapon, 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 503 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_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(), DEATH_ISSPECIAL, DEATH_ISWEAPON, DEATH_WEAPONOF, DIFF_TEAM, entity(), FL_GODMODE, FORCETYPE_FORCEATPOS, FRAGS_SPECTATOR, game_stopped, GetResource(), healtharmor_applydamage(), HITTYPE_SOUND, HITTYPE_SPAM, impressive_hits, IS_CLIENT, IS_DEAD, IS_INDEPENDENT_PLAYER, IS_MONSTER, IS_PLAYER, IS_TURRET, IS_VEHICLE, IsFlying(), killcount, M_ARGV, MAX_WEAPONSLOTS, MOVETYPE_NOCLIP, MOVETYPE_PHYSICS, MUTATOR_CALLHOOK, normalize(), PHYS_INPUT_BUTTON_CHAT, RemoveHook(), RES_ARMOR, SAME_TEAM, SetResourceExplicit(), setthink, STAT, STATUSEFFECT_REMOVE_CLEAR, StatusEffects_active(), StatusEffects_remove(), SUB_Remove(), teamkill_complain, time, UNSET_ONGROUND, UpdateCSQCProjectile(), vector, vehicles_exit(), VHEF_RELEASE, vlen(), weaponentities, and yoda.
Referenced by buff_Vengeance_DelayedDamage(), bumblebee_pilot_frame(), ClientKill_Now(), CommonCommand_editmob(), CreatureFrame_FallDamage(), CreatureFrame_hotliquids(), ctf_CaptureShield_Touch(), Damage(), door_blocked(), door_generic_plat_blocked(), DrownPlayer(), Fire_ApplyDamage(), fireBullet_falloff(), generic_plat_blocked(), havocbot_role_ctf_carrier(), instagib_countdown(), KillPlayerForTeamChange(), M_Zombie_Attack_Leap_Touch(), misc_laser_think(), Monster_Attack_Melee(), Monster_Move(), Monster_Think(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), nade_heal_touch(), nade_spawn_DestroyDamage(), nade_translocate_DestroyDamage(), ons_CaptureShield_Touch(), Onslaught_CheckWinner(), plat_crush(), RadiusDamageForSource(), target_kill_use(), tdeath(), trigger_hurt_touch(), vehicles_impact(), vehicles_touch(), W_Arc_Beam_Think(), W_Fireball_Explode(), W_OverkillRocketPropelledChainsaw_Think(), W_Shotgun_Melee_Think(), and walker_melee_do_dmg().
| void Damage_DamageInfo | ( | vector | org, |
| float | coredamage, | ||
| float | edgedamage, | ||
| float | rad, | ||
| vector | force, | ||
| int | deathtype, | ||
| float | bloodtype, | ||
| entity | dmgowner ) |
Definition at line 27 of file damageeffects.qc.
References BIT, BITS, Damage_DamageInfo_SendEntity(), entity(), MSG_BROADCAST, Net_LinkEntity(), new_pure, org, sound_allowed(), teamplay, vector, and vlen().
Referenced by fireBullet_falloff(), FireRailgunBullet(), nade_normal_boom(), RadiusDamageForSource(), raptor_bomb_burst(), W_Seeker_Tag_Explode(), and W_Seeker_Tag_Touch().
Definition at line 7 of file damageeffects.qc.
References bound(), colormap, dmg, dmg_edge, dmg_radius, entity(), floor(), MSG_ENTITY, org, origin, projectiledeathtype, species, vec3, vector, velocity, WriteByte(), WriteHeader, and WriteShort().
Referenced by Damage_DamageInfo().
Definition at line 1002 of file damage.qc.
References accuracy_add(), accuracy_isgooddamage(), DEATH_WEAPONOF, entity(), IS_DEAD, IS_PLAYER, max(), min(), StatusEffects_active(), StatusEffects_apply(), StatusEffects_gettime(), and time.
Referenced by CreatureFrame_hotliquids(), MUTATOR_HOOKFUNCTION(), napalm_damage(), W_Fireball_Firemine_Touch(), and W_Fireball_LaserPlay().
Definition at line 1114 of file damage.qc.
Definition at line 43 of file damage.qc.
References autocvar_g_teamkill_punishing, entity(), game_stopped, GameRules_scoring_add, GameRules_scoring_add_team, M_ARGV, MUTATOR_CALLHOOK, PlayerStats_GameReport_Event_Player, and warmup_stage.
Referenced by MUTATOR_HOOKFUNCTION(), and Obituary().
Definition at line 987 of file damage.qc.
References CS(), entity(), FRAGS_SPECTATOR, game_stopped, IS_CLIENT, IS_DEAD, killcount, and STAT.
Referenced by bumblebee_pilot_frame(), M_Mage_Defend_Heal(), MUTATOR_HOOKFUNCTION(), trigger_heal_touch(), and W_Arc_Beam_Think().
Definition at line 836 of file player.qc.
References entity(), IS_ONGROUND, maxs, mins, MOVE_NORMAL, origin, trace_fraction, waterlevel, and WATERLEVEL_SWIMMING.
Referenced by Damage(), MUTATOR_HOOKABLE(), sys_phys_update(), W_Devastator_Explode(), W_Electro_Explode(), W_MineLayer_Explode(), W_Mortar_Grenade_Explode(), W_Mortar_Grenade_Explode2(), W_OverkillNex_Attack(), W_RocketMinsta_Laser_Explode(), W_Vaporizer_Attack(), and W_Vortex_Attack().
Definition at line 102 of file damage.qc.
References AppendItemcodes(), autocvar_sv_eventlog, Deathtype_Name(), entity(), ftos(), GameLogEcho(), and strcat().
Referenced by Obituary().
| void Obituary | ( | entity | attacker, |
| entity | inflictor, | ||
| entity | targ, | ||
| int | deathtype, | ||
| .entity | weaponentity ) |
Definition at line 228 of file damage.qc.
References APP_TEAM_NUM, autocvar_notification_server_allows_location, backtrace, buff_FirstFromFlags(), checkrules_firstblood, CS(), DEATH_ENT, DEATH_ISSPECIAL, deathmessage, Deathtype_Name(), entity(), 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, PLAYERSTATS_ACHIEVEMENT_BOTLIKE, PLAYERSTATS_ACHIEVEMENT_FIRSTBLOOD, PLAYERSTATS_ACHIEVEMENT_FIRSTVICTIM, PlayerStats_GameReport_Event_Player, RES_ARMOR, SAME_TEAM, Send_Notification(), strcat(), strstrofs, time, and warmup_stage.
Referenced by PlayerDamage().
| float Obituary_WeaponDeath | ( | entity | notif_target, |
| float | murder, | ||
| int | deathtype, | ||
| string | s1, | ||
| string | s2, | ||
| string | s3, | ||
| float | f1, | ||
| float | f2 ) |
Definition at line 169 of file damage.qc.
References DEATH_WEAPONOF, entity(), f1, f2, LOG_TRACEF, Weapon::netname, s1, s2, Send_Notification_WOCOVA(), w_deathtype, Weapon::wr_killmessage(), and Weapon::wr_suicidemessage().
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 981 of file damage.qc.
References entity(), and RadiusDamageForSource().
Referenced by bumblebee_blowup(), CheatImpulse(), func_breakable_destroy(), M_Golem_Attack_Lightning_Explode(), M_Golem_Attack_Smash(), M_Mage_Attack_Push(), M_Mage_Attack_Spike_Explode(), M_Spider_Attack_Web_Explode(), M_Wyvern_Attack_Fireball_Explode(), nade_normal_boom(), PlayerTouchExplode(), racer_blowup(), raptor_blowup(), raptor_bomblet_boom(), spiderbot_blowup(), turret_flac_projectile_think_explode(), turret_projectile_explode(), vehicles_projectile_explode(), W_Arc_Bolt_Explode(), W_Arc_Bolt_Touch(), W_Crylink_LinkExplode(), W_Crylink_LinkJoinEffect_Think(), W_Crylink_Touch(), W_Devastator_DoRemoteExplode(), W_Electro_Explode(), W_Electro_ExplodeCombo(), W_Electro_ExplodeComboThink(), W_Fireball_Explode(), W_Hagar_Explode(), W_Hagar_Explode2(), W_HLAC_Touch(), W_Hook_ExplodeThink(), W_MineLayer_DoRemoteExplode(), W_MineLayer_Explode(), W_Mortar_Grenade_Explode(), W_Mortar_Grenade_Explode2(), W_OverkillRocketPropelledChainsaw_Explode(), W_RocketMinsta_Explosion(), W_RocketMinsta_Laser_Damage(), W_Seeker_Flac_Explode(), W_Seeker_Missile_Explode(), W_Tuba_NoteOn(), and walker_rocket_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, | ||
| vector | forcexyzscale, | ||
| int | deathtype, | ||
| .entity | weaponentity, | ||
| entity | directhitentity ) |
Definition at line 741 of file damage.qc.
References accuracy_add(), accuracy_isgooddamage(), antilag_debug, ANTILAG_LATENCY, autocvar_g_player_damageplayercenter, 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, CS(), Damage(), Damage_DamageInfo(), DEATH_ISSPECIAL, DEATH_WEAPONOF, entity(), HITTYPE_SOUND, HITTYPE_SPAM, HITTYPE_SPLASH, IS_CLIENT, IS_PLAYER, LOG_INFOF, max(), MAX_DAMAGEEXTRARADIUS, min(), MIN_DAMAGEEXTRARADIUS, MOVE_NOMONSTERS, MOVE_NORMAL, movedir, NearestPointOnBoundingBox(), next, normalize(), RadiusDamage_running, random(), sqrt(), trace_endpos, trace_ent, trace_fraction, tracebox_antilag(), v_right, v_up, vector, vlen(), WarpZone_FindRadius(), WarpZone_TraceLine(), and WarpZone_UnTransformOrigin().
Referenced by RadiusDamage(), W_Blaster_Touch(), and W_Devastator_Explode().
| STATIC_INIT | ( | g_damagedbycontents | ) |
Definition at line 246 of file selection.qc.
References entity(), Weapon::m_id, and TC.
Referenced by GiveItems(), Item_GiveTo(), MUTATOR_HOOKFUNCTION(), TEST(), W_Hagar_Attack_Auto(), W_HLAC_Attack_Frame(), W_MachineGun_Attack_Auto(), W_MachineGun_Attack_Frame(), W_OverkillHeavyMachineGun_Attack_Auto(), W_OverkillMachineGun_Attack_Auto(), W_Shotgun_Attack3_Frame1(), W_Shotgun_Attack3_Frame2(), 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(), if(), MUTATOR_HOOKFUNCTION(), PlayerCorpseDamage(), PlayerDamage(), and WaypointSprite_AttachCarrier().
| 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 26 of file damage.qh.
Referenced by Damage(), MUTATOR_HOOKFUNCTION(), and turret_damage().
| float autocvar_g_friendlyfire_virtual |
| float autocvar_g_friendlyfire_virtual_force |
| 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 |
| int autocvar_g_player_damageplayercenter |
Definition at line 106 of file damage.qh.
Referenced by RadiusDamageForSource().
| float autocvar_g_teamdamage_resetspeed |
Definition at line 22 of file damage.qh.
Referenced by PlayerThink().
| float autocvar_g_teamdamage_threshold |
| bool autocvar_g_teamkill_punishing |
Definition at line 24 of file damage.qh.
Referenced by GiveFrags().
| 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().
| bool canteamdamage |
Definition at line 65 of file damage.qh.
Referenced by spawnfunc().
| float checkrules_firstblood |
Definition at line 43 of file damage.qh.
Referenced by Obituary().
| float damagedbycontents |
Definition at line 45 of file damage.qh.
Referenced by CopyBody(), ka_TouchEvent(), Monster_Spawn(), PlayerCorpseDamage(), PutObserverInServer(), PutPlayerInServer(), respawn(), vehicle_initialize(), vehicles_spawn(), and W_Electro_Attack_Orb().
| vector death_origin |
| string deathmessage |
Definition at line 73 of file damage.qh.
Referenced by Obituary().
| float dmg_team |
Definition at line 53 of file damage.qh.
Referenced by PlayerThink(), and PutPlayerInServer().
| IntrusiveList g_damagedbycontents |
Definition at line 135 of file damage.qh.
Referenced by CopyBody(), CreatureFrame_All(), ctf_Handle_Drop(), ctf_Handle_Pickup(), ctf_RespawnFlag(), Fire_ApplyDamage(), FireGrapplingHook(), ka_DropEvent(), ka_SpawnBalls(), ka_TouchEvent(), M_Golem_Attack_Lightning(), M_Spider_Attack_Web(), Monster_Spawn(), MUTATOR_HOOKFUNCTION(), PlayerCorpseDamage(), PutObserverInServer(), PutPlayerInServer(), STATIC_INIT(), toss_nade(), turret_hk_missile_think(), vehicle_initialize(), W_Arc_Attack_Bolt(), W_Devastator_Attack(), W_Electro_Attack_Orb(), W_Electro_Orb_Stick(), W_Hagar_Attack(), W_Hagar_Attack2(), W_Hagar_Attack2_Load_Release(), W_Hook_Attack2(), W_MineLayer_Attack(), W_MineLayer_Stick(), W_Mortar_Attack(), W_Mortar_Attack2(), W_OverkillRocketPropelledChainsaw_Attack(), and W_Seeker_Fire_Missile().
| int impressive_hits |
Definition at line 49 of file damage.qh.
Referenced by Damage(), W_OverkillNex_Attack(), W_Vaporizer_Attack(), and W_Vortex_Attack().
| float RadiusDamage_running |
Definition at line 111 of file damage.qh.
Referenced by RadiusDamageForSource().
| float spawnshieldtime |
Definition at line 61 of file damage.qh.
Referenced by Item_Touch(), nade_touch(), W_Devastator_RemoteExplode(), W_Electro_Orb_Stick(), W_MineLayer_RemoteExplode(), W_MineLayer_Stick(), and W_Tuba_NoteOff().
| float taunt_soundtime |
Definition at line 59 of file damage.qh.
Referenced by PlayerPreThink().
| float teamkill_complain |
Definition at line 54 of file damage.qh.
Referenced by Damage(), and W_Nexball_Touch().
| float teamkill_soundtime |
Definition at line 55 of file damage.qh.
Referenced by PlayerPreThink().
| float yoda |
Definition at line 48 of file damage.qh.
Referenced by Damage(), fireBullet_falloff(), MUTATOR_HOOKFUNCTION(), W_OverkillNex_Attack(), W_Vaporizer_Attack(), and W_Vortex_Attack().