Is there any way to enable mvm upgrades on a non-mvm map?

BenCo

L5: Dapper Member
Dec 30, 2015
242
135
Currently making a jump map for the pyro's new jetpack. I figured the map will have two stages, one ofr normal use and the other should have the upgrade from mvm which lets the pyro use the jetpack a second time while in air. Is there anyway to enable this upgrade without creating an tf_logic_mann_vs_machine?
 

Egan

aa
Feb 14, 2010
1,375
1,721
Yeah it's not possible without a server plugin.

You can make the func_upgradestation in your map, and use the client command (through a point_clientcommand) currency_give to give cash to the player for use in the upgrade station, but seemingly without a tf_logic_mann_vs_machine present in the map on spawn these upgrades don't stick to the player.

There may end up being some hacky way to spoof that, I would look around for certain things how this plugin works on any map https://forums.alliedmods.net/showthread.php?t=214600 (its full zip includes the scripting/source files). Probably not for now though, unless valve wants to make it doable.

Maybe you could use a tf_logic_player_destruction to have mock 'currency' counters on each player, setting the points to win really high or just making it unwinnable some how else, and either:

  1. Using each func_capturezone's OnCapTeam1_PD type to give the whole team some buff, or maybe hit the !activator with a specific input that triggers condition-things, like FireUser1 - acquired on spawn/no targetname on the player.
  2. Using "OnRedScoreChanged <float> Send when score changes, and is a value representing total progress from [0..1]." detect how far along a team's score is and give them specific team buffs..

It wouldn't be 'mvm upgrades', but it could still give that feeling of acquiring upgrades by spending 'points'!
 

henke37

aa
Sep 23, 2011
2,075
515
The alternative is unfeasible, since it is generally not possible to perform the upgrades as seen in mvm with the existing entities.
 

BigfootBeto

Party Time 2.0!
aa
Jun 8, 2016
496
847
I made this jump map that uses dummy bots with money and upgrade stations. https://tf2maps.net/downloads/mass-production.5035/

You could do something similar, but instead of using a stage 2, just continue the same "stage" with the upgrade stations and bots available.