Zombie Panic! Source

Zombie Panic! Source

View Stats:
Events for ZPS
Hello, I decided to start collecting the ZPS server and run somewhere closer to the ZPS 3.0 output
At the moment I am writing the plugin statistics on Sourcemod and I wanted to know what are the events of the game for Sourcemod.

And I also wanted to know what events will be in v3.0

Are these all events[wiki.alliedmods.net]?

Sorry for my English!
< >
Showing 1-8 of 8 comments
Hello there!

Firstly, the events listed on that page are ZPS specific, however, the game itself (at least the current version) also uses generic Source events:

https://wiki.alliedmods.net/Generic_Source_Events
https://wiki.alliedmods.net/Generic_Source_Server_Events

Most events on those page will work, just remember that ZPS events take priority, so stuff like player_death in ZPS will be what is primarily used (it has userid, attacker, and the name of the weapon being used).

If you are looking for weapon names, here is a list (with the weapons they are associated to):

weapon_grenade_frag (Grenade, this is the event for hurt/killing a player with weapon_frag)
weapon_slam (IED, this is the event name for hurt/killing a player with weapon_ied)
weapon_870 (Remington)
weapon_spanner (Wrench)
weapon_golf (Golf Club)
weapon_bat_wood (Wooden bat)
weapon_bat_aluminum (Aluminum)
weapon_ak47 (AK47, obviously =D)
weapon_axe (Axe/Hatchet)
weapon_chair (Chair)
weapon_fryingpan (Frying pan)
weapon_glock (Glock 17)
weapon_glock18c (Glock 18c)
weapon_keyboard (Keyboard)
weapon_m4 (M4)
weapon_machete (Machete)
weapon_mp5 (MP5)
weapon_pipe (Pipe)
weapon_plank (Wooden plank)
weapon_pot (Pot)
weapon_ppk (PPK pistol)
weapon_revolver (Magnum/Revolver)
weapon_shovel (Shovel)
weapon_sledgehammer (Sledgehammer)
weapon_supershorty (Super shorty/Small shotgun)
weapon_tireiron (Tire Iron)
weapon_torque (Torque)
weapon_usp (USP Pistol)
weapon_winchester (Winchester)
weapon_arms (Normal Zombie arms)
weapon_carrierarms (Carrier/Whitey's majestic hands!)
weapon_empty (survivor hands, used to push items)

That should be most of the weapons in the game.

If you are looking to make a stats plugin, you can always look at the sourcecode for the gameME plugin to see how that is done. You can find that on the gameME website here:

https://www.gameme.com/docs/plugins/gameme/sourcemod

Hope this helps!
Thank you
Empty hands are used for pushing objects as survivor.
Originally posted by »SoD« XeroX ΞØP:
Empty hands are used for pushing objects as survivor.

Ah, gotcha. I corrected my post. Thanks for the info! :D
Another small thing to note: The grenades always were just "weapon_frag" and IED is "weapon_ied" accordingly. Also, there is a typo "weapon_chari" on the list.
Originally posted by Reborn:
Another small thing to note: The grenades always were just "weapon_frag" and IED is "weapon_ied" accordingly. Also, there is a typo "weapon_chari" on the list.

In terms of weapon names, weapon_frag and weapon_ied are correct. However, the kill event for those weapons are weapon_slam and weapon_grenade_frag. The reason the resulting kill names are different is mainly because these two items create an entity that kills rather than the item itself killing you. This is why you can touch/walk by a deployed grenade or IED in game and not be killed by it.

The other weapons are hitscan so their kill events are the names of the weapons themselves. Melee weapons register as their weapon names as well since you are using the entity itself to kill the player.

Thanks for pointing that out though, I made a change to my post detailing this. Also, fixed the typo!
Originally posted by Silence:
Hello there!

Firstly, the events listed on that page are ZPS specific, however, the game itself (at least the current version) also uses generic Source events:

https://wiki.alliedmods.net/Generic_Source_Events
https://wiki.alliedmods.net/Generic_Source_Server_Events

Most events on those page will work, just remember that ZPS events take priority, so stuff like player_death in ZPS will be what is primarily used (it has userid, attacker, and the name of the weapon being used).

If you are looking for weapon names, here is a list (with the weapons they are associated to):

weapon_grenade_frag (Grenade, this is the event for hurt/killing a player with weapon_frag)
weapon_slam (IED, this is the event name for hurt/killing a player with weapon_ied)
weapon_870 (Remington)
weapon_spanner (Wrench)
weapon_golf (Golf Club)
weapon_bat_wood (Wooden bat)
weapon_bat_aluminum (Aluminum)
weapon_ak47 (AK47, obviously =D)
weapon_axe (Axe/Hatchet)
weapon_chair (Chair)
weapon_fryingpan (Frying pan)
weapon_glock (Glock 17)
weapon_glock18c (Glock 18c)
weapon_keyboard (Keyboard)
weapon_m4 (M4)
weapon_machete (Machete)
weapon_mp5 (MP5)
weapon_pipe (Pipe)
weapon_plank (Wooden plank)
weapon_pot (Pot)
weapon_ppk (PPK pistol)
weapon_revolver (Magnum/Revolver)
weapon_shovel (Shovel)
weapon_sledgehammer (Sledgehammer)
weapon_supershorty (Super shorty/Small shotgun)
weapon_tireiron (Tire Iron)
weapon_torque (Torque)
weapon_usp (USP Pistol)
weapon_winchester (Winchester)
weapon_arms (Normal Zombie arms)
weapon_carrierarms (Carrier/Whitey's majestic hands!)
weapon_empty (survivor hands, used to push items)

That should be most of the weapons in the game.

If you are looking to make a stats plugin, you can always look at the sourcecode for the gameME plugin to see how that is done. You can find that on the gameME website here:

https://www.gameme.com/docs/plugins/gameme/sourcemod

Hope this helps!
In the game such as TF2 and CSGO
In Event player_death

assister | user ID | who assisted in the kill
Is there something similar in the ZPS?
Originally posted by dr lex:
In the game such as TF2 and CSGO
In Event player_death

assister | user ID | who assisted in the kill
Is there something similar in the ZPS?


Assists are not counted in the player_death event for ZPS according to the event information. If you look at your own link in your original post, you'll see that the player_death event only tracks the player, the attacker, and the weapon used. I know that assists are displayed by the game in the kill feed, but I don't think they are calculated the same way as they are in TF2 or CS:GO.
< >
Showing 1-8 of 8 comments
Per page: 1530 50