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

Members Online

»
0 Active | 85 Guests
Online:

LATEST FORUM THREADS

»
CoD: Battle Royale
CoD+UO Map + Mod Releases
Damaged .pk3's
CoD Mapping
heli to attack ai
CoD4 SP Mapping

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 2
Category: CoD2 SP Mapping
Call of Duty 2 single player mapping, scripting and everything single player.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Next Page
subscribe
Author Topic: Drones
Boltriflemaster
General Member
Since: Aug 22, 2006
Posts: 130
Last: Nov 7, 2008
[view latest posts]
Level 4
Category: CoD2 SP Mapping
Posted: Thursday, Aug. 2, 2007 01:44 pm
How can you add drones into your map? Ive looked in the _drones.gsc and found nothing but mindless code to make em work. I saw though that i think they must be spawned from a script_model. The rest im clueless. CAn anyone help? Thnx.
Share |
Boltriflemaster
General Member
Since: Aug 22, 2006
Posts: 130
Last: Nov 7, 2008
[view latest posts]
Level 4
Category: CoD2 SP Mapping
Posted: Thursday, Aug. 2, 2007 02:28 pm
Bump
Share |
The_Caretaker
General Member
Since: Jun 8, 2004
Posts: 11625
Last: Jul 7, 2009
[view latest posts]
Level 10
Category: CoD2 SP Mapping
Posted: Thursday, Aug. 2, 2007 06:44 pm
first of all, don't bump your posts so fast, some of us got lives and are not on this site 24/7, give us at least a day or so before you start bumping.

To answer your question, drones are just AI, there are tutorials on how to add AI to your map. Like the "AI Spawning" tutorial.
Share |
Boltriflemaster
General Member
Since: Aug 22, 2006
Posts: 130
Last: Nov 7, 2008
[view latest posts]
Level 4
Category: CoD2 SP Mapping
Posted: Friday, Aug. 3, 2007 12:42 am
Drones are AI? Uhhh...... i dont think so. I know what drones are. They are completely scripted AI that take up less resources and allow you to have more than the normal 32 max AI at each given moment. Max amount of drones is 9999 according to the _drones.gsc. Bascially im saying drones arent JUST ai. So, you need to spawn em like normal AI? That makes things easier but how do u do it? Is it a certain Key/Value? or a spawnflag?.
Share |
Capt.Com
General Member
Since: Nov 14, 2004
Posts: 879
Last: Oct 6, 2007
[view latest posts]
Level 7
Category: CoD2 SP Mapping
Posted: Friday, Aug. 3, 2007 05:15 pm
Boltriflemaster writes...
Quote:
Drones are AI? Uhhh...... i dont think so. I know what drones are. They are completely scripted AI that take up less resources and allow you to have more than the normal 32 max AI at each given moment. Max amount of drones is 9999 according to the _drones.gsc. Bascially im saying drones arent JUST ai. So, you need to spawn em like normal AI? That makes things easier but how do u do it? Is it a certain Key/Value? or a spawnflag?.


Quote:
Hey, this would be my first post to IWnation because i feel the true CoD2 mapping gods are here

[angryalien]
Share |
Boltriflemaster
General Member
Since: Aug 22, 2006
Posts: 130
Last: Nov 7, 2008
[view latest posts]
Level 4
Category: CoD2 SP Mapping
Posted: Friday, Aug. 3, 2007 05:31 pm
Lol Capt.Com

hey man, thats where the CoD2 Devs are at lol. They are the "gods" lol.
No offense modsonline, im still wit yall.[biggrin]
Share |
The_Caretaker
General Member
Since: Jun 8, 2004
Posts: 11625
Last: Jul 7, 2009
[view latest posts]
Level 10
Category: CoD2 SP Mapping
Posted: Saturday, Aug. 4, 2007 11:30 am
Be there Gods or not...

As far as I can tell from the spawn functions in the _drones.gsc file, you can spawn drones from anything..

Code:

drone_allies_spawngroup(spawnpoint, qFakeDeath, spawnSize, qSightTrace)
{
	spawncount = spawnpoint.size;
	if (isdefined(spawnSize))
	{
		spawncount = spawnSize;
		spawnpoint = array_randomize(spawnpoint);
	}
	
	for (i=0;i<spawncount;i++)
		spawnpoint[i] thread drone_allies_spawn(qFakeDeath, qSightTrace);
}


So set the array of spawnpoints for your drones (this can be any entity for as far as I can tell) and a spawnsize and you should be good to go..

Share |
Boltriflemaster
General Member
Since: Aug 22, 2006
Posts: 130
Last: Nov 7, 2008
[view latest posts]
Level 4
Category: CoD2 SP Mapping
Posted: Sunday, Aug. 5, 2007 06:05 pm
Thnx, ill give this code a try[biggrin]
Share |
Boltriflemaster
General Member
Since: Aug 22, 2006
Posts: 130
Last: Nov 7, 2008
[view latest posts]
Level 4
Category: CoD2 SP Mapping
Posted: Sunday, Aug. 5, 2007 06:05 pm
Do i have to like, give it a certain targetname or some form of name to the array?
How do i set a spawnsize? (lol stupid questions)
Finally, what makes them spawn? A trigger, script?

edited on Aug. 5, 2007 02:07 pm by Boltriflemaster
Share |
The_Caretaker
General Member
Since: Jun 8, 2004
Posts: 11625
Last: Jul 7, 2009
[view latest posts]
Level 10
Category: CoD2 SP Mapping
Posted: Sunday, Aug. 5, 2007 06:50 pm
No, you don't need to nake the spawnpoints something particular, as long as you use it as an argument to call the spawn fuction.
Spoawnsize is just a number. 25 for instance.
Whatever you want to use. You've got to call the spawn function from a script.. so most likely you'll have a trigger in your map somewhere, which. when triggered, causes the script to run the spawn function.

However, to be honest, I've not seen this function being used in any of the stock maps.
Share |
Restricted Access Topic is Locked
Page
Next Page
subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 SP 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

»