Sign in to follow this  
Followers 0
Synd

[WIP] mp_deathrun_village

37 posts in this topic

radiation()
{
rads = getent("radzone", "targetname");

for(i = 0; i < rads.size; i++)
rads thread onEnter();
}


onEnter()
{
while(1)
{
self waittill("trigger", player);
player shellshock("radiation_low", 3);

if(isdefined(player.radcount))
player.radcount++;
else
player.radcount = 0;
if(player.radcount >= 80)
{
player suicide();
player.radcount = 0;
}

wait 0.5;
}
}

 

red is line 66

 

 

 

So where was that script stolen from?

Simple tutorial that i found ;)

0

Share this post


Link to post
Share on other sites

Well the script error comes from somewhere else. just post the whole script here

0

Share this post


Link to post
Share on other sites
radiation()
{
	rads = getent( "radzone", "targetname" );

	for( i = 0; i < rads.size; i++ )
	rads[i] thread onEnter();
}


onEnter()
{
	while(1)
	{
		self waittill( "trigger", player );
		player shellshock( "radiation_low", 3 );

		if( isdefined( player.radcount ) )
		player.radcount++;
		else
		player.radcount = 0;
		if( player.radcount >= 80 )
		{
			player suicide();
			player.radcount = 0;
		}
		wait 0.5;
	}
}

Haven't fixed anything, just your formatting was making me sick

0

Share this post


Link to post
Share on other sites

looks like an error in the main() area probably did thread name() instead of thread ();  :dave:

0

Share this post


Link to post
Share on other sites

Well i fixed it.

 

radiation()
{
	rads = getent( "radzone", "targetname" );

	for( i = 0; i < rads.size; i++ )
	rads[i] thread onEnter();
}


onEnter()
{
	while(1)
	{
		self waittill( "trigger", player );
		player shellshock( "radiation_low", 3 );

		if( isdefined( player.radcount ) )
		player.radcount++;
		else
		player.radcount = 0;
		if( player.radcount >= 80 )
		{
			player suicide();
			player.radcount = 0;
		}
		wait 0.5;
	}
}

Haven't fixed anything, just your formatting was making me sick

 

 

:mellow:

0

Share this post


Link to post
Share on other sites

Would be nice to know what the error was.

0

Share this post


Link to post
Share on other sites

Map has been released.

would add some mountains on the outside of the map. Looks so plain without :S

0

Share this post


Link to post
Share on other sites

would add some mountains on the outside of the map. Looks so plain without :S

 

Yeah, I'm planning to do a few updates in the future possibly, such as making the flying penis/tornado thing, and fix whatever glitches people find, so I may do that aswell.

0

Share this post


Link to post
Share on other sites

Updated download link, all known bugs fixed.

 

+New sniper room

+New secrets :)

-Last trap

0

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  
Followers 0