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

Members Online

»
1 Active | 10 Guests
Online:

LATEST FORUM THREADS

»
Kharkov xmodels
CoD+UO General
Node is floating???
CoD4 SP Mapping
new scripter cod4
CoD4 Scripting
[Release]SP East Prussian ...
CoD2 Map + Mod Releases

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 4
Category: CoD4 SP Mapping
CoD 4 mapping and level design for single player.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, supersword, playername, novemberdobby
Latest Posts
Subscribed Posts
Search
Restricted Access Restricted Access subscribe
Author Topic: What went wrong?
SPi
General Member
Since: Jul 4, 2012
Posts: 225
Last: Jun 19, 2013
[view latest posts]
Level 4
Category: CoD4 SP Mapping
Posted: Thursday, Aug. 30, 2012 08:14 am
I have followed this tutorial step by step .
http://modsonline.com/Tutorials-read-658.html

and when i compile my ff it says that "rawfile,mapsmp_utility.gsc"
is missing and when i put it in the rawfile it says in the ff compile that could not open it [confused]
help ( my map is sp )

This is not urgent but i could use some help. Id like your help in that forum http://modsonline.com/Forums-top-163335.html rather than this one right now.
Share |
Tally
General Member
Since: Apr 21, 2005
Posts: 819
Last: Oct 26, 2012
[view latest posts]
Level 7
Category: CoD4 SP Mapping
Posted: Thursday, Aug. 30, 2012 08:55 am
SPi writes...
Quote:
I have followed this tutorial step by step .
http://modsonline.com/Tutorials-read-658.html

and when i compile my ff it says that "rawfile,mapsmp_utility.gsc"
is missing and when i put it in the rawfile it says in the ff compile that could not open it [confused]
help ( my map is sp )

This is not urgent but i could use some help. Id like your help in that forum http://modsonline.com/Forums-top-163335.html rather than this one right now.


In the tutorial, there is a syntax (spelling) error:

The tutorial has this:

Code:
self mapsmp_utility::triggerOn();


When it should be this:

Code:
self maps/mp/_utility::triggerOn(); //<--- note the slash "/" after each folder 


Share |
SPi
General Member
Since: Jul 4, 2012
Posts: 225
Last: Jun 19, 2013
[view latest posts]
Level 4
Category: CoD4 SP Mapping
Posted: Thursday, Aug. 30, 2012 01:16 pm
will there be any issue if my map is singleplay[confused]er??
Share |
SPi
General Member
Since: Jul 4, 2012
Posts: 225
Last: Jun 19, 2013
[view latest posts]
Level 4
Category: CoD4 SP Mapping
Posted: Thursday, Aug. 30, 2012 01:22 pm
is this right becouse i get bad syntax in one of these lines we talked about

Code:
main()
{
	thread player_closing_doors();
}

player_closing_doors()
{
	doors = getentarray("door_trig1","targetname");
	for(i=0; i<doors.size; i++)
	{
		doors[i] thread door_think();
	}
}

door_think()
{
   self.doormoving = false;
   self.doorclosed = true;
   self.doormodel = getent(self.target, "targetname");

	while(1)
	{
		self waittill("trigger");
		if(!self.doormoving)
		{
			self thread door_move();
		}
   }
}

door_move()
{
	self.doormoving = true;
	if(self.doorclosed)
	{
		self maps/mp/_utility::triggerOff();
		self.doormodel playsound("metal_open");
		self.doormodel rotateyaw(self.count, 2, 0.5, 0.5);
		self.doormodel waittill("rotatedone");
		self maps/mp/_utility::triggerOn();
		self.doorclosed = false;
	}
	else
	{
		self maps/mp/_utility::triggerOff();
		self.doormodel playsound("metal_close");
		self.doormodel rotateyaw((self.count * -1), 2, 0.5, 0.5);
		self.doormodel waittill("rotatedone");
		self maps/mp/_utility::triggerOn();
		self.doorclosed = true;
	}
	self.doormoving = false;
}
Share |
Tally
General Member
Since: Apr 21, 2005
Posts: 819
Last: Oct 26, 2012
[view latest posts]
Level 7
Category: CoD4 SP Mapping
Posted: Thursday, Aug. 30, 2012 01:51 pm
try this - I copied the functions from maps\mp\_utility.gsc to the foot of the code:

Code:
main()
{
	thread player_closing_doors();
}

player_closing_doors()
{
	doors = getentarray("door_trig1","targetname");
	for(i=0; i<doors.size; i++)
	{
		doors[i] thread door_think();
	}
}

door_think()
{
   self.doormoving = false;
   self.doorclosed = true;
   self.doormodel = getent(self.target, "targetname");

	while(1)
	{
		self waittill("trigger");
		if(!self.doormoving)
		{
			self thread door_move();
		}
	}
}

door_move()
{
	self.doormoving = true;
	if(self.doorclosed)
	{
		self triggerOff();
		self.doormodel playsound("metal_open");
		self.doormodel rotateyaw(self.count, 2, 0.5, 0.5);
		self.doormodel waittill("rotatedone");
		self triggerOn();
		self.doorclosed = false;
	}
	else
	{
		self triggerOff();
		self.doormodel playsound("metal_close");
		self.doormodel rotateyaw((self.count * -1), 2, 0.5, 0.5);
		self.doormodel waittill("rotatedone");
		self triggerOn();
		self.doorclosed = true;
	}
	self.doormoving = false;
}

triggerOff()
{
	if (!isdefined (self.realOrigin))
		self.realOrigin = self.origin;

	if (self.origin == self.realorigin)
		self.origin += (0, 0, -10000);
}

triggerOn()
{
	if (isDefined (self.realOrigin) )
		self.origin = self.realOrigin;
}
Share |
SPi
General Member
Since: Jul 4, 2012
Posts: 225
Last: Jun 19, 2013
[view latest posts]
Level 4
Category: CoD4 SP Mapping
Posted: Friday, Aug. 31, 2012 02:56 am
Thank you so much that was very importand Thank you again :D

[jumping] [thumbs_up] [biggrin] [lol]
Share |
SPi
General Member
Since: Jul 4, 2012
Posts: 225
Last: Jun 19, 2013
[view latest posts]
Level 4
Category: CoD4 SP Mapping
Posted: Friday, Aug. 31, 2012 03:03 am
A last question is there any way of making more than one doors usable?

3 specificly but each one open of its own.(not open all together)[biggrin]
Share |
SPi
General Member
Since: Jul 4, 2012
Posts: 225
Last: Jun 19, 2013
[view latest posts]
Level 4
Category: CoD4 SP Mapping
Posted: Saturday, Sep. 1, 2012 12:35 am
I managed this out
Share |
Restricted Access Restricted Access subscribe
MODSonline.com Forums : Call of Duty 4 : CoD4 SP Mapping

Latest Syndicated News

»
Codutility is for sale!
Seems like a plan to save Codutility ..Quote:Well guys I heard what you said...
Codutility is for sale!
Well as modding dies, so does the sites that support it.. Its a sad sad day,...
Codutility is for sale!
Quote:Codutility is for sale! Yes, you read well. Codutility ( sites/do...
Why console gaming is dying
Quote:Consider this: Dedicated gaming sales — including living-room consoles...
Devs: Games are being dumb...
Click 'read more' to view the contents of this post.

Partners & Friends

»