• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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.
  Reply
#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
[-] The following 1 user says Thank You to Cyborgking for this post:
  • JariZ
  Reply
#3
Oh thanks, now it works fine ^^
  Reply


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

Forum Jump:


Users browsing this thread: 1 Guest(s)