<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=MonsefGX</id>
	<title>Multi Theft Auto: Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=MonsefGX"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/MonsefGX"/>
	<updated>2026-05-06T15:53:22Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Slothman/Zombies&amp;diff=75787</id>
		<title>Slothman/Zombies</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Slothman/Zombies&amp;diff=75787"/>
		<updated>2022-12-24T08:58:08Z</updated>

		<summary type="html">&lt;p&gt;MonsefGX: /* StreamMethod */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a resource designed spawn the undead wherever a player roams outside. It works without any configuration or scripting skills needed, but there are a few option for gamemode designers to use.&lt;br /&gt;
&lt;br /&gt;
=Features=&lt;br /&gt;
'''Skins:'''&lt;br /&gt;
There have been many contributed skins that change peds to look like the rotting/gory undead&lt;br /&gt;
&lt;br /&gt;
'''Semi-intelligence:'''&lt;br /&gt;
Zombies are fairly mindless by nature, but they do have basic motor skills like being able to jump over objects, climb ledges, walk around corners, and break through barriers&lt;br /&gt;
&lt;br /&gt;
'''Behaviour:'''&lt;br /&gt;
Zombies endlessly attack any player or ped that isn't one of them, then feast briefly on the remains before wandering off in search of more flesh&lt;br /&gt;
&lt;br /&gt;
'''Streaming:'''&lt;br /&gt;
By default, anywhere a player goes outside will have a fairly dense population of zombies. this is done by deleting zombies that far away and spawning new ones within a close radius of the players.&lt;br /&gt;
&lt;br /&gt;
'''Gamemode/Script integration:'''&lt;br /&gt;
This script provides several functions and events to allow other resources to see and control the zombies&lt;br /&gt;
&lt;br /&gt;
'''Helmet Zombies:'''&lt;br /&gt;
zombie + helmet = big trouble! no headshots against these flesheaters.&lt;br /&gt;
&lt;br /&gt;
'''Choose your apocalypse:'''&lt;br /&gt;
server option allows you to choose between allowing zombies to spawn anywhere, only at certain spawnpoints, or only when a script tells it to&lt;br /&gt;
&lt;br /&gt;
'''EDF:'''&lt;br /&gt;
lets map designers pick where zombies spawn when that method of creating zombies is chose&lt;br /&gt;
&lt;br /&gt;
=Server Options=&lt;br /&gt;
There are 2 server options to customize the script's effect.&lt;br /&gt;
&lt;br /&gt;
==MaxZombies==&lt;br /&gt;
Allows the server to set the maximum allowable zombie population. Map resources can reduce this limit, but never exceed it.&lt;br /&gt;
&lt;br /&gt;
==StreamMethod==&lt;br /&gt;
Tells the script how to create zombies. set this option to 1 to allow random spawning anywhere in San Andreas. Set to 2 to only allow zombies to spawn where zombie spawnpoints have been placed. Set to 0 to spawn no zombies automatically, but allow scripts to spawn zombies using the exported function.&lt;br /&gt;
&lt;br /&gt;
=Server Events=&lt;br /&gt;
&lt;br /&gt;
==onZombieSpawn==&lt;br /&gt;
This triggers when a Zombie is streamed in automatically. It is a cancellable event, so scripts and gamemode can prevent zombies from spawning in certain areas.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Parameters'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
float x, float y, float z&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''x''': The X coord of the spawn location&lt;br /&gt;
*'''y''': The Y coord of the spawn location&lt;br /&gt;
*'''z''': The Z coord of the spawn location&lt;br /&gt;
&amp;lt;big&amp;gt;'''Source'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The [[event system#Event source|source]] of this event is the Zombie that is spawning&lt;br /&gt;
&lt;br /&gt;
==onZombieWasted==&lt;br /&gt;
This triggers when a zombie is killed.&lt;br /&gt;
&amp;lt;big&amp;gt;'''Parameters'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element attacker, float weapon, float bodypart&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''attacker''': The Element that killed the zombie&lt;br /&gt;
*'''weapon''': The weapon id used to kill the zombie&lt;br /&gt;
*'''bodypart''': The bodypart id that was hit to kill the zombie&lt;br /&gt;
&amp;lt;big&amp;gt;'''Source'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The [[event system#Event source|source]] of this event is the zombie that died&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Server Functions=&lt;br /&gt;
All of these funtions will have to be used through the [[call]] function, otherwise they won't work&lt;br /&gt;
&lt;br /&gt;
==createZombie==&lt;br /&gt;
This function spawns a zombie ingame, will return the zombie element, or false if there was a problem.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element createZombie( float x, float y, float z, [int rotation = 0, int skinID = 0, int interior = 0, int dimension = 0 ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''x:''' The x co-ordinate to spawn the zombie&lt;br /&gt;
*'''y:''' The y co-ordinate to spawn the zombie&lt;br /&gt;
*'''z:''' The z co-ordinate to spawn the zombie&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Optional Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''rotation:''' Rotation of the zombie on spawn&lt;br /&gt;
*'''skinID:''' skin on spawn&lt;br /&gt;
*'''interior:''' Interior the zombie will spawn into&lt;br /&gt;
*'''dimension:''' The ID of the [[dimension]] that the zombie should be in&lt;br /&gt;
&lt;br /&gt;
==isPedZombie==&lt;br /&gt;
returns true if the ped is a zombie, false otherwise&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool isPedZombie( element thePed)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''thePed:''' The ped you want to check if its a zombie&lt;br /&gt;
&lt;br /&gt;
=Credits=&lt;br /&gt;
*'''Slothman:''' Creator/scripter/skin artist&lt;br /&gt;
*'''Various artists:''' see the client script to view zombie skin creators.&lt;br /&gt;
*'''Thanks to Everyone else who made suggestions, tested the script, helped when i was stuck, etc'''&lt;br /&gt;
&lt;br /&gt;
=Other=&lt;br /&gt;
Статья на русском : https://wiki.multitheftauto.com/wiki/Slothman/%D0%97%D0%BE%D0%BC%D0%B1%D0%B8&lt;/div&gt;</summary>
		<author><name>MonsefGX</name></author>
	</entry>
</feed>