Custom Named Scripts Specifics #Ĭustom scripts can be organized efficiently as well.Īny script the game parses will also have its includes parsed as well as long as they are in the same folder or a subfolder of that folder. Therefore, always use ReplaceFunc() in a main() of a custom script. ReplaceFunc() MUST always be called before the function you want to replace is called otherwise it won't have any effect. You can get around this limitation by overriding the entire script by placing it in the same sub path it expects in storage/gamename/, or overriding all the functions it calls.įor example if you wanted to replace maps/mp/gametypes/_globallogic.gsc the path would be storage/T6/maps/mp/gametypes/_globallogic.gsc. A function exclusive to zombies called gamemode_callback_setup() also located in the mapname.gsc.Any main() in a script with the same name as the gametype.Any main() in a script with the same name as the map. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |