set g_keepawayball_trail_color 254 "particle trail color from player/ball"
set g_keepawayball_damageforcescale 3 "Scale of force which is applied to the ball by weapons/explosions/etc"
set g_keepawayball_respawntime 10 "if no one picks up the ball, how long to wait until the ball respawns"
+set g_keepawayball_wait 1 "time until the ball can be picked up again after getting dropped"
// ==========
float autocvar_g_keepawayball_damageforcescale;
int autocvar_g_keepawayball_effects;
float autocvar_g_keepawayball_respawntime;
+float autocvar_g_keepawayball_wait;
int autocvar_g_keepawayball_trail_color;
bool ka_ballcarrier_waypointsprite_visible_for_player(entity this, entity player, entity view) // runs on waypoints which are attached to ballcarriers, updates once per frame
// reset the ball
setattachment(ball, NULL, "");
set_movetype(ball, MOVETYPE_BOUNCE);
- ball.wait = time + 1;
+ ball.wait = time + autocvar_g_keepawayball_wait;
settouch(ball, ka_TouchEvent);
setthink(ball, ka_RespawnBall);
ball.nextthink = time + autocvar_g_keepawayball_respawntime;