ADMINPRO PRO
Posted: Tue Jul 14, 2009 12:07 am
Weird error came up when dm/mohdm4 loaded. Can not figure it out might just be a bad load.
while(local.player.DMweapon == NIL || local.player.DMweapon == "none") (weapon_limit/radar.scr, 11)
while(local.player^
^~^~^ Script Error: Field 'DMweapon' applied to NULL listener
now the script radar
has this
What is weird is that weapons limiter is set to 1 and this should have never run at least had on any other map. Maybe its the hexed .bsp for this map that lets you jump out windows? Only thing different on this map.
while(local.player.DMweapon == NIL || local.player.DMweapon == "none") (weapon_limit/radar.scr, 11)
while(local.player^
^~^~^ Script Error: Field 'DMweapon' applied to NULL listener
now the script radar
has this
Code: Select all
main:
if(level.run["weapons-limiter"] != "1"){end}
local.player = self
local.player forcetorsostate GET_WEAPON
local.team = local.player.dmteam
while(local.player.DMweapon == NIL || local.player.DMweapon == "none")
{
waitframe
}
local.weapon = local.player.DMweapon
while(isalive local.player && local.team == local.player.dmteam && local.player != NULL && local.player != NIL )
{
waitframe
}
if(level.weapons_inuse[local.weapon] != NIL)
{
level.weapons_inuse[local.weapon]--
}
if ( local.player != NULL && local.player != NIL )
{
local.player.DMweapon = "none"
}