[MvM] Teleportation of bots

Waffe

L5: Dapper Member
Dec 2, 2012
230
203
So I plan on creating a semi-non-liniar MvM map where the bomb can enter (at least) from two different ways to the playable area.

The problem is the item_teamflag. Since doing it with two item_teamflags doesn't sound like such a smart idea (by me, no idea if it really would work), can a single item_teamflag be teleported somewhere else?

Is teleporting the bombcarrier & co. to the other entrance point a better idea? Does the AI react to teleporting?
 

PoignardAzur

L2: Junior Member
Mar 21, 2013
92
9
Is teleporting the bombcarrier & co. to the other entrance point a better idea? Does the AI react to teleporting?
Have you considered reverse-engineering the Coaltown map ? I don't know how the death pits work, but with a bit of luck they may be based on a teleporter, and then...
 

WolfKit

L3: Member
Jun 26, 2012
128
83
Have you considered reverse-engineering the Coaltown map ? I don't know how the death pits work, but with a bit of luck they may be based on a teleporter, and then...

From my memory, Coaltown has a brush entity (forget which) that resets the bomb on trigger, same thing that's used in ctf maps with deathpits. It just teleports the flag back to the flag spawnpoint.
But the bomb doesn't actually appear at its spawnpoint, it's directly spawned onto a bot. Take a look at Mannworks, the bombs (there's a seperate flag for the ironman mission that is activated by the popfile) are actually in a small box outside of the skybox.
 

UKCS-Alias

Mann vs Machine... or... Mapper vs Meta?
aa
Sep 8, 2008
1,264
816
Bots already spawn at a random spawnpoint (place a spawnpoint with the same name on either the left and right side and make it spawn on that name). And whatever spawnpoint they start at the bomb also starts at.

This already can make it random enough. And even though PoignardAzur said coaltown, mannworks is a far more logical choise due to having 2 spawnpoints (and the sniper spawn can even be used as a 3rd alternative although it doesnt support random there).
 

PoignardAzur

L2: Junior Member
Mar 21, 2013
92
9
From my memory, Coaltown has a brush entity that resets the bomb on trigger
Diantre :/
But the bomb doesn't actually appear at its spawnpoint, it's directly spawned onto a bot.
That's strange: there is no such thing in mvm_example : the bomb is spawned between robot spawnpoints :confused:
Take a look at Mannworks, the bombs (there's a seperate flag for the ironman mission that is activated by the popfile)
Wait, wat ?
 

WolfKit

L3: Member
Jun 26, 2012
128
83
Diantre :/

That's strange: there is no such thing in mvm_example : the bomb is spawned between robot spawnpoints :confused:

Wait, wat ?

Well, they don't NEED to stick the bomb outside of the map, but it doesn't need to be in the robot spawn either.
And yes there are two bombs in Mannworks. The ironman flag (which does have a reset timer) is disabled by default. The ironman popfile then triggers a different entity on wave start than the regular popfiles do, and this entity enables the ironman bomb and disables the regular bomb (while also triggering the bomb path nav_avoids into a different configuration).