if(cvar("crosshair_pickup"))
{
- if(pickup_crosshair_time < getstatf(STAT_PICKUP_CROSSHAIR))
+ if(pickup_crosshair_time < getstatf(STAT_LAST_PICKUP))
{
pickup_crosshair_size = 1;
- pickup_crosshair_time = getstatf(STAT_PICKUP_CROSSHAIR);
+ pickup_crosshair_time = getstatf(STAT_LAST_PICKUP);
}
if(pickup_crosshair_size > 0)
const float STAT_LEADLIMIT = 47;
const float STAT_BULLETS_LOADED = 48;
const float STAT_NEX_CHARGE = 49;
-const float STAT_PICKUP_CROSSHAIR = 50;
+const float STAT_LAST_PICKUP = 50;
const float STAT_HUD = 51;
// see DP source, quakedef.h
self.dmg_inflictor = spectatee.dmg_inflictor;
self.angles = spectatee.v_angle;
self.fixangle = TRUE;
- self.stat_crosshair_pickup = spectatee.stat_crosshair_pickup;
+ self.last_pickup = spectatee.last_pickup;
setorigin(self, spectatee.origin);
setsize(self, spectatee.mins, spectatee.maxs);
SetZoomState(spectatee.zoomstate);
.float stats_hit[WEP_MAXCOUNT]; // for hitscan bullets hit
.float stats_fired[WEP_MAXCOUNT]; // for hitscan bullets fired
-.float stat_crosshair_pickup;
+.float last_pickup;
FTEQCC_YOU_SUCK_THIS_IS_NOT_UNREFERENCED(stats_hit);
FTEQCC_YOU_SUCK_THIS_IS_NOT_UNREFERENCED(stats_fired);
addstat(STAT_SHOTORG, AS_INT, stat_shotorg);
addstat(STAT_LEADLIMIT, AS_FLOAT, stat_leadlimit);
addstat(STAT_BULLETS_LOADED, AS_INT, campingrifle_bulletcounter);
- addstat(STAT_PICKUP_CROSSHAIR, AS_FLOAT, stat_crosshair_pickup);
+ addstat(STAT_LAST_PICKUP, AS_FLOAT, last_pickup);
addstat(STAT_NEX_CHARGE, AS_FLOAT, nex_charge);
if(!Item_GiveTo(self, other))
return;
- other.stat_crosshair_pickup = time;
+ other.last_pickup = time;
pointparticles(particleeffectnum("item_pickup"), self.origin, '0 0 0', 1);