Zombie Panic! Source

Zombie Panic! Source

View Stats:
Feb 20, 2022 @ 12:22pm
PSA about item_ammo_barricade_clip and server crashes
Do NOT under any circumstances spawn directly item_ammo_barricade_clip entities (map itself, ent_create, Angelscript plugin, SourceMod plugin or whatever).

Why?

For those who read the v3.2.0 changelog, you have read that the exploit about "putting a barricade board, damaging it and picking it back up to regenerate it at it's full health" is gone and fixed. This implies a little change in those entities behavior.

The difference between item_ammo_barricade and item_ammo_barricade_clip is that the latter are boards that have already been picked up by Survivors. The first has a "health" property that get passed along to the second one. So if you spawn the second entity, you are spawning it with an invalid health and you are crashing the server when a Survivor picks it up.

What do I do then?

For single board, use item_ammo_barricade instead.

For barricade piles, use item_ammo_barricadepile instead. One side note to that entity, we mentioned in the changelog these:
Removed the "half pile" property in barricade piles.
Added a new "barricades count" property for barricade piles.
So make sure the boolean halfpile property is replaced by an integer boardscount.