|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
Go to the source code of this file.
Macros | |
| #define | VEHICLE_UPDATE_PLAYER(ply, vehi, fld, vhname) |
| #define | VEHICLE_UPDATE_PLAYER_RESOURCE(ply, vehi, fld, vhname, res) |
Functions | |
| AUTOCVAR (g_vehicles_enter, bool, false, "require pressing use key to enter a vehicle") | |
| AUTOCVAR (g_vehicles_steal, bool, true, "allow stealing enemy vehicles in teamplay modes") | |
| AUTOCVAR (g_vehicles_steal_show_waypoint, bool, true, "show a waypoint above the thief") | |
| AUTOCVAR (g_vehicles_teams, bool, true, "allow team specific vehicles") | |
| bool (entity this, entity player) vehicle_enter | |
| bool (entity this, int _imp) vehicles_impulse | |
| Vehicles custom fucntion to be efecuted when vehicle (re)spawns. | |
| STATIC_INIT (g_vehicle_returners) | |
| bool | vehicle_impulse (entity this, int imp) |
| bool | vehicle_initialize (entity this, Vehicle info, float nodrop) |
| bool | vehicles_crushable (entity e) |
| void | vehicles_enter (entity pl, entity veh) |
| void | vehicles_exit (entity vehic, int eject) |
| void (entity this, int exit_flags) vehicle_exit | |
| void (int _spawnflag) vehicle_spawn | |
Variables | |
| bool | autocvar_g_vehicles = true |
| float | autocvar_g_vehicles_allow_bots |
| float | autocvar_g_vehicles_crush_dmg = 70 |
| float | autocvar_g_vehicles_crush_force = 50 |
| float | autocvar_g_vehicles_crush_minspeed = 100 |
| bool | autocvar_g_vehicles_delayspawn = true |
| float | autocvar_g_vehicles_delayspawn_jitter = 10 |
| float | autocvar_g_vehicles_enter_radius = 250 |
| int | autocvar_g_vehicles_exit_attempts = 25 |
| float | autocvar_g_vehicles_machinegun_damagerate = 0.75 |
| float | autocvar_g_vehicles_rifle_damagerate = 0.75 |
| float | autocvar_g_vehicles_tag_damagerate = 5 |
| float | autocvar_g_vehicles_teleportable |
| float | autocvar_g_vehicles_thinkrate = 0.1 |
| float | autocvar_g_vehicles_vaporizer_damagerate = 0.5 |
| float | autocvar_g_vehicles_vortex_damagerate = 0.75 |
| float | autocvar_g_vehicles_weapon_damagerate = 2 |
| entity | AuxiliaryXhair [MAX_AXH] |
| float | dmg_time |
| IntrusiveList | g_vehicle_returners |
| entity | gun1 |
| entity | gun2 |
| entity | gun3 |
| entity | gunner1 |
| entity | gunner2 |
| float | lock_soundtime |
| float | lock_strength |
| entity | lock_target |
| float | lock_time |
| const int | MAX_AXH = 4 |
| float | pain_frame |
| float | play_time |
| float | sound_nexttime |
| If ent is player this is 0..100 indicating percentage of secondary reload status. If ent is vehicle, this is the real reload2 value. | |
| const float | SVC_SETVIEWANGLES = 10 |
| const float | SVC_SETVIEWPORT = 5 |
| const float | SVC_UPDATEENTITY = 128 |
| entity | vehicle |
| Entity to disply the shild effect on damage. | |
| const float | vehicle_ammo1 = _STAT(VEHICLESTAT_AMMO1) |
| If ent is player this is 0..100 indicating precentage of shield left on vehicle. If ent is vehicle, this is the real shield value. | |
| const float | vehicle_ammo2 = _STAT(VEHICLESTAT_AMMO2) |
| If ent is player this is 0..100 indicating percentage of primary reload status. If ent is vehicle, this is the real reload1 value. | |
| entity | vehicle_controller |
| const float | vehicle_energy = _STAT(VEHICLESTAT_ENERGY) |
| If ent is player this is 0..100 indicating precentage of health left on vehicle. Vehicle's value is the health resource. | |
| float | vehicle_enter_delay |
| int | vehicle_flags |
| const float | vehicle_health = _STAT(VEHICLESTAT_HEALTH) |
| entity | vehicle_hudmodel |
| float | vehicle_last_trace |
| const float | vehicle_reload1 = _STAT(VEHICLESTAT_RELOAD1) |
| If ent is player this is 0..100 indicating percentage of primary ammo left UNLESS value is already stored in vehicle_energy. If ent is vehicle, this is the real ammo1 value. | |
| const float | vehicle_reload2 = _STAT(VEHICLESTAT_RELOAD2) |
| If ent is player this is 0..100 indicating percentage of secondary ammo left. If ent is vehicle, this is the real ammo2 value. | |
| const float | vehicle_shield = _STAT(VEHICLESTAT_SHIELD) |
| If ent is player this is 0..100 indicating precentage of energy left on vehicle. If ent is vehicle, this is the real energy value. | |
| entity | vehicle_shieldent |
| entity | vehicle_viewport |
| float | vehicles_exit_running |
| Release ownership, client possibly allready dissconnected / went spec / changed team / used "kill" (not implemented) | |
| const int | VHEF_EJECT = 1 |
| User pressed exit key. | |
| const int | VHEF_NORMAL = 0 |
| const int | VHEF_RELEASE = 2 |
| User pressed exit key 3 times fast (not implemented) or vehicle is dying. | |
| const float | VHSF_FACTORY = 2 |
| const float | VHSF_NORMAL = 0 |
| const float | VOL_VEHICLEENGINE = 1 |
| int | volly_counter |
| entity | wps_intruder |
| #define VEHICLE_UPDATE_PLAYER | ( | ply, | |
| vehi, | |||
| fld, | |||
| vhname ) |
Definition at line 98 of file sv_vehicles.qh.
Referenced by bumblebee_gunner_frame(), bumblebee_pilot_frame(), racer_frame(), raptor_takeoff(), and spiderbot_frame().
| #define VEHICLE_UPDATE_PLAYER_RESOURCE | ( | ply, | |
| vehi, | |||
| fld, | |||
| vhname, | |||
| res ) |
Definition at line 101 of file sv_vehicles.qh.
Referenced by bumblebee_gunner_frame(), bumblebee_pilot_frame(), racer_frame(), raptor_takeoff(), and spiderbot_frame().
Vehicles custom fucntion to be efecuted when vehicle (re)spawns.
References entity().
| STATIC_INIT | ( | g_vehicle_returners | ) |
Definition at line 920 of file sv_vehicles.qc.
References bool, entity(), imp, IS_DEAD, stuffcmd, and vehicle.
Referenced by ImpulseCommands().
Definition at line 735 of file sv_vehicles.qc.
References entity(), IS_MONSTER, IS_PLAYER, and time.
Referenced by vehicles_touch().
Definition at line 938 of file sv_vehicles.qc.
References antilag_clear(), autocvar_g_vehicles_allow_bots, 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, IT_USING_JETPACK, m_switchweapon, MAX_WEAPONSLOTS, MOVETYPE_NOCLIP, msg_entity, MSG_ONE, MUTATOR_CALLHOOK, NULL, RemoveGrapplingHooks(), SAME_TEAM, Send_Notification(), set_movetype(), SOLID_NOT, STAT, StatusEffects_active(), SVC_SETVIEWANGLES, SVC_SETVIEWPORT, Team_ColorRGB(), teamplay, time, UNSET_DUCKED, UNSET_ONGROUND, vehicles_clearreturn(), vehicles_damage(), vehicles_heal(), vehicles_reset_colors(), VHF_MULTISLOT, VHF_SHIELDREGEN, Vehicle::vr_enter(), Vehicle::vr_gunner_enter(), WaypointSprite_Spawn(), weaponentities, wps_intruder, WriteAngle(), WriteByte(), and WriteEntity().
Referenced by PlayerUseKey(), and vehicles_touch().
| void | ( | int | _spawnflag | ) |
Definition at line 8 of file sv_vehicles.qh.
Referenced by vehicle_initialize().
| float autocvar_g_vehicles_allow_bots |
Definition at line 18 of file sv_vehicles.qh.
Referenced by vehicles_enter(), and vehicles_valid_pilot().
| float autocvar_g_vehicles_crush_dmg = 70 |
Definition at line 13 of file sv_vehicles.qh.
Referenced by vehicles_touch().
| float autocvar_g_vehicles_crush_force = 50 |
Definition at line 14 of file sv_vehicles.qh.
Referenced by vehicles_touch().
| float autocvar_g_vehicles_crush_minspeed = 100 |
Definition at line 15 of file sv_vehicles.qh.
Referenced by vehicles_touch().
Definition at line 16 of file sv_vehicles.qh.
Referenced by vehicle_initialize().
| float autocvar_g_vehicles_delayspawn_jitter = 10 |
Definition at line 17 of file sv_vehicles.qh.
Referenced by vehicle_initialize().
| float autocvar_g_vehicles_enter_radius = 250 |
Definition at line 10 of file sv_vehicles.qh.
Referenced by PlayerFrame(), and PlayerUseKey().
| int autocvar_g_vehicles_exit_attempts = 25 |
Definition at line 19 of file sv_vehicles.qh.
Referenced by vehicles_findgoodexit().
| float autocvar_g_vehicles_machinegun_damagerate = 0.75 |
Definition at line 25 of file sv_vehicles.qh.
Referenced by vehicles_damage().
| float autocvar_g_vehicles_rifle_damagerate = 0.75 |
Definition at line 26 of file sv_vehicles.qh.
Referenced by vehicles_damage().
| float autocvar_g_vehicles_tag_damagerate = 5 |
Definition at line 28 of file sv_vehicles.qh.
Referenced by vehicles_damage().
| float autocvar_g_vehicles_teleportable |
Definition at line 23 of file sv_vehicles.qh.
Referenced by Portal_Touch().
| float autocvar_g_vehicles_thinkrate = 0.1 |
Definition at line 20 of file sv_vehicles.qh.
Referenced by vehicles_think().
| float autocvar_g_vehicles_vaporizer_damagerate = 0.5 |
Definition at line 27 of file sv_vehicles.qh.
Referenced by vehicles_damage().
| float autocvar_g_vehicles_vortex_damagerate = 0.75 |
Definition at line 24 of file sv_vehicles.qh.
Referenced by vehicles_damage().
| float autocvar_g_vehicles_weapon_damagerate = 2 |
Definition at line 29 of file sv_vehicles.qh.
Referenced by vehicles_damage().
Definition at line 77 of file sv_vehicles.qh.
| float dmg_time |
Definition at line 68 of file sv_vehicles.qh.
Referenced by bumblebee_regen(), Monster_Damage(), and vehicles_damage().
| IntrusiveList g_vehicle_returners |
Definition at line 112 of file sv_vehicles.qh.
Referenced by STATIC_INIT(), vehicles_clearreturn(), and vehicles_setreturn().
| entity gun1 |
Definition at line 37 of file sv_vehicles.qh.
Referenced by bumblebee_regen(), bumblebee_touch(), raptor_rotor_anglefix(), and spiderbot_blowup().
| entity gun2 |
Definition at line 38 of file sv_vehicles.qh.
Referenced by bumblebee_regen(), bumblebee_touch(), raptor_rotor_anglefix(), spiderbot_blowup(), and spiderbot_rocket_do().
| entity gun3 |
Definition at line 39 of file sv_vehicles.qh.
Referenced by bumblebee_exit().
| entity gunner1 |
Definition at line 46 of file sv_vehicles.qh.
Referenced by bumblebee_touch().
| entity gunner2 |
Definition at line 47 of file sv_vehicles.qh.
Referenced by bumblebee_touch().
| float lock_soundtime |
Definition at line 84 of file sv_vehicles.qh.
Referenced by vehicles_locktarget().
| float lock_strength |
Definition at line 82 of file sv_vehicles.qh.
Referenced by vehicles_locktarget(), and vehicles_spawn().
| entity lock_target |
Definition at line 81 of file sv_vehicles.qh.
Referenced by vehicles_locktarget(), and vehicles_spawn().
| float lock_time |
Definition at line 83 of file sv_vehicles.qh.
Referenced by vehicles_locktarget().
| const int MAX_AXH = 4 |
Definition at line 76 of file sv_vehicles.qh.
| float pain_frame |
Definition at line 70 of file sv_vehicles.qh.
Referenced by vehicles_painframe().
| float play_time |
Definition at line 72 of file sv_vehicles.qh.
Referenced by vehicles_impact(), and vehicles_touch().
| float sound_nexttime |
If ent is player this is 0..100 indicating percentage of secondary reload status. If ent is vehicle, this is the real reload2 value.
Definition at line 58 of file sv_vehicles.qh.
| const float SVC_SETVIEWANGLES = 10 |
Definition at line 62 of file sv_vehicles.qh.
Referenced by bumblebee_gunner_enter(), bumblebee_gunner_exit(), ons_camSetup(), vehicles_enter(), and vehicles_exit().
| const float SVC_SETVIEWPORT = 5 |
Definition at line 61 of file sv_vehicles.qh.
Referenced by bumblebee_gunner_enter(), bumblebee_gunner_exit(), vehicles_enter(), and vehicles_exit().
| const float SVC_UPDATEENTITY = 128 |
Definition at line 63 of file sv_vehicles.qh.
| entity vehicle |
Entity to disply the shild effect on damage.
Definition at line 41 of file sv_vehicles.qh.
Referenced by bumblebee_exit(), bumblebee_gunner_frame(), bumblebee_pilot_frame(), CanThrowNade(), ClientDisconnect(), ClientKill_Now(), DrownPlayer(), IMPULSE(), IMPULSE(), IMPULSE(), IMPULSE(), IMPULSE(), IMPULSE(), IMPULSE(), IMPULSE(), IMPULSE(), player_powerups(), player_regen(), PlayerFrame(), PlayerUseKey(), PutObserverInServer(), PutPlayerInServer(), raptor_frame(), raptor_impulse(), raptor_takeoff(), spiderbot_frame(), spiderbot_impulse(), TEST(), vehicle_impulse(), Vehicles_drawHUD(), weapon_byid_handle(), and X().
If ent is player this is 0..100 indicating precentage of shield left on vehicle. If ent is vehicle, this is the real shield value.
Definition at line 53 of file sv_vehicles.qh.
Referenced by bumblebee_pilot_frame(), SpectateCopy(), and spiderbot_frame().
If ent is player this is 0..100 indicating percentage of primary reload status. If ent is vehicle, this is the real reload1 value.
Definition at line 55 of file sv_vehicles.qh.
Referenced by bumblebee_pilot_frame(), raptor_frame(), raptor_takeoff(), SpectateCopy(), and spiderbot_frame().
| entity vehicle_controller |
Definition at line 44 of file sv_vehicles.qh.
Referenced by vehicle_initialize(), and vehicles_spawn().
If ent is player this is 0..100 indicating precentage of health left on vehicle. Vehicle's value is the health resource.
Definition at line 50 of file sv_vehicles.qh.
Referenced by bumblebee_gunner_frame(), bumblebee_regen(), racer_frame(), raptor_frame(), raptor_takeoff(), and SpectateCopy().
| float vehicle_enter_delay |
Definition at line 104 of file sv_vehicles.qh.
| int vehicle_flags |
Definition at line 34 of file sv_vehicles.qh.
Referenced by bumblebee_regen(), vehicle_initialize(), vehicles_damage(), and vehicles_painframe().
Definition at line 49 of file sv_vehicles.qh.
Referenced by bumblebee_regen(), ClientKill_Now(), racer_frame(), raptor_frame(), raptor_takeoff(), SpectateCopy(), and spiderbot_frame().
| entity vehicle_hudmodel |
Definition at line 43 of file sv_vehicles.qh.
Referenced by spiderbot_blowup(), vehicle_addplayerslot(), vehicle_initialize(), vehicles_reset_colors(), and vehicles_spawn().
| float vehicle_last_trace |
Definition at line 31 of file sv_vehicles.qh.
If ent is player this is 0..100 indicating percentage of primary ammo left UNLESS value is already stored in vehicle_energy. If ent is vehicle, this is the real ammo1 value.
Definition at line 54 of file sv_vehicles.qh.
Referenced by bumblebee_gunner_frame(), SpectateCopy(), and spiderbot_frame().
If ent is player this is 0..100 indicating percentage of secondary ammo left. If ent is vehicle, this is the real ammo2 value.
Definition at line 56 of file sv_vehicles.qh.
Referenced by raptor_frame(), raptor_takeoff(), SpectateCopy(), and spiderbot_frame().
If ent is player this is 0..100 indicating precentage of energy left on vehicle. If ent is vehicle, this is the real energy value.
Definition at line 51 of file sv_vehicles.qh.
Referenced by bumblebee_regen(), racer_frame(), raptor_frame(), raptor_takeoff(), SpectateCopy(), spiderbot_frame(), and vehicles_damage().
| entity vehicle_shieldent |
Definition at line 40 of file sv_vehicles.qh.
Referenced by vehicles_damage(), and vehicles_reset_colors().
| entity vehicle_viewport |
Definition at line 42 of file sv_vehicles.qh.
Referenced by vehicle_addplayerslot(), vehicle_initialize(), and vehicles_reset_colors().
| float vehicles_exit_running |
Release ownership, client possibly allready dissconnected / went spec / changed team / used "kill" (not implemented)
Definition at line 95 of file sv_vehicles.qh.
Referenced by vehicles_exit().
| const int VHEF_EJECT = 1 |
User pressed exit key.
Definition at line 92 of file sv_vehicles.qh.
Referenced by vehicles_damage().
| const int VHEF_NORMAL = 0 |
Definition at line 91 of file sv_vehicles.qh.
Referenced by PlayerUseKey(), racer_blowup(), and raptor_blowup().
| const int VHEF_RELEASE = 2 |
User pressed exit key 3 times fast (not implemented) or vehicle is dying.
Definition at line 93 of file sv_vehicles.qh.
Referenced by ClientDisconnect(), ClientKill_Now(), Damage(), MUTATOR_HOOKFUNCTION(), player_regen(), PutObserverInServer(), PutPlayerInServer(), vehicles_damage(), and vehicles_reset().
| const float VHSF_FACTORY = 2 |
Definition at line 66 of file sv_vehicles.qh.
| const float VHSF_NORMAL = 0 |
Definition at line 65 of file sv_vehicles.qh.
| const float VOL_VEHICLEENGINE = 1 |
Definition at line 59 of file sv_vehicles.qh.
Referenced by racer_exit(), racer_frame(), raptor_takeoff(), and spiderbot_frame().
| int volly_counter |
Definition at line 74 of file sv_vehicles.qh.
| entity wps_intruder |
Definition at line 79 of file sv_vehicles.qh.
Referenced by vehicles_enter().