Page 1 of 1

ADMINPRO PRO

Posted: Tue Jul 14, 2009 12:07 am
by sdlall
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

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"
	}
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.

Posted: Tue Jul 14, 2009 4:34 am
by sdlall
After further looking at qconsole I am thinking it is because people left but it just spams and spams through out this map each time it runs.

Posted: Tue Jul 14, 2009 5:16 pm
by $oldier Of Ra
Odd, it seems like the script isn't being activated by the statefile. Remove any other file which contains custom states from your main/

It cannot be because people leave, the script only gets activated in a state where the player must be alive. The chances of a player leaving in that split second interaction between the states and that script is almost nihil. Even if it was, the console would only whine once.