set g_riflearena_nade_minforce 400
set g_riflearena_nade_maxforce 2000
set g_riflearena_nade_refire 6
+set g_riflearena_rifle_secondary_spread 0
+set g_riflearena_rifle_secondary_shots 1
+set g_riflearena_rifle_secondary_animtime 0.15
+set g_riflearena_rifle_secondary_refire 0.15
+set g_riflearena_rifle_secondary_damage 40
self.ra_nade.projectiledeathtype = DEATH_NADE_NORMAL;
}
+void ra_SetCvars()
+{
+ cvar_settemp("g_balance_rifle_secondary_spread", ftos(cvar("g_riflearena_rifle_secondary_spread")));
+ cvar_settemp("g_balance_rifle_secondary_shots", ftos(cvar("g_riflearena_rifle_secondary_shots")));
+ cvar_settemp("g_balance_rifle_secondary_animtime", ftos(cvar("g_riflearena_rifle_secondary_animtime")));
+ cvar_settemp("g_balance_rifle_secondary_refire", ftos(cvar("g_riflearena_rifle_secondary_refire")));
+ cvar_settemp("g_balance_rifle_secondary_damage", ftos(cvar("g_riflearena_rifle_secondary_damage")));
+}
+
MUTATOR_HOOKFUNCTION(ra_VehicleEnter)
{
if(other.ra_nade)
MUTATOR_ONADD
{
- cvar_settemp("g_balance_rifle_secondary_spread", "0");
- cvar_settemp("g_balance_rifle_secondary_shots", "1");
- cvar_settemp("g_balance_rifle_secondary_animtime", "0.15");
- cvar_settemp("g_balance_rifle_secondary_refire", "0.15");
- cvar_settemp("g_balance_rifle_secondary_damage", "40");
+ ra_SetCvars();
+
precache_model("models/ok_nade_counter/ok_nade_counter.md3");
precache_model("models/weapons/h_ok_grenade.iqm");