Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 12 Guests
Online:

LATEST FORUM THREADS

»
warfare
CoD4 Map + Mod Releases
Voting menu on maps
CoD+UO General
Hauling 911
CoDBO3 General

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty
Category: CoDUO Mapping
CoD United Offensive mapping and level design.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Previous Page Next Page
subscribe
Author Topic: cheat stoppers in mp_kursk
UnclePhil
Preferred PLUS Member
Since: Aug 22, 2006
Posts: 171
Last: Jan 2, 2011
[view latest posts]
Level 4
Category: CoDUO Mapping
Posted: Saturday, Apr. 18, 2009 03:32 pm
lol
Share |
.KiLL3R.
General Member
Since: Oct 26, 2006
Posts: 1437
Last: Jul 3, 2017
[view latest posts]
Level 8
Category: CoDUO Mapping
Posted: Saturday, Apr. 18, 2009 05:40 pm
You can't spawn triggers in CoD1 / UO :P
Share |
UnclePhil
Preferred PLUS Member
Since: Aug 22, 2006
Posts: 171
Last: Jan 2, 2011
[view latest posts]
Level 4
Category: CoDUO Mapping
Posted: Saturday, Apr. 18, 2009 05:43 pm
i knew you were gonna say that zak lol . . . . .any ideas then?
Share |
GomerPyle
General Member
Since: Oct 1, 2006
Posts: 357
Last: Jul 14, 2011
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoDUO Mapping
Posted: Saturday, Apr. 18, 2009 11:37 pm
Well, not that this is worth anything, but..... The way I see this you would first have to get the location(x,y,z), and the size of the area you wish to block. Then you would have to monitor the location of all the players and compare that to the area you wish to block. If a player crosses that line then you'd kill them with the script. I'm no good at writing script but that's the way I'd approach it. Seems like a lot of program running in the background though. Gee I miss Grassy.[ohwell]
Share |
.KiLL3R.
General Member
Since: Oct 26, 2006
Posts: 1437
Last: Jul 3, 2017
[view latest posts]
Level 8
Category: CoDUO Mapping
Posted: Sunday, Apr. 19, 2009 12:15 am
Modified INSANEs code a little, just call this up with

thread autokill();

You'll also have to change the xmin / max ect to suit kursk

Code:

autokill()
{
	xmin = -1300;
	xmax = 1935;
	ymin = -2502;
	ymax = 2530;
	zmin = -130;
	zmax = 999999;

	while(1)
	{
		wait 0.1;
		players = getentarray("player","classname");
		for(i=0;i< player.size;i++)
		{
			if(players[i].sessionstate != "playing")
				continue;

			so0 = int(players[i].origin[0]);
			so1 = int(players[i].origin[1]);
			so2 = int(players[i].origin[2]);

			if(so0 < xmin || so0 > xmax || so1 < ymin || so1 > ymax || so2 < zmin || so2 > zmax)
			{
				players[i] suicide();
				players[i] iprintlnbold("You are not allowed to go there.");
			}
		}
	}
}


edited on Apr. 18, 2009 08:17 pm by .KiLL3R.
Share |
_INSANE_
General Member
Since: Nov 7, 2008
Posts: 352
Last: Jul 10, 2011
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoDUO Mapping
Posted: Sunday, Apr. 19, 2009 02:43 am
Should he remove Int() ?

I believe when he first tested it, it said that CodUO didn't support the Int() function

I wouldn't know for sure, i've only scripted in cod4
Share |
UnclePhil
Preferred PLUS Member
Since: Aug 22, 2006
Posts: 171
Last: Jan 2, 2011
[view latest posts]
Level 4
Category: CoDUO Mapping
Posted: Sunday, Apr. 19, 2009 08:51 am
hmmm still won't? this is what it says when i do the developer 1/devmap mp_kursk ******script compile error****** unknown (builtin) function 'int' : (file 'maps\mp\mp_kursk.gsc'. line 170) so0 = int(players.origin[0]); like insane says, is it the int() thing? [crazy]
Share |
_INSANE_
General Member
Since: Nov 7, 2008
Posts: 352
Last: Jul 10, 2011
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoDUO Mapping
Posted: Sunday, Apr. 19, 2009 08:59 am
Yeah... try this..

Code:
autokill()
{
	xmin = -1300;
	xmax = 1935;
	ymin = -2502;
	ymax = 2530;
	zmin = -130;
	zmax = 999999;

	while(1)
	{
		wait 0.1;
		players = getentarray("player","classname");
		for(i=0;i< player.size;i++)
		{
			if(players[i].sessionstate != "playing")
				continue;

			so0 = players[i].origin[0];
			so1 = players[i].origin[1];
			so2 = players[i].origin[2];

			if(so0 < xmin || so0 > xmax || so1 < ymin || so1 > ymax || so2 < zmin || so2 > zmax)
			{
				players[i] suicide();
				players[i] iprintlnbold("You are not allowed to go there.");
			}
		}
	}
}
Share |
UnclePhil
Preferred PLUS Member
Since: Aug 22, 2006
Posts: 171
Last: Jan 2, 2011
[view latest posts]
Level 4
Category: CoDUO Mapping
Posted: Sunday, Apr. 19, 2009 09:42 am
ok's on it [wink]
Share |
UnclePhil
Preferred PLUS Member
Since: Aug 22, 2006
Posts: 171
Last: Jan 2, 2011
[view latest posts]
Level 4
Category: CoDUO Mapping
Posted: Sunday, Apr. 19, 2009 09:52 am
Nope [banghead] this is what it says now ******script runtime error******size cannot be applied to underfine: (file 'maps\mp\mp_kursk.gsc'. line 165)for(i=0;i< player.size;i++) calledfrom: (file 'maps\mp\mp_kursk.gsc'. line 163) wait 0.1;
'any wiser' lol i aint, thats for sure!!

Phil

edited on Apr. 19, 2009 05:53 am by UnclePhil
Share |
Restricted Access Topic is Locked
Page
Previous Page Next Page
subscribe
MODSonline.com Forums : Call of Duty : CoDUO Mapping

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»