ADMINPRO PRO

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
sdlall
Sergeant Major
Posts: 110
Joined: Tue Mar 24, 2009 11:41 pm

ADMINPRO PRO

Post 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.
sdlall
Sergeant Major
Posts: 110
Joined: Tue Mar 24, 2009 11:41 pm

Post 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.
$oldier Of Ra
Lieutenant Colonel
Posts: 404
Joined: Sun Oct 16, 2005 7:16 pm
Location: Belgium
Contact:

Post 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.
Our official website: http://www.mohaairborne.co.cc
(Still accessible through http://mohaaclantb.tk and http://users.skynet.be/mohaaclantb/)

For all your bot needs!!!!

$oldier Of Ra.
Post Reply