09.03.2012, 15:51
Hi guys,
I'm working on a new gamemode where I'd like to have different maps each round and each x rounds a random minigame. The admin system, maps, minigames and main gamemode will all be in one gamemode file. The next map/minigame can be forced with a command and the ID will be stored in mySQL. I was thinking about putting a script in the onGamemodeInit callback (or maybe in the main() thingy?) loading the next map ID from mysql and then loading the correct objects/spawnlocations for that map.
Is this a good idea or will this cause a huge amount of lag?
Also, where do I put the script? Under ongamemodeinit or under main?
Thanks
I'm working on a new gamemode where I'd like to have different maps each round and each x rounds a random minigame. The admin system, maps, minigames and main gamemode will all be in one gamemode file. The next map/minigame can be forced with a command and the ID will be stored in mySQL. I was thinking about putting a script in the onGamemodeInit callback (or maybe in the main() thingy?) loading the next map ID from mysql and then loading the correct objects/spawnlocations for that map.
Is this a good idea or will this cause a huge amount of lag?
Also, where do I put the script? Under ongamemodeinit or under main?
Thanks