Calling/Enabling Mods in Maps

Categorie Sub Categorie Files Creator

Tutorials

Scripting

=[A.T.C.D]= COLZBYNDA CL

This is base tutorial how to scripting easy mods, first part

1. CALLING MOD FROM MAP SCRIPT
On start - unpack and open the map's base script. Above the "level waittill prespawn" type "exec global/my-mod.scr"
now save it to your custom created pk3 (into zzzzzzzz_mypack.pk3/maps\dm\ or zzzzzzzz_mypack.pk3/maps\obj\)
 
now is the part of the mod editing -
create new fille named my-mod.scr
open it and write the content of script
you can too use the existing .scr (but into map you must type exec global/modname.scr)
below this you must now script the mod because i dont know what mod do you want to create wink
 
2.  CALLING CUSTOM MODS WITH PARAMETERS FROM  MAP SCRIPT
The mods with parameters must be called from script's thread - make thread mymod (how to make thread you can read in the down part of tut.) in map's script (how to unpack and pack is in part 1 - calling mod from map script)
this is type is good for teleports, planes, driveable vehicles mods, midgets ....
 
into thread write "exec global/modname.scr local.parm1 local.parm2 local.parm3"
count and types of parameters you can find in the .scr or in the default map of the mod
 
3.  CALLING MODS FROM DMPRECACHE.SCR
in this situation you dont must modify the map scripts, only if the map .scr dont containing the "exec global/dmprecache.scr".
 
TIP: How to make thread: into scr write:
thread_name:
// Script
// ..
// ..
end
    
Please too visit our website http://zbyvaj.sweb.cz/mohatcd/