Thread Rating:
  • 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
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 12,438 10-29-2013, 07:22
Last Post: xInfinity.
  Problem with Rain Effects on Maps mitchhacker 5 4,860 10-22-2013, 00:46
Last Post: mitchhacker
  Custom xanims DidUknowiPwn 8 7,075 08-28-2013, 08:17
Last Post: RaZ
  [Request] no ammo for infected gamemode ExoGamer* 8 5,548 08-15-2013, 18:59
Last Post: Dr3am95
  Help Make ac130 shoot custom bullets Ra3shed 0 2,729 07-23-2013, 13:02
Last Post: Ra3shed
Star [Release] 8 new Zombie maps for ItsZombieMod mahafy00 31 33,069 07-20-2013, 07:28
Last Post: benm4a
  [Tutorial] Custom gametype HUD iAegle 17 15,348 07-14-2013, 01:16
Last Post: Nekochan
Video Custom Facepaints? Cuddlyedits 5 4,551 07-01-2013, 14:58
Last Post: iPaddie
  Help dedicated servers and custom dvars mattyman 0 2,515 06-22-2013, 07:33
Last Post: mattyman
  [Release] Clean Maps of DObjs Yamato 13 9,423 06-15-2013, 10:51
Last Post: Yamato

Forum Jump:


Users browsing this thread:
2 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.