Reverse MvM Beginners Guide: Difference between revisions

From SigMod
Jump to navigation Jump to search
No edit summary
Line 4: Line 4:


==Getting Started==
==Getting Started==
Because many maps were not designed for this mode, it is recommended that you go through your map of choice and remove unwanted map entities, cover up holes in bot spawn with [https://developer.valvesoftware.com/wiki/Prop_dynamic prop_dynamic], and generally prepare your map beforehand.  For the bulk of custom logic, a [https://developer.valvesoftware.com/wiki/Logic_auto logic_auto] in combination with [https://developer.valvesoftware.com/wiki/AddOutput AddOutputs] is recommended, as it will instantly trigger when a new wave loads.  For example, if your mission gives the blue team infinite ammo, it wouldn't hurt to remove redundant ammo packs from the map by adding this to your logic_auto:   
Because many maps were not designed for this mode, it is recommended that you go through your map of choice and remove unwanted map entities, cover up holes in bot spawn with [https://developer.valvesoftware.com/wiki/Prop_dynamic prop_dynamic], and generally prepare your map beforehand.  For the bulk of custom logic, a [https://developer.valvesoftware.com/wiki/Logic_auto logic_auto] in combination with [https://developer.valvesoftware.com/wiki/AddOutput AddOutputs] is recommended, as it will instantly trigger when a new wave loads.  For example, if your mission gives the blue team infinite ammo, it wouldn't hurt to remove redundant ammo packs from the map by adding this to your logic_auto:  <syntaxhighlight>
logic_auto
{
    "origin" "0 0 0"
    "targetname" "mainrelay"
    "OnMapSpawn" "item_ammopack*,Kill,,0,-1"
}
</syntaxhighlight>   


<code>"OnMapSpawn" "item_ammopack*,Kill,,0,-1"</code>
Many maps do not have gates or doors blocking the blue spawn area and will require you to add your own blockades.  This can be as simple as placing a prop in front of the spawn and killing it when the wave starts, or as complex as creating a moving gate using [https://developer.valvesoftware.com/wiki/Func_tracktrain func_tracktrain].  For our example, we'll be using a [https://developer.valvesoftware.com/wiki/Func_forcefield func_forcefield] to block off rottenburg spawn, an invisible that which can be disabled and enabled when wave start/end relays trigger using some basic AddOutputs.<syntaxhighlight>
 
PointTemplates [$SIGSEGV]
Many maps do not have gates or doors blocking the blue spawn area and will require you to add your own blockades.  This can be as simple as placing a prop in front of the spawn and killing it when the wave starts, or as complex as creating a moving gate using [https://developer.valvesoftware.com/wiki/Func_tracktrain func_tracktrain].  For our example, we'll be using a [https://developer.valvesoftware.com/wiki/Func_forcefield func_forcefield] to block off rottenburg spawn, an invisible wall that blocks blue players which can be disabled and enabled on wave start/end with some basic AddOutputs.
{
 
corelogic
For more complex maps with a lot of entities, it may be beneficial to strip away unnecessary decorative elements of the map to avoid hitting the edict limit.  move_rope and keyframe_rope for example can be safely removed if necessary.
{
NoFixup 1
logic_auto
{
"origin" "0 0 0"
"targetname" "mainrelay"
"OnMapSpawn" "item_ammopack*,Kill,,0,-1"
"OnMapSpawn" "wave_start_relay*,AddOutput,OnTrigger spawnbarrier:Disable:0:-1,0,-1"
"OnMapSpawn" "wave_finished_relay*,AddOutput,OnTrigger spawnbarrier:Enable:0:-1,0,-1"
}
}
forcefield
NoFixup 1
func_forcefield
{
"disablereceiveshadows" "0"
"origin" "2724.365479 -2303.941650 -143.139458" //rottenburg spawn
"angles" "0 90 0"
"renderamt" "255"
"rendercolor" "255 255 255"
"renderfx" "0"
"rendermode" "10"
"TeamNum" "2"
"targetname" "spawnbarrier"
"mins" "-300 -300 -300"
"maxs" "300 300 300"
"StartDisabled" "0"
}
}
}
</syntaxhighlight>''For more complex maps with a lot of entities, it may be beneficial to strip away unnecessary decorative elements of the map to avoid hitting the edict limit.  move_rope and keyframe_rope for example can be safely removed if necessary.''

Revision as of 19:56, 14 July 2021

Reverse MvM refers to a combination of custom keyvalues that flips the teams and win conditions. Instead of defending against hordes of robots, players are spawned on the blue team and must fight their way to the hatch and deliver the bomb. Designing missions around this concept can be very complex and requires heavy usage of Point Templates. It is highly recommended that you have a basic understanding of hammer and map logic beforehand.

PointTemplates required for Reverse to work can be found here

Getting Started

Because many maps were not designed for this mode, it is recommended that you go through your map of choice and remove unwanted map entities, cover up holes in bot spawn with prop_dynamic, and generally prepare your map beforehand. For the bulk of custom logic, a logic_auto in combination with AddOutputs is recommended, as it will instantly trigger when a new wave loads. For example, if your mission gives the blue team infinite ammo, it wouldn't hurt to remove redundant ammo packs from the map by adding this to your logic_auto:

logic_auto 
{
     "origin" "0 0 0" 
     "targetname" "mainrelay"
     "OnMapSpawn" "item_ammopack*,Kill,,0,-1"
}

Many maps do not have gates or doors blocking the blue spawn area and will require you to add your own blockades. This can be as simple as placing a prop in front of the spawn and killing it when the wave starts, or as complex as creating a moving gate using func_tracktrain. For our example, we'll be using a func_forcefield to block off rottenburg spawn, an invisible that which can be disabled and enabled when wave start/end relays trigger using some basic AddOutputs.

PointTemplates [$SIGSEGV]
{
	corelogic
	{
		NoFixup 1
		logic_auto 
		{
			"origin" "0 0 0" 
			"targetname" "mainrelay"
			"OnMapSpawn" "item_ammopack*,Kill,,0,-1"
				 
			"OnMapSpawn" "wave_start_relay*,AddOutput,OnTrigger spawnbarrier:Disable:0:-1,0,-1"
			"OnMapSpawn" "wave_finished_relay*,AddOutput,OnTrigger spawnbarrier:Enable:0:-1,0,-1"
		}
	}
	forcefield
	{  
		NoFixup 1
		func_forcefield
		{
			"disablereceiveshadows" "0"
			"origin" "2724.365479 -2303.941650 -143.139458" //rottenburg spawn
			"angles" "0 90 0"
			"renderamt" "255"
			"rendercolor" "255 255 255"
			"renderfx" "0"
			"rendermode" "10"
			"TeamNum" "2"
			"targetname" "spawnbarrier"
			"mins" "-300 -300 -300"
			"maxs" "300 300 300"
			"StartDisabled" "0"
		}
	}
}

For more complex maps with a lot of entities, it may be beneficial to strip away unnecessary decorative elements of the map to avoid hitting the edict limit. move_rope and keyframe_rope for example can be safely removed if necessary.