Originally Posted by Depresie
you cannot get rid of the lag on armageddon if you are using glow...
yokomo, what do you mean by optimizing unlimited clip code?
I get a somewhat higher bandwidth usage with this mod, why's that?
Features like custom nightvision, custom flashlight, Nemesis aura, napalm's fire, and zombie bleeding need additional data to be sent to players. Unlimited clip ammo can also be a factor, especially when lots of shooting is going on. To save bandwidth, you can disable some (or all) of them by editing their CVARs.
Is there any other way to reduce bandwidth usage, without having to disable those features?
You can always try lowering your server's update rate (sv_maxupdaterate). This won't have such a noticeable impact on gameplay (like it would in CS), since Zombie-Mods don't need extremely precise shot registration, etc.
For even less bandwidth usage you can also lower tickrate (sys_ticrate). Keep in mind though: the lower the value, the less responsive the game is going to feel.
unlimited clip code on zp43:
// Current Weapon info
public message_cur_weapon(msg_id, msg_dest, msg_entity)
// Not alive or zombie
if (!g_isalive[msg_entity] || g_zombie[msg_entity])
// Not an active weapon
if (get_msg_arg_int(1) != 1)
// Unlimited clip disabled for class
if (g_survivor[msg_entity] ? get_pcvar_num(cvar_survinfammo) <= 1 : get_pcvar_num(cvar_infammo) <= 1)
// Get weapon's id
weapon = get_msg_arg_int(2)
// Unlimited Clip Ammo for this weapon?
if (MAXBPAMMO[weapon] > 2)
// Max out clip ammo
weapon_ent = fm_cs_get_current_weapon_ent(msg_entity)
if (pev_valid(weapon_ent)) cs_set_weapon_ammo(weapon_ent, MAXCLIP[weapon])
// HUD should show full clip all the time
set_msg_arg_int(3, get_msg_argtype(3), MAXCLIP[weapon])
It use CurWeapon message. Last time on my zp server, i completely delete this code and manually give unlimited clip too survivor.
In humanme function, go to:
// Set human attributes based on the mode
g_survivor[id] = true
// Set Health [0 = auto]
if (get_pcvar_num(cvar_survhp) == 0)
if (get_pcvar_num(cvar_survbasehp) == 0)
fm_set_user_health(id, get_pcvar_num(cvar_humanhp) * fnGetAlive())
fm_set_user_health(id, get_pcvar_num(cvar_survbasehp) * fnGetAlive())
// Set gravity, if frozen set the restore gravity value instead
if (!g_frozen[id]) set_pev(id, pev_gravity, get_pcvar_float(cvar_survgravity))
else g_frozen_gravity[id] = get_pcvar_float(cvar_survgravity)
// Set survivor maxspeed
// Give survivor his own weapon
get_pcvar_string(cvar_survweapon, survweapon, charsmax(survweapon))
//ExecuteHamB(Ham_GiveAmmo, id, MAXBPAMMO[cs_weapon_name_to_id(survweapon)], AMMOTYPE[cs_weapon_name_to_id(survweapon)], MAXBPAMMO[cs_weapon_name_to_id(survweapon)])
new wpn = give_item(id, survweapon)
if(wpn != -1)
cs_set_weapon_ammo(wpn, 32767) //32767 is enough, speedhacker also can't spam too much.
cs_set_user_bpammo(id, cs_weapon_name_to_id(survweapon), 0) //prevent reload.
// Turn off his flashlight
// Give the survivor a bright light
if (get_pcvar_num(cvar_survaura)) set_pev(id, pev_effects, pev(id, pev_effects) | EF_BRIGHTLIGHT)
// Survivor bots will also need nightvision to see in the dark
g_nvision[id] = true
On round end you need to strip weapon from survivor. You need to ignore current clip ammo in hud, it can't show more than 128 clip, so it will -- and ++ and cap at 128.