Momentum is a standalone, single player (with multiplayer elements) mod, crafted carefully to mimic Counter Strike: Source's movement mechanics, optimized for bunnyhopping and surfing.

Post tutorial Report RSS Using mom_zone_* commands

Simple guide about how to use the mom_zone_* in-game commands to build map zones (So you don't have to decompile old maps)

Posted by on - Basic Mapping/Technical

Getting started

First of all, you probably want to ease everything by executing zoneedit.cfg, which includes useful binds (for commodity). So, go ahead and type into the console: (It is not recommened if you use custom binds, as this will reset them. We're looking into a way of making this reversible)

exec zoneedit

If you don't want to execute the custom cfg, make sure activate the zone editing, which is done by inputting:

mom_zone_edit 1

With it, zone editing is activated.


Firsts steps: Setting default values

When building a zone, the majority of its special values can be set in a per-zone bassis, but it's still useful to have good default values for them, so let's start setting them. We have some:

mom_zone_defzone

  • It accepts start/end/stage and it's used if when creating the zone, a type is not specified.
    • start/end will create a starting zone (It will warn you if another starting zone is already placed. We will see later how to ignore it and create another starting zone anyways)
    • stage creates a new stage. There is a hard limit of 64 stages to be created.
    • DEFAULT: start

mom_zone_start_limitspeedmethod

  • Specific to start zone type, dictates how the velocity is check:
    • 0 takes into account player z-velocity
    • 1 ignores z-velocity.
    • DEFAULT: 1

mom_zone_start_maxbhopleavespeed

  • Specific to start zone type, dictates how fast the player can leave the start zone when bunnyhopping. To disable speed check, set a value lower than 0:
    • DEFAULT: 290 (an approximation of the maximum preestrafe value)

mom_zone_stage_num

  • Specific to stage zone type, dictates what number the stage will be:
    • 0 searches for the next available stage number
    • You can also set one, but has to be then greater than 2
    • DEFAULT: 0

mom_zone_ignorewarning

  • Set to 1 to be able to create more than 1 start zone.

mom_zone_grid

  • Sets the grid size
    • 0 to disable the grid
    • DEFAULT: 8

Creating zones

The process is quite simple.

mom_zone_cancel
  • If you wish to cancel the creation of the current zone on the middle of its marking, by inputting this command (Or pressing mouse2 if the cfg has ben executed) will cancel the zone.
mom_zone_mark

Once we have choosen where to start the zone, we use this command to mark its first corner (Or pressing mouse1 if zoneedit.cfg has been executed)

Next, we do the same for the opposite corner. When the command is inputted again, the base is created, and now we must set the height, also by inputting the same command once we get the desired height. In this third input, the command allows start/end/stage as arguments (If not declared, then the value of mom_zone_defzone will be used)

Congrats! You have made your first zone.

Now repeat this process for end and as many stage as you want. Once

If it's a start zone, then you can use one more command:

mom_zone_start_setlook
  • Where to reset the view angles to when restarting. No reset happens if this command is not issued

  • We'll bring this behaviour to stage zones as well, but for now, only start zone has it.

    • Accepts the yaw rotation in degrees as its argument
    • DEFAULT: Player's current view angles

To delete zones, use

mom_zone_delete
  • Deletes all the ocurrences of the desired zone type.
    • Accepts start/stop/stage or an entity index (NOT an stage number)

Finaly, to save your zones, use

mom_zone_generate

which will save your new zones between sessions


Handy commands

mom_zone_zoomin
mom_zone_zoomout

With this, you can decrease/increase the maximum reticle distance (mousewheelup / mousewheeldown if you have executed the cfg)

Final words

If you have any question regarding this topic, or any other (as long as it's somehow related to Momentum), don't hesitate on contacting us on momentum-mod.org/contact


Momentum Mod Dev team

Post comment Comments
Guest
Guest - - 691,530 comments

How do I save the zones I've made? Once sv_cheats is set to 1 I can't get any times unless I reload, and when I do that the zones get reset. Or is saving not a feature atm?

Reply Good karma Bad karma0 votes
Gocnak Creator
Gocnak - - 4 comments

I believe the command you're looking for is "mom_zone_generate". This article will be updated after the Alpha test, when we revamp the Zone creation tool found in the game.

Reply Good karma+1 vote
Guest
Guest - - 691,530 comments

This comment is currently awaiting admin approval, join now to view.

Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: