Wager maps in custom gamemode
#1
Hi, i want to modify my custom gamemode to run the maps like in the wager maps, i mean the wager maps are smaller variants with some areas blocked and im wondering how can i make the maps appear like this? Thanks in advance.

#2
To get small wager like maps, add this to onStartGameType() under level.spawnMaxs = ( 0, 0, 0 ); in your own gametype.gsc:

Code:
newSpawns = GetEntArray( "mp_wager_spawn", "classname" ); if (newSpawns.size > 0) { maps\mp\gametypes\_spawnlogic::addSpawnPoints( "allies", "mp_wager_spawn" ); maps\mp\gametypes\_spawnlogic::addSpawnPoints( "axis", "mp_wager_spawn" ); } else { maps\mp\gametypes\_spawnlogic::addSpawnPoints( "allies", "mp_dm_spawn" ); maps\mp\gametypes\_spawnlogic::addSpawnPoints( "axis", "mp_dm_spawn" ); } allowed[0] = "gun"; maps\mp\gametypes\_gameobjects::main(allowed);
That will make sure you have the spawn points of the smaller map and the smaller map itself.

Make sure you also remove the addspawnpoints functions and some others from the onStartGameType() such as:
Code:
maps\mp\gametypes\_spawnlogic::placeSpawnPoints maps\mp\gametypes\_spawnlogic::addSpawnPoints level.spawn_axis_start= maps\mp\gametypes\_spawnlogic::getSpawnpointArray level.spawn_allies_start= maps\mp\gametypes\_spawnlogic::getSpawnpointArray allowed[0] = maps\mp\gametypes\_gameobjects::main(allowed);
Would like to make a donation? Click here

#3
Oh thanks, now it works fine ^^



Possibly Related Threads…
Thread Author Replies Views Last Post
  Black Ops 2 Custom background? jotape99 10 18,318 10-29-2013, 07:22
Last Post: xInfinity.
  Problem with Rain Effects on Maps mitchhacker 5 7,578 10-22-2013, 00:46
Last Post: mitchhacker
  Custom xanims DidUknowiPwn 8 9,851 08-28-2013, 08:17
Last Post: RaZ
  [Request] no ammo for infected gamemode ExoGamer* 8 7,879 08-15-2013, 18:59
Last Post: Dr3am95
  Help Make ac130 shoot custom bullets Ra3shed 0 3,687 07-23-2013, 13:02
Last Post: Ra3shed
Star [Release] 8 new Zombie maps for ItsZombieMod mahafy00 31 40,234 07-20-2013, 07:28
Last Post: benm4a
  [Tutorial] Custom gametype HUD iAegle 17 20,697 07-14-2013, 01:16
Last Post: Nekochan
Video Custom Facepaints? Cuddlyedits 5 6,945 07-01-2013, 14:58
Last Post: iPaddie
  Help dedicated servers and custom dvars mattyman 0 3,406 06-22-2013, 07:33
Last Post: mattyman
  [Release] Clean Maps of DObjs Yamato 13 13,237 06-15-2013, 10:51
Last Post: Yamato

Forum Jump:


Users browsing this thread:
2 Guest(s)

Powered By MyBB, © 2002-2026 Melroy van den Berg.