set g_balance_electro_combo_speed 400
// }}}
// {{{ crylink
-set g_balance_crylink_primary_damage 8
+set g_balance_crylink_primary_damage 10
set g_balance_crylink_primary_edgedamage 6
set g_balance_crylink_primary_force 40
set g_balance_crylink_primary_radius 80
-set g_balance_crylink_primary_speed 1200
+set g_balance_crylink_primary_speed 1250
set g_balance_crylink_primary_spread 0.05
set g_balance_crylink_primary_shots 7
set g_balance_crylink_primary_bounces 2
set g_balance_crylink_primary_other_fadetime 0.25
set g_balance_crylink_secondary 1
-set g_balance_crylink_secondary_damage 2
+set g_balance_crylink_secondary_damage 3
set g_balance_crylink_secondary_edgedamage 0
set g_balance_crylink_secondary_force -20
set g_balance_crylink_secondary_radius 5
-set g_balance_crylink_secondary_speed 1600
+set g_balance_crylink_secondary_speed 1700
set g_balance_crylink_secondary_spread 0.03
set g_balance_crylink_secondary_shots 3
set g_balance_crylink_secondary_bounces 0
set g_balance_nex_secondary 1
set g_balance_nex_secondary_charge 1
-set g_balance_nex_secondary_charge_rate 0.5
+set g_balance_nex_secondary_charge_rate 0.4
set g_balance_nex_secondary_charge_pool 1
set g_balance_nex_secondary_charge_pool_regen 0.15
set g_balance_nex_secondary_charge_pool_pause_regen 1
set g_balance_nex_secondary_force 0
set g_balance_nex_secondary_refire 0
set g_balance_nex_secondary_animtime 0
-set g_balance_nex_secondary_ammo 0.25 // full charge pool is 1, so it depletes in 4 secs
+set g_balance_nex_secondary_ammo 0.2 // full charge pool is 1, so it depletes in 5 secs
set g_balance_nex_secondary_damagefalloff_mindist 0
set g_balance_nex_secondary_damagefalloff_maxdist 0
set g_balance_nex_secondary_damagefalloff_halflife 0
return;
}
- if(!self.t_width)
- self.t_width = 0.1; // frame animation rate
- if(!self.t_length)
- self.t_length = 58; // maximum frame
-
setattachment(self, world, "");
self.mdl = self.model;
self.flags = FL_ITEM;
dprint("FLAG FALLTHROUGH will happen SOON\n");
};
-void AnimateFlag()
-{
- if(self.delay > time)
- return;
- self.delay = time + self.t_width;
- if(self.nextthink > self.delay)
- self.nextthink = self.delay;
-
- self.frame = self.frame + 1;
- if(self.frame > self.t_length)
- self.frame = 0;
-}
-
void FlagThink()
{
local entity e;
ctf_captureshield_update(e, 1); // release shield only
}
- AnimateFlag();
-
if(self.speedrunning)
if(self.cnt == FLAG_CARRY)
{
void PlayerStats_Init()
{
string uri;
- playerstats_sent = TRUE;
+ playerstats_db = -1;
+ playerstats_waitforme = TRUE;
uri = cvar_string("g_playerstats_uri");
if(uri == "")
return;
playerstats_db = db_create();
if(playerstats_db >= 0)
- playerstats_sent = FALSE; // must wait for it at match end
+ playerstats_waitforme = FALSE; // must wait for it at match end
PlayerStats_AddEvent(PLAYERSTATS_ALIVETIME);
PlayerStats_AddEvent(PLAYERSTATS_KILLS);
void PlayerStats_Sent_URI_Get_Callback(float id, float status, string data)
{
if(playerstats_requested)
- playerstats_sent = TRUE;
+ playerstats_waitforme = TRUE;
}
void PlayerStats_Shutdown()
if(crypto_uri_postbuf(uri, URI_GET_PLAYERSTATS_SENT, "text/plain", "\n", b, 0))
playerstats_requested = TRUE;
else
- playerstats_sent = TRUE; // if posting fails, we must continue anyway
+ playerstats_waitforme = TRUE; // if posting fails, we must continue anyway
buf_del(b);
}
else
- playerstats_sent = TRUE;
+ playerstats_waitforme = TRUE;
db_close(playerstats_db);
playerstats_db = -1;