pickedup |= Item_GiveAmmoTo(item, player, RES_FUEL, g_pickup_fuel_max);
// for RJZ
- if (autocvar_g_count_shards && !warmup_stage && item.itemdef == ITEM_ArmorSmall) {
+ if (autocvar_rjz_count_shards && !warmup_stage && item.itemdef == ITEM_ArmorSmall) {
total_shards++;
send_TotalShardsAll();
}
void send_TotalShards(entity to) {
// for RJZ
// Send total number of picked up shards
- if(!autocvar_g_count_shards) return;
+ if(!autocvar_rjz_count_shards) return;
if(!IS_REAL_CLIENT(to)) return;
msg_entity = to;
void send_TotalShardsAll() {
// for RJZ
// Send total number of picked up shards
- if(!autocvar_g_count_shards) return;
+ if(!autocvar_rjz_count_shards) return;
FOREACH_CLIENT(IS_REAL_CLIENT(it) && (IS_SPEC(it) || IS_OBSERVER(it)), {
send_TotalShards(it);
round_handler_Activate(true);
// for RJZ
- if (autocvar_g_count_shards && warmup_stage) {
+ if (autocvar_rjz_count_shards && warmup_stage) {
total_shards = -2;
send_TotalShardsAll();
}
void droptofloor(entity this);
/* z411 for RJZ */
-bool autocvar_g_count_shards = false;
+bool autocvar_rjz_count_shards = false;
int total_shards = 0;
void send_TotalShards(entity to);
void send_TotalShardsAll();