Description:
This plugin allows players to become a Zombie. Admins with the slay flag can target themselves or other players and make them become a Zombie. The Zombie is purely cosmetic and does not change player abilities.
Player Commands:
!zombie - Use this to toggle Zombie mode on or off
!zombies - (same as above) Use this to toggle Zombie mode on or off
Admin Commands:
!makezombie - Makes YOU a Zombie
!makezombie <target> - Makes target player a Zombie
!makezombies - Makes YOU a Zombie
!makezombies <target> - Makes target player a Zombie
!nozombie - Removes Zombie mode from YOU
!nozombie <target> - Removes Zombie mode from target
!nozombies - Removes Zombie mode from YOU
!nozombies <target> - Removes Zombie mode from target
Command Examples:
!zombie (makes YOU Zombie)
!makezombie Tony (makes player named Tony a Zombie)
!makezombie @red (makes all players on RED team Zombies)
Installation:
Put zombies.smx into the folder: /sourcemod/plugins/
Change map
Change Log:
v1.4 08Nov2022: Fixed bug where Spy in disguise was missing legs.
v1.3 14Apr2022: Fixed bug where player was partly invisible after !nozombie command.
v1.2 11Oct2021: Removed gamedata dependency. No change in functionality.
v1.1 05May2021: Fixed bug identified by CrazyGhostRider.
v1.0 02May2021: Initial release
Plugin in original post updated to version 1.1 which fixes the bug identified by CrazyGhostRider.
Thanks for providing the bug report CrazyGhostRider! You just taught me to review the error logs before releasing a plugin even if the plugin is working as intended.
L 05/06/2021 - 00:12:54: [SM] Exception reported: Property "m_bValidatedAttachedEntity" not found (entity 1/player)
L 05/06/2021 - 00:12:54: [SM] Blaming: test\zombies.smx
L 05/06/2021 - 00:12:54: [SM] Call stack trace:
L 05/06/2021 - 00:12:54: [SM] [0] SetEntProp
L 05/06/2021 - 00:12:54: [SM] [1] Line 134, zombies.sp::Timer_Makezombie2
lol if you just run my spafixer plugin (https://github.com/404UNFca/TF2Serve...ttachmentFixer) you don't have to code in the validatedattachedentity fix in your own plugins. and if you still want to, just copy the code I did so it only fires on entities that actually have the netprop.
Last edited by 404UserNotFound; 10-13-2021 at 06:45.