X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fcommon%2Fvehicles%2Fsv_vehicles.qh;h=22e2e4859dd170c94f3bf03c571822bb9c496052;hp=8c53724b578525c50b0fd70337a53c42b8de624e;hb=e87123e5fba23f7a8907e6fbab241c5eec5be168;hpb=edf01df130d0d1877461561178b8833a9ab6051c diff --git a/qcsrc/common/vehicles/sv_vehicles.qh b/qcsrc/common/vehicles/sv_vehicles.qh index 8c53724b5..22e2e4859 100644 --- a/qcsrc/common/vehicles/sv_vehicles.qh +++ b/qcsrc/common/vehicles/sv_vehicles.qh @@ -1,5 +1,4 @@ -#ifndef VEHICLES_DEF_H -#define VEHICLES_DEF_H +#pragma once #ifdef SVQC #include @@ -16,15 +15,17 @@ float autocvar_g_vehicles_crush_force = 50; bool autocvar_g_vehicles_delayspawn = true; float autocvar_g_vehicles_delayspawn_jitter = 10; float autocvar_g_vehicles_allow_bots; +int autocvar_g_vehicles_exit_attempts = 25; +float autocvar_g_vehicles_thinkrate = 0.1; AUTOCVAR(g_vehicles_teams, bool, true, "allow team specific vehicles"); float autocvar_g_vehicles_teleportable; -float autocvar_g_vehicles_vortex_damagerate = 0.5; -float autocvar_g_vehicles_machinegun_damagerate = 0.5; +float autocvar_g_vehicles_vortex_damagerate = 0.75; +float autocvar_g_vehicles_machinegun_damagerate = 0.75; float autocvar_g_vehicles_rifle_damagerate = 0.75; -float autocvar_g_vehicles_vaporizer_damagerate = 0.001; +float autocvar_g_vehicles_vaporizer_damagerate = 0.5; float autocvar_g_vehicles_tag_damagerate = 5; -float autocvar_g_vehicles_weapon_damagerate = 1; +float autocvar_g_vehicles_weapon_damagerate = 2; .float vehicle_last_trace; @@ -66,6 +67,8 @@ const float VHSF_FACTORY = 2; .int hud = _STAT(HUD); .float dmg_time; +.float play_time; + .int volly_counter; const int MAX_AXH = 4; @@ -105,6 +108,9 @@ void vehicles_exit(entity vehic, int eject); bool vehicle_initialize(entity this, Vehicle info, float nodrop); bool vehicle_impulse(entity this, int imp); bool vehicles_crushable(entity e); +float vehicle_altitude(entity this, float amax); + +IntrusiveList g_vehicle_returners; +STATIC_INIT(g_vehicle_returners) { g_vehicle_returners = IL_NEW(); } -#endif #endif