Introduction
I'm in process of creating one of these zombie servers, the thing I have fought the most with was the creation of the zombies, it is hard to make it work as intended, so, to save time for these people creating the same themed gamemode, I provide this piece of code.
Note that I started learning sa-mp from about 3 months ago, the code could be better somehow. Feel free to insult me, but while you're at it, point at me what did I do wrong.
Features
Known Issues/Bugs
How to use
You must have RNPC and Icognito's Streamer plugins in order for this filterscript to work.
How to configure
Download
Icognito's Streamer: http://forum.sa-mp.com/showthread.php?t=102865
Mauzen's RNPC: http://forum.sa-mp.com/showthread.php?t=355849
Zombeydere:
https://github.com/Troydere/Zombeydere
http://pastebin.com/1vjjFYeh
I'm in process of creating one of these zombie servers, the thing I have fought the most with was the creation of the zombies, it is hard to make it work as intended, so, to save time for these people creating the same themed gamemode, I provide this piece of code.
Note that I started learning sa-mp from about 3 months ago, the code could be better somehow. Feel free to insult me, but while you're at it, point at me what did I do wrong.
Features
Quote:
- About 120 zombie areas in both LV and LS. - The zombies will follow (running) the nearest player with the lower ID. - The zombies will attack the nearest player (not very accurate but they try atleast). - The zombies are killable in every way but by car crash and fire (RPG/grenades) - Zombie Area system, if there's no player in an area, zombies of that area will be returned to the pool. - NPC pool for fast-access to the NPCs. - Optimized NPC management. They die, they're returned to the pool. - If the player is in a different latitude level than the zombies, they will stop following (if the player gets in a rooftop, so the zombies won't fly) - Customizable NPC damage. - Fully controllable and easy script to make your own modifications. |
Known Issues/Bugs
Quote:
- Zombie's aim is not accurate. - Zombies will go through walls if needed. - Zombies don't know where the floor is (not using MapAndreas), so they may step below the floor. - All of the Zombies will be online all the time, this consumes player slots and may make your server run slower - This has not been tested with lot of people. - Tons of fucking recordings in your npcmodes/recordings folder - There must be other unknown bugs. |
How to use
You must have RNPC and Icognito's Streamer plugins in order for this filterscript to work.
Quote:
- Open the Zombeydere.pwn file and compile it in your filterscript folder. - Add the following line on top of your gamemode's OnPlayerConnect and OnPlayerSpawn callbacks. Code:
if(IsPlayerNPC(playerid)) return 1; Code:
Zombeydere |
How to configure
Quote:
Open the Zombeydere.pwn file and find the following: Code:
#define DUMMY_QUANT DUMMY_QUANT is the quantity of dummy npcs that will connect to your server before the actual NPCs (zombies). This is made in order to keep player IDs and NPC IDs separated from eachother. Default is 100. There's no limit set but keep the MAX below 400. MAX_ZOMBEY is the quantity of zombeys that will connect to your server. They connect once the filterscript starts and will be kept in a pool of zombies until called to spawn in a certain zone. Default is 100. There's no limit set but keep the MAX below 400. MAX_ZOMBEY_PER_AREA is the number of zombeys that will spawn in the areas. Default is 10. There's no limit set but keep the MAX below 20. |
Quote:
To add more zones, create a new entry in the ZombeySpawns declaration on top of the filterscript. Use {X,Y,Z,rotation} (the last is not in use yet though) |
Download
Icognito's Streamer: http://forum.sa-mp.com/showthread.php?t=102865
Mauzen's RNPC: http://forum.sa-mp.com/showthread.php?t=355849
Zombeydere:
https://github.com/Troydere/Zombeydere
http://pastebin.com/1vjjFYeh