Simple MVM Revive Marker

Simple MVM Revive Marker v3

  • Hey you! Yes, you! Add images to your downloads, it's free! Use the orange "Manage Download Image" button in the top right.

Simple MVM Revive Marker v3

A simple way to spawn revive markers outside of MVM

This is a short script to spawn functional revive markers from MVM at will, without needing MVM logic in your map.

Setup:
  1. Add "IncludeScript("reviveMarker.nut")" to the script file you plan to call this script from
  2. Add an instance of the reviveMarker class to your script file (e.g. local cReviveMarker = reviveMarker())
  3. Call "spawnReviveMarker(player, respawnHealth)". "player" is the handle for the player you want to create a revive marker for, and "respawnHealth" is an optional parameter (you can leave it out or set it to -1) which lets you set the amount of health needed to revive a player.
  4. Thats it!
Notes:
  • This DOES NOT automatically spawn one of these on death, I leave that up to you (in case you want it to only spawn under specific circumstances)
  • The revive marker model does not have skins for the blue team, which will make this very confusing if used in PVP gamemodes (hopefully in the future me or someone else will make a variant of the model with a blue version)
  • Revive time increases with each revive per ROUND, this is vanilla behavior, but its important to know because most gamemodes have longer rounds than your average MVM wave. You can manually set the health needed to revive yourself, so it could be worthwhile to make your own variable for how many times a player has been revived and then reset it at your discretion.
  • Add-on to the above, you can calculate the health needed to revive by taking the max health of the player, dividing it by 2, and then adding 10 * the number of revives to it. (e.g. local reviveHealth = (maxHealth / 2) + (10 * numRevives))
  • In this version, the "cancel" button does nothing, I'm working on that though!
License
Free to use and modify. Credit is appreciated but not required.
Author
fiend
Downloads
235
Views
686
First release
Last update
Category
VScript

More downloads from fiend

Latest updates

  1. v3

    Moved revive marker to its own class to allow for easy extending and overwriting of the default script. This does make the initial setup a tiny bit more complicated. Added an extra optional parameter to spawnReviveMarker which lets you set the...
  2. v2

    Fixed players respawning while being revived. The way this is done is a bit hack-y since the game normally handles this, but that unfortunately doesn't work when the revive markers are spawned via vscript. If you get any weird things happening to...