Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- When creating a map for Zombie Horde you are now required to take a different approach than with beta28 and older.
- Scripting
- ---------------------------
- To create a map you are required to import the source code. This can be found within the pk3.
- To import the required code, you add ' #import "ZHGAME.acs" ' to your script.
- To define what type of map you are making (ZE or ZM), you will have to add a new fucntion
- 'GAME_INIT(int type)'
- mode can either be ZE_GAME or ZM_GAME, depending on the type of map.
- To compile be sure to add ' #include "CONST.acs" ' to your scripting
- If you want to change any of the timers, you use the following function
- 'Timer_SetTime(int mode, int time)'
- gamemode can be either one of the following
- > MODE_SAFE - countdown until a zombie is selected
- > MODE_PLAYING - round timer (only for ZM maps)
- > MODE_FINISHED - end timer
- ZE maps use a new way of storing players that have reached the safe zone.
- It now uses the following function, unlike old versions where the array 'Reached' was grabbed
- Player_SetEscaped(int player, bool escaped)
- An easy way to implement this is with the following line of code
- 'Player_SetEscaped(PlayerNumber(), LineSide() == LINE_FRONT);'
- Just make sure the line that triggers it has its back facing to the safezone. Otherwise change LINE_FRONT to LINE_BACK.
- Map definitions
- ---------------------------
- To define your map, you are required to make a MAPINFO lump. This is not hard at all.
- Open your level in Slade or any other level editor, add a lump called MAPINFO and insert the following
- map <map lump number> "<map name>"
- {
- [str definitions]
- }
- For example:
- map ZM20 "Frozen Fear (DrDoctor)"
- {
- sky1 = GLOOMSKY
- music = "PSXMUS05"
- }
- You are not required to use the old map flags anymore.
- for reference: http://zdoom.org/wiki/MAPINFO/Map_definition
- Extra things
- ---------------------------
- The radio now supports the ability to play the current playing music.
- What I mean with that is that basically throughout the map the music might change from the original starting music.
- Take ZE20 for example. It switches music halfway through the map.
- The radio will be able to check this, but this means that you are required to make it compatible yourself.
- The function for this is
- 'changemus (str track)'
- This is pretty much setmusic, but there's an extra feature which supports the radio. It is very adviced you used this instead.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement