mapvision fix

This commit is contained in:
INeedBots
2020-09-23 13:55:11 -06:00
parent 7c4bb2e8a8
commit 60cfeb84bb
7 changed files with 41 additions and 26 deletions

View File

@ -1,6 +1,18 @@
#include common_scripts\utility;
#include maps\mp\gametypes\_hud_util;
/*
Returns the map's current vision, so its overridable.
*/
getMapVision()
{
vision = getDvar("mapname");
if (isDefined(level.nukeVision))
vision = level.nukeVision;
return vision;
}
exploder_sound()
{
if ( isdefined( self.script_delay ) )
@ -47,7 +59,7 @@ loadModel(info)
=============
///ScriptDocBegin
"Name: delayThread( <delay>, <function>, <arg1>, <arg2>, <arg3>, <arg4> )"
"Summary: Delaythread is cool! It saves you from having to write extra script for once off commands. Note you don<6F>t have to thread it off. Delaythread is that smart!"
"Summary: Delaythread is cool! It saves you from having to write extra script for once off commands. Note you don<6F>t have to thread it off. Delaythread is that smart!"
"Module: Utility"
"MandatoryArg: <delay> : The delay before the function occurs"
"MandatoryArg: <delay> : The function to run."