|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include "breakable.qh"#include <server/damage.qh>#include <server/bot/api.qh>#include <common/csqcmodel_settings.qh>#include <lib/csqcmodel/sv_model.qh>#include <server/weapons/common.qh>Go to the source code of this file.
Functions | |
| void | func_breakable_behave_destroyed (entity this) |
| void | func_breakable_behave_restore (entity this) |
| void | func_breakable_colormod (entity this) |
| void | func_breakable_damage (entity this, entity inflictor, entity attacker, float damage, int deathtype,.entity weaponentity, vector hitloc, vector force) |
| void | func_breakable_destroy (entity this, entity actor, entity trigger) |
| void | func_breakable_destroy_self (entity this) |
| void | func_breakable_destroyed (entity this) |
| void | func_breakable_init_for_player (entity this, entity player) |
| void | func_breakable_look_destroyed (entity this) |
| void | func_breakable_look_restore (entity this) |
| void | func_breakable_reset (entity this) |
| void | func_breakable_restore (entity this, entity actor, entity trigger) |
| void | func_breakable_restore_self (entity this) |
| void | func_breakable_setup (entity this) |
| void | func_breakable_think (entity this) |
| void | LaunchDebris (entity this, string debrisname, vector force) |
| spawnfunc (func_breakable) | |
| spawnfunc (misc_breakablemodel) | |
Definition at line 133 of file breakable.qc.
References bot_attack, BREAKABLE_NODAMAGE, CH_TRIGGER_SINGLE, DAMAGE_NO, entity(), func_breakable_colormod(), func_null(), g_bot_targets, g_projectiles, IL_EACH, IL_REMOVE(), max_health, noise1, SetResourceExplicit(), spawnflags, state, STATE_BROKEN, stopsound(), takedamage, and use.
Referenced by func_breakable_destroyed(), and func_breakable_reset().
Definition at line 161 of file breakable.qc.
References _sound, ATTEN_NORM, bot_attack, BREAKABLE_NODAMAGE, CH_TRIGGER_SINGLE, DAMAGE_AIM, entity(), func_breakable_colormod(), func_breakable_damage(), func_breakable_destroy(), func_breakable_think(), g_bot_targets, GetResource(), IL_PUSH(), max_health, nextthink, noise1, SetResourceExplicit(), setthink, spawnflags, sprite, state, STATE_ALIVE, takedamage, time, use, VOL_BASE, WaypointSprite_UpdateHealth(), and WaypointSprite_UpdateMaxHealth().
Referenced by func_breakable_reset(), and func_breakable_restore().
Definition at line 81 of file breakable.qc.
References BREAKABLE_INDICATE_DAMAGE, colormod, entity(), GetResource(), max_health, and spawnflags.
Referenced by destructible_heal(), func_breakable_behave_destroyed(), func_breakable_behave_restore(), and func_breakable_damage().
| void func_breakable_damage | ( | entity | this, |
| entity | inflictor, | ||
| entity | attacker, | ||
| float | damage, | ||
| int | deathtype, | ||
| .entity | weaponentity, | ||
| vector | hitloc, | ||
| vector | force ) |
Definition at line 267 of file breakable.qc.
References CSQCMODEL_AUTOUPDATE, DAMAGE_NO, DEATH_ISSPECIAL, debrisforce, entity(), func_breakable_colormod(), func_breakable_destroy_self(), func_null(), GetResource(), HITTYPE_SPLASH, IS_CLIENT, nextthink, NOSPLASH, owner, pain_finished, realowner, setthink, spawnflags, sprite, state, STATE_BROKEN, takedamage, TakeResource(), team, time, vector, WaypointSprite_Ping(), and WaypointSprite_UpdateHealth().
Referenced by func_breakable_behave_restore().
Definition at line 225 of file breakable.qc.
References _sound, absmax, absmin, argv(), ATTEN_NORM, CH_TRIGGER, cnt, count, crandom, CSQCMODEL_AUTOUPDATE, debris, debrisforce, dmg, dmg_edge, dmg_force, DMG_NOWEP, dmg_radius, entity(), func_breakable_destroyed(), func_breakable_restore_self(), LaunchDebris(), message, nextthink, noise, NULL, owner, RadiusDamage(), respawntime, respawntimejitter, setthink, SUB_UseTargets(), time, tokenize_console, and VOL_BASE.
Referenced by func_breakable_behave_restore(), func_breakable_destroy_self(), and func_breakable_setup().
Definition at line 262 of file breakable.qc.
References entity(), func_breakable_destroy(), and NULL.
Referenced by func_breakable_damage().
Definition at line 197 of file breakable.qc.
References entity(), func_breakable_behave_destroyed(), and func_breakable_look_destroyed().
Referenced by func_breakable_destroy().
Definition at line 188 of file breakable.qc.
References ATTEN_NORM, CH_TRIGGER_SINGLE, entity(), IS_REAL_CLIENT, msg_entity, MSG_ONE, noise1, soundto(), state, STATE_ALIVE, and VOL_BASE.
Referenced by func_breakable_setup().
Definition at line 95 of file breakable.qc.
References absmax, absmin, ApplyMinMaxScaleAngles(), dropped_origin, EF_NODRAW, effects, entity(), mdl_dead, origin, solid, SOLID_BSP, and SOLID_NOT.
Referenced by func_breakable_destroyed().
Definition at line 121 of file breakable.qc.
References ApplyMinMaxScaleAngles(), dropped_origin, EF_NODRAW, effects, entity(), mdl, mdl_dead, solid, and SOLID_BSP.
Referenced by func_breakable_reset(), and func_breakable_restore().
Definition at line 307 of file breakable.qc.
References entity(), func_breakable_behave_destroyed(), func_breakable_behave_restore(), func_breakable_look_restore(), spawnflags, START_DISABLED, team, and team_saved.
Referenced by func_breakable_setup().
Definition at line 203 of file breakable.qc.
References entity(), func_breakable_behave_restore(), and func_breakable_look_restore().
Referenced by func_breakable_restore_self(), and func_breakable_setup().
Definition at line 209 of file breakable.qc.
References DPCONTENTS_BODY, dphitcontentsmask, entity(), func_breakable_restore(), maxs, mins, MOVE_NORMAL, nextthink, NULL, origin, time, trace_fraction, and trace_startsolid.
Referenced by func_breakable_destroy().
Definition at line 317 of file breakable.qc.
References argv(), bot_attack, BREAKABLE_NODAMAGE, cnt, count, CSQCMODEL_AUTOINIT, DAMAGE_NO, debris, debrisavelocityjitter, debrismovetype, debrissolid, debristime, debristimejitter, debrisvelocity, debrisvelocityjitter, dmg_force, dmg_radius, dropped_origin, entity(), func_breakable_destroy(), func_breakable_init_for_player(), func_breakable_reset(), func_breakable_restore(), func_null(), g_initforplayer, g_monster_targets, g_saved_team, GetResource(), IL_PUSH(), max_health, mdl, mdl_dead, message, message2, model, monster_attack, MOVETYPE_BOUNCE, noise, noise1, origin, precache_sound(), SetBrushEntityModel(), SetResourceExplicit(), SOLID_NOT, spawnflags, takedamage, team, team_saved, tokenize_console, and use.
Referenced by CheatCommand(), spawnfunc(), spawnfunc(), and spawnfunc().
Definition at line 154 of file breakable.qc.
References CSQCMODEL_AUTOUPDATE, entity(), nextthink, and time.
Referenced by func_breakable_behave_restore().
Definition at line 51 of file breakable.qc.
References absmax, absmin, angles, colormap, crandom, DAMAGE_YES, debris, debrisavelocityjitter, debrisdamageforcescale, debrisfadetime, debrismovetype, debrisskin, debrissolid, debristime, debristimejitter, debrisvelocity, debrisvelocityjitter, entity(), org, random(), set_movetype(), SOLID_BSP, SUB_SetFade(), time, and vector.
Referenced by func_breakable_destroy().
| spawnfunc | ( | func_breakable | ) |
| spawnfunc | ( | misc_breakablemodel | ) |
| string debris |
Definition at line 28 of file breakable.qc.
Referenced by func_breakable_destroy(), func_breakable_setup(), and LaunchDebris().
| vector debrisavelocityjitter |
Definition at line 20 of file breakable.qc.
Referenced by func_breakable_setup(), and LaunchDebris().
| float debrisdamageforcescale |
Definition at line 24 of file breakable.qc.
Referenced by LaunchDebris().
| float debrisfadetime |
Definition at line 23 of file breakable.qc.
Referenced by LaunchDebris().
| vector debrisforce |
Definition at line 224 of file breakable.qc.
Referenced by func_breakable_damage(), and func_breakable_destroy().
| float debrismovetype |
Definition at line 16 of file breakable.qc.
Referenced by func_breakable_setup(), and LaunchDebris().
| float debrisskin |
Definition at line 25 of file breakable.qc.
Referenced by LaunchDebris().
| float debrissolid |
Definition at line 17 of file breakable.qc.
Referenced by func_breakable_setup(), and LaunchDebris().
| float debristime |
Definition at line 21 of file breakable.qc.
Referenced by func_breakable_setup(), and LaunchDebris().
| float debristimejitter |
Definition at line 22 of file breakable.qc.
Referenced by func_breakable_setup(), and LaunchDebris().
| vector debrisvelocity |
Definition at line 18 of file breakable.qc.
Referenced by func_breakable_setup(), and LaunchDebris().
| vector debrisvelocityjitter |
Definition at line 19 of file breakable.qc.
Referenced by func_breakable_setup(), and LaunchDebris().
| float dmg |
Definition at line 12 of file breakable.qc.
Referenced by assault_objective_decrease_use(), buff_Inferno_CalculateTime(), buff_Vengeance_DelayedDamage(), CL_ExteriorWeaponentity_Think(), Damage_DamageInfo_SendEntity(), door_blocked(), door_generic_plat_blocked(), door_init_shared(), func_breakable_destroy(), generic_plat_blocked(), instagib_countdown(), misc_laser_think(), plat_crush(), plat_send(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), train_send(), trigger_hurt_touch(), W_Hook_Explode2(), and W_Hook_ExplodeThink().
| float dmg_edge |
Definition at line 13 of file breakable.qc.
Referenced by Damage_DamageInfo_SendEntity(), func_breakable_destroy(), W_Hook_Explode2(), and W_Hook_ExplodeThink().
| float dmg_force |
Definition at line 15 of file breakable.qc.
Referenced by func_breakable_destroy(), func_breakable_setup(), W_Hook_Explode2(), and W_Hook_ExplodeThink().
| float dmg_radius |
Definition at line 14 of file breakable.qc.
Referenced by Damage_DamageInfo_SendEntity(), func_breakable_destroy(), func_breakable_setup(), W_Hook_Explode2(), and W_Hook_ExplodeThink().
| string mdl_dead |
Definition at line 27 of file breakable.qc.
Referenced by func_breakable_look_destroyed(), func_breakable_look_restore(), func_breakable_setup(), Monster_Dead(), and Monster_Spawn().
| entity sprite |
Definition at line 10 of file breakable.qc.