]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/vehicles/sv_vehicles.qh
Merge branch 'master' into Mario/vehicles
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / vehicles / sv_vehicles.qh
index a3349b86e47ff408042fd40ebae48cbc58eb4dc2..36b7880e175ba083d6989ce5082d2a3932ba193c 100644 (file)
@@ -5,11 +5,13 @@ float autocvar_g_vehicles;
 float autocvar_g_vehicles_enter;
 float autocvar_g_vehicles_enter_radius;
 float autocvar_g_vehicles_steal;
+float autocvar_g_vehicles_steal_show_waypoint;
 float autocvar_g_vehicles_crush_dmg;
 float autocvar_g_vehicles_crush_force;
 float autocvar_g_vehicles_delayspawn;
 float autocvar_g_vehicles_delayspawn_jitter;
 float autocvar_g_vehicles_allow_bots;
+float autocvar_g_vehicles_teams;
 var float autocvar_g_vehicles_nex_damagerate = 0.5;
 var float autocvar_g_vehicles_uzi_damagerate = 0.5;
 var float autocvar_g_vehicles_rifle_damagerate = 0.75;
@@ -83,11 +85,12 @@ void vehicles_enter(entity pl, entity veh);
 // vehicle functions
 .void(float _spawnflag) vehicle_spawn;  /// Vehicles custom fucntion to be efecuted when vehicle (re)spawns
 .float(float _imp) vehicles_impulse;
-.float vehicle_weapon2mode = volly_counter;
+.float vehicle_weapon2mode;
 .void(float exit_flags) vehicle_exit;
+.float() vehicle_enter;
 const float VHEF_NORMAL = 0;  /// User pressed exit key
 const float VHEF_EJECT  = 1;  /// User pressed exit key 3 times fast (not implemented) or vehile is dying
-const float VHEF_RELESE = 2;  /// Release ownership, client possibly allready dissconnected / went spec / changed team / used "kill" (not implemented)
+const float VHEF_RELEASE = 2;  /// Release ownership, client possibly allready dissconnected / went spec / changed team / used "kill" (not implemented)
 
 // macros
 #define VEHICLE_UPDATE_PLAYER(ply,fld,vhname) \
@@ -96,4 +99,4 @@ const float VHEF_RELESE = 2;  /// Release ownership, client possibly allready di
 #define vehicles_sweap_collision(orig,vel,dt,acm,mult) \
        traceline(orig, orig + vel * dt, MOVE_NORMAL, self); \
        if(trace_fraction != 1) \
-               acm += normalize(self.origin - trace_endpos) * (vlen(vel) * mult)
\ No newline at end of file
+               acm += normalize(self.origin - trace_endpos) * (vlen(vel) * mult)