Xonotic
|
#include "sv_vehicles.qh"
#include <common/items/_mod.qh>
#include <common/mapobjects/defs.qh>
#include <common/mapobjects/teleporters.qh>
#include <common/mapobjects/triggers.qh>
#include <common/vehicles/vehicles.qh>
#include <server/bot/api.qh>
#include <server/client.qh>
#include <server/damage.qh>
#include <server/items/items.qh>
#include <server/weapons/common.qh>
#include <server/world.qh>
Go to the source code of this file.
Variables | |
vector | axh_prevcolors |
vector | axh_prevorigin |
int | old_vehicle_flags |
Definition at line 37 of file sv_vehicles.qc.
References cnt, entity(), and owner.
Referenced by UpdateAuxiliaryXhair().
Definition at line 80 of file sv_vehicles.qc.
References entity(), IS_REAL_CLIENT, MAX_AXH, msg_entity, MSG_ONE, NULL, and WriteByte().
Referenced by vehicles_enter(), and vehicles_exit().
Definition at line 15 of file sv_vehicles.qc.
References cnt, origin, rint(), and WriteByte().
Referenced by UpdateAuxiliaryXhair().
Definition at line 589 of file sv_vehicles.qc.
References alpha, EF_NODRAW, effects, nextthink, and time.
Referenced by vehicles_damage().
Definition at line 47 of file sv_vehicles.qc.
References AuxiliaryXhair_customize(), bound(), entity(), IS_REAL_CLIENT, MAX_AXH, NULL, SendAuxiliaryXhair(), and setorigin().
bool vehicle_addplayerslot | ( | entity | _owner, |
entity | _slot, | ||
int | _hud, | ||
Model | _hud_model, | ||
bool(entity, float) | _framefunc, | ||
void(entity, bool) | _exitfunc, | ||
float(entity, entity) | _enterfunc | ||
) |
Definition at line 330 of file sv_vehicles.qc.
References EF_ADDITIVE, EF_DOUBLESIDED, EF_FULLBRIGHT, EF_LOWPRECISION, EF_NODEPTHTEST, EF_NOGUNBOB, EF_NOSHADOW, EF_SELECTABLE, EF_TELEPORT_BIT, setmodel, VHF_MULTISLOT, and VHF_PLAYERSLOT.
vector vehicle_aimturret | ( | entity | _vehic, |
vector | _target, | ||
entity | _turrret, | ||
string | _tagname, | ||
float | _pichlimit_min, | ||
float | _pichlimit_max, | ||
float | _rotlimit_min, | ||
float | _rotlimit_max, | ||
float | _aimspeed, | ||
float | dt | ||
) |
Definition at line 359 of file sv_vehicles.qc.
References AnglesTransform_FromAngles(), AnglesTransform_LeftDivide(), AnglesTransform_Normalize(), AnglesTransform_ToAngles(), bound(), gettagindex, gettaginfo, normalize(), vectoangles(), and vector().
Definition at line 921 of file sv_vehicles.qc.
References bool, entity(), IS_DEAD, stuffcmd, v, and vehicle.
Referenced by ImpulseCommands().
Definition at line 1174 of file sv_vehicles.qc.
References active, ACTIVE_ACTIVE, ACTIVE_NOT, angles, autocvar_g_fullbrightplayers, autocvar_g_nodepthtestplayers, autocvar_g_playerclip_collisions, bot_attack, DAMAGE_NO, damagedbycontents, DPCONTENTS_BODY, DPCONTENTS_PLAYERCLIP, DPCONTENTS_SOLID, dphitcontentsmask, EF_FULLBRIGHT, EF_NODEPTHTEST, EF_NODRAW, effects, find(), func_null(), g_bot_targets, g_damagedbycontents, Vehicle::head_model, Vehicle::hud_model, IL_PUSH(), iscreature, LOG_DEBUG, Vehicle::m_maxs, Vehicle::m_mins, Vehicle::model, MOVE_WORLDONLY, MUTATOR_CALLHOOK, nextthink, NULL, origin, pos1, pos2, random(), respawntime, setmodel, setorigin(), setthink, takedamage, target, targetname, team, teamplay, teleportable, time, trace_endpos, tur_head, use, vehicle_use(), vehicledef, Vehicle::vehicleid, vehicles_touch(), and VHF_ISVEHICLE.
Referenced by TEST().
entity vehicle_tossgib | ( | entity | this, |
entity | _template, | ||
vector | _vel, | ||
string | _tag, | ||
bool | _burn, | ||
bool | _explode, | ||
float | _maxtime, | ||
vector | _rot | ||
) |
Definition at line 298 of file sv_vehicles.qc.
References EF_FLAME, EF_LOWPRECISION, entity(), gettagindex, gettaginfo, MOVETYPE_TOSS, random(), set_movetype(), setorigin(), setthink, SOLID_CORPSE, time, vector(), vehicles_gib_explode(), vehicles_gib_think(), and vehicles_gib_touch().
Definition at line 530 of file sv_vehicles.qc.
References active, ACTIVE_ACTIVE, ACTIVE_NOT, EF_NODRAW, effects, IS_DEAD, LOG_DEBUG, netname, nextthink, setthink, time, tur_head, vehicles_reset_colors(), and vehicles_setreturn().
Referenced by vehicle_initialize().
Definition at line 430 of file sv_vehicles.qc.
References entity(), IL_EACH, and vehicles_spawn().
Referenced by vehicles_enter(), vehicles_reset(), and vehicles_setreturn().
Definition at line 735 of file sv_vehicles.qc.
References IS_MONSTER, IS_PLAYER, and time.
Referenced by vehicles_touch().
void vehicles_damage | ( | entity | this, |
entity | inflictor, | ||
entity | attacker, | ||
float | damage, | ||
int | deathtype, | ||
.entity | weaponentity, | ||
vector | hitloc, | ||
vector | force | ||
) |
Definition at line 633 of file sv_vehicles.qc.
References angles, antilag_clear(), ATTEN_NORM, CH_PAIN, damageforcescale, DEATH_ISWEAPON, DEATH_WEAPONOF, EF_LOWPRECISION, EF_NODRAW, enemy, fabs(), GetResource(), maxs, mins, MSG_BROADCAST, normalize(), NULL, origin, owner, pain_finished, RES_HEALTH, setmodel, setorigin(), setthink, shieldhit_think(), TakeResource(), time, vectoangles(), vehicledef, vehicles_exit(), vehicles_setreturn(), velocity, VHF_DEATHEJECT, VHF_HASSHIELD, vlen(), and VOL_BASE.
Referenced by vehicles_enter(), and vehicles_spawn().
Definition at line 939 of file sv_vehicles.qc.
References antilag_clear(), CS(), CSQCModel_UnlinkEntity(), CSQCVehicleSetup(), DAMAGE_NO, DIFF_TEAM, entity(), FL_NOTARGET, FOREACH_CLIENT, func_null(), IS_BOT_CLIENT, IS_DEAD, IS_PLAYER, IS_REAL_CLIENT, MAX_WEAPONSLOTS, MOVETYPE_NOCLIP, msg_entity, MSG_ONE, MUTATOR_CALLHOOK, NULL, RemoveGrapplingHooks(), SAME_TEAM, set_movetype(), SOLID_NOT, Team_ColorRGB(), teamplay, time, UNSET_DUCKED, UNSET_ONGROUND, vehicles_clearreturn(), vehicles_damage(), vehicles_heal(), vehicles_reset_colors(), VHF_MULTISLOT, VHF_SHIELDREGEN, weaponentities, WriteAngle(), WriteByte(), and WriteEntity().
Referenced by PlayerUseKey(), and vehicles_touch().
Definition at line 788 of file sv_vehicles.qc.
References ATTEN_NORM, CH_TRIGGER_SINGLE, CSQCVehicleSetup(), DAMAGE_AIM, default_player_alpha, EF_NODRAW, entity(), FL_NOTARGET, func_null(), IS_DEAD, IS_REAL_CLIENT, LOG_TRACE, MAX_WEAPONSLOTS, MOVETYPE_WALK, msg_entity, MSG_ONE, MUTATOR_CALLHOOK, NULL, PlayerDamage(), set_movetype(), SOLID_SLIDEBOX, sound, teamplay, TELEPORT_NORMAL, time, vehicles_reset_colors(), vehicles_setreturn(), VHF_PLAYERSLOT, VHF_SHIELDREGEN, weaponentities, WriteAngle(), WriteByte(), and WriteEntity().
Referenced by ClientDisconnect(), ClientKill_Now(), Damage(), player_regen(), PlayerPreThink(), PlayerUseKey(), PutObserverInServer(), PutPlayerInServer(), vehicles_damage(), and vehicles_reset().
Definition at line 764 of file sv_vehicles.qc.
References absmax, absmin, maxs, mins, MOVE_NORMAL, normalize(), origin, randomvec(), trace_allsolid, trace_fraction, trace_startsolid, v, vector(), and vlen().
Definition at line 628 of file sv_vehicles.qc.
References vehicles_painframe().
Definition at line 276 of file sv_vehicles.qc.
References ATTEN_NORM, CH_SHOTS, origin, randomvec(), sound, VOL_BASE, and wp00.
Referenced by vehicle_tossgib(), and vehicles_gib_touch().
Definition at line 289 of file sv_vehicles.qc.
References alpha, cnt, nextthink, and time.
Referenced by vehicle_tossgib().
Definition at line 284 of file sv_vehicles.qc.
References vehicles_gib_explode().
Referenced by vehicle_tossgib().
Definition at line 723 of file sv_vehicles.qc.
References GetResource(), GiveResourceWithLimit(), RES_HEALTH, and RES_LIMIT_NONE.
Referenced by vehicles_enter(), and vehicles_spawn().
Definition at line 746 of file sv_vehicles.qc.
References Damage(), DMG_NOWEP, min(), NULL, oldvelocity, Q3SURFACEFLAG_NOIMPACT, time, trace_dphitq3surfaceflags, vdist, velocity, and vlen().
Definition at line 604 of file sv_vehicles.qc.
References angles, GetResource(), max(), max_health, myhealth, origin, owner, random(), randomvec(), RES_HEALTH, time, tur_head, velocity, VHF_DMGHEADROLL, VHF_DMGROLL, and VHF_DMGSHAKE.
Referenced by vehicles_frame(), and vehicles_think().
entity vehicles_projectile | ( | entity | this, |
entity | _mzlfx, | ||
Sound | _mzlsound, | ||
vector | _org, | ||
vector | _vel, | ||
float | _dmg, | ||
float | _radi, | ||
float | _force, | ||
float | _size, | ||
int | _deahtype, | ||
float | _projtype, | ||
float | _health, | ||
bool | _cull, | ||
bool | _clianim, | ||
entity | _owner | ||
) |
Definition at line 223 of file sv_vehicles.qc.
References ATTEN_NORM, CH_WEAPON_A, CSQCProjectile(), DAMAGE_AIM, entity(), FL_NOTARGET, g_bot_dodge, g_projectiles, IL_PUSH(), MOVETYPE_FLYMISSILE, PROJECTILE_MAKETRIGGER, RES_HEALTH, set_movetype(), setorigin(), SetResourceExplicit(), setthink, SOLID_BBOX, sound, TC, time, vehicles_projectile_damage(), vehicles_projectile_explode(), vehicles_projectile_explode_use(), and VOL_BASE.
void vehicles_projectile_damage | ( | entity | this, |
entity | inflictor, | ||
entity | attacker, | ||
float | damage, | ||
int | deathtype, | ||
.entity | weaponentity, | ||
vector | hitloc, | ||
vector | force | ||
) |
Definition at line 177 of file sv_vehicles.qc.
References DAMAGE_NO, func_null(), GetResource(), nextthink, RES_HEALTH, setthink, takedamage, TakeResource(), time, and velocity.
Referenced by vehicles_projectile().
Definition at line 194 of file sv_vehicles.qc.
References DMG_NOWEP, func_null(), NULL, owner, PROJECTILE_TOUCH, projectiledeathtype, RadiusDamage(), and realowner.
Referenced by vehicles_projectile(), vehicles_projectile_explode_think(), and vehicles_projectile_explode_use().
Definition at line 213 of file sv_vehicles.qc.
References NULL, and vehicles_projectile_explode().
Definition at line 218 of file sv_vehicles.qc.
References vehicles_projectile_explode().
Referenced by vehicles_projectile().
void vehicles_regen | ( | entity | this, |
float | timer, | ||
.float | regen_field, | ||
float | field_max, | ||
float | rpause, | ||
float | regen, | ||
float | delta_time, | ||
float | _healthscale | ||
) |
Definition at line 557 of file sv_vehicles.qc.
References GetResource(), max_health, min(), owner, RES_HEALTH, and time.
void vehicles_regen_resource | ( | entity | this, |
float | timer, | ||
.float | regen_field, | ||
float | field_max, | ||
float | rpause, | ||
float | regen, | ||
float | delta_time, | ||
float | _healthscale, | ||
Resource | resource | ||
) |
Definition at line 572 of file sv_vehicles.qc.
References GetResource(), max_health, min(), owner, SetResource(), and time.
Definition at line 1101 of file sv_vehicles.qc.
References active, ACTIVE_NOT, owner, vehicles_clearreturn(), vehicles_exit(), and vehicles_spawn().
Referenced by vehicles_spawn().
Definition at line 377 of file sv_vehicles.qc.
References alpha, autocvar_g_fullbrightplayers, autocvar_g_nodepthtestplayers, avelocity, colormap, colormod, EF_ADDITIVE, EF_DOUBLESIDED, EF_FULLBRIGHT, EF_LOWPRECISION, EF_NODEPTHTEST, EF_NOGUNBOB, EF_NOSHADOW, EF_SELECTABLE, EF_TELEPORT_BIT, effects, FOREACH_ENTITY_ENT, tag_entity, team, teamplay, tur_head, vector(), vehicledef, and velocity.
Referenced by vehicle_use(), vehicles_enter(), vehicles_exit(), and vehicles_spawn().
Definition at line 446 of file sv_vehicles.qc.
References setthink, time, and wp00.
Referenced by vehicles_showwp().
Definition at line 507 of file sv_vehicles.qc.
References entity(), IL_PUSH(), IS_DEAD, min(), setorigin(), setthink, time, vehicles_clearreturn(), and vehicles_showwp().
Referenced by vehicle_use(), vehicles_damage(), and vehicles_exit().
Definition at line 467 of file sv_vehicles.qc.
References entity(), NULL, setorigin(), setthink, spawn(), SPRITERULE_DEFAULT, Team_ColorRGB(), teamplay, time, vector(), vehicles_return(), vehicles_showwp_goaway(), and wp00.
Referenced by vehicles_setreturn().
Definition at line 459 of file sv_vehicles.qc.
Referenced by vehicles_showwp().
Definition at line 1113 of file sv_vehicles.qc.
References angles, avelocity, bot_attack, classname, DAMAGE_AIM, damagedbycontents, DEAD_NO, deadflag, FL_NOTARGET, flags, FOREACH_CLIENT, g_bot_targets, IL_PUSH(), IS_PLAYER, iscreature, LOG_DEBUG, MAX_WEAPONSLOTS, misc_bulletcounter, MOVETYPE_WALK, nextthink, NULL, origin, owner, pos1, pos2, RemoveHook(), set_movetype(), setorigin(), setthink, solid, SOLID_SLIDEBOX, takedamage, team, teleportable, time, vehicledef, vehicles_damage(), vehicles_heal(), vehicles_reset(), vehicles_reset_colors(), vehicles_think(), vehicles_touch(), velocity, and weaponentities.
Referenced by vehicles_clearreturn(), and vehicles_reset().
Definition at line 1086 of file sv_vehicles.qc.
References nextthink, owner, time, vehicledef, and vehicles_painframe().
Referenced by vehicles_spawn().
Definition at line 888 of file sv_vehicles.qc.
References Damage(), DMG_NOWEP, MUTATOR_CALLHOOK, normalize(), NULL, owner, time, vdist, vehicledef, vehicles_crushable(), vehicles_enter(), velocity, and weaponLocked().
Referenced by vehicle_initialize(), and vehicles_spawn().
vector axh_prevcolors |
Definition at line 45 of file sv_vehicles.qc.
vector axh_prevorigin |
Definition at line 44 of file sv_vehicles.qc.
int old_vehicle_flags |
Definition at line 787 of file sv_vehicles.qc.