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

Members Online

»
0 Active | 91 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 MP Mapping
CoD 2 mapping and level design.
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: Shooting tanks in CoD SP
(PFB)WOLF
General Member
Since: May 21, 2004
Posts: 178
Last: Jun 14, 2007
[view latest posts]
Level 4
Category: CoD2 MP Mapping
Posted: Monday, Sep. 25, 2006 05:01 pm
Hi, I'm able to get jeeps, Tigers and shermans all drive about in the same map.

How ever, the Tiger only shoots at me, wen i move behind a wall, the Tiger then shoots at the Ai that jump form the American jeep. once they are dead, it focus's on me and constantly shoots the wall.

The sherman in the level just sits there and doesnt shoot at all.

Wot i am after is to be able to control the tanks, to shoot at each other first, then me if the tiger is still alive.

Any1 got any ideas.

I have been reading the Newvillers.gsc for help but most of the stuff i try never works, i am hopeless at Scripting, i only copy paste stuff i already seen on here mainly.

Here is my script i am using atm,

everything works fine, i just want the tanks to shoot each other, and not me and especially the Tiger.
main()
{
//*** Init Map
maps\_jeep::main("xmodel/vehicle_africa_jeep");
maps\_tiger::main("xmodel/vehicle_tiger_woodland_brush");
maps\_sherman::main("xmodel/vehicle_american_sherman");
maps\_load::main();
thread jeep();
thread tank_a();
thread tank_b();
}

jeep()
{

maps\_vehicle::scripted_spawn(1); // Spawns vehiclegroup 1

level.vehicle = getent("vehicle", "script_noteworthy");
path = getvehiclenode ("vehicle_start_path", "script_noteworthy");

level.vehicle attachPath(path);

//wait 2;

level.vehicle startPath();

level.vehicle waittill("reached_end_node");
level.vehicle notify ("unload");

// Uncomment these to blow up the jeep -- No guys flying around as they are already playing an animation :S
//wait 0.2;
//level.vehicle doDamage( level.vehicle.health + 200, (0,0,0) );
//level.vehicle notify ("death");
}

tank_a()
{

node = getvehiclenode("tiger_activate", "script_noteworthy");
node waittill("trigger");

tiger = getent("tiger", "script_noteworthy");
path = getvehiclenode ("tiger_start_node", "script_noteworthy");

tiger attachPath(path);

//wait 2;

tiger startPath();

tiger waittill("reached_end_node");
tiger notify ("unload");

// Uncomment these to blow up the jeep -- No guys flying around as they are already playing an animation :S
//wait 0.2;
//level.vehicle doDamage( level.vehicle.health + 200, (0,0,0) );
//level.vehicle notify ("death");
}

tank_b()
{

node = getvehiclenode("sherman_activate", "script_noteworthy");
node waittill("trigger");

sherman = getent("sherman", "targetname");
path = getvehiclenode ("sherman_start_node", "targetname");

sherman attachPath(path);

//wait 10;

sherman startPath();

sherman waittill("reached_end_node");
sherman notify ("unload");

// Uncomment these to blow up the jeep -- No guys flying around as they are already playing an animation :S
//wait 0.2;
//level.vehicle doDamage( level.vehicle.health + 200, (0,0,0) );
//level.vehicle notify ("death");


}

Cheers Wolf

Share |
(PFB)WOLF
General Member
Since: May 21, 2004
Posts: 178
Last: Jun 14, 2007
[view latest posts]
Level 4
Category: CoD2 MP Mapping
Posted: Tuesday, Sep. 26, 2006 05:03 pm
Bumped!

P.S cud an admin stick this in the SP section of CoD2 pls. even tho the title says CoD :P
Share |
(PFB)WOLF
General Member
Since: May 21, 2004
Posts: 178
Last: Jun 14, 2007
[view latest posts]
Level 4
Category: CoD2 MP Mapping
Posted: Tuesday, Sep. 26, 2006 05:59 pm
Ok, i fixed the problem. Added this script to the tiger thread and it shoots the sherman out then goes for me :D:D:D:D

level.vehicle setTurretTargetEnt( getent ("sherman","script_noteworthy"), ( 0, 0, 64 ) );
level.vehicle waittill( "turret_on_vistarget" );
wait 2;
level.vehicle FireTurret();

Wolfie
Share |
(PFB)WOLF
General Member
Since: May 21, 2004
Posts: 178
Last: Jun 14, 2007
[view latest posts]
Level 4
Category: CoD2 MP Mapping
Posted: Tuesday, Sep. 26, 2006 08:12 pm
Scratch my last post, wont work :(
Share |
(PFB)WOLF
General Member
Since: May 21, 2004
Posts: 178
Last: Jun 14, 2007
[view latest posts]
Level 4
Category: CoD2 MP Mapping
Posted: Thursday, Sep. 28, 2006 05:49 pm
Im sure theres a VERY CLEVER scripter out there who wants to help porr little old me out !!!! PLZ! :)
Share |
(PFB)WOLF
General Member
Since: May 21, 2004
Posts: 178
Last: Jun 14, 2007
[view latest posts]
Level 4
Category: CoD2 MP Mapping
Posted: Thursday, Sep. 28, 2006 10:05 pm
Im feeling pretty suicidal atm
Share |
(PFB)WOLF
General Member
Since: May 21, 2004
Posts: 178
Last: Jun 14, 2007
[view latest posts]
Level 4
Category: CoD2 MP Mapping
Posted: Monday, Oct. 2, 2006 07:20 pm
Still no luck, any1 else want to try?
Share |
new2this
General Member
Since: Jul 16, 2006
Posts: 96
Last: Nov 10, 2006
[view latest posts]
Level 3
Category: CoD2 MP Mapping
Posted: Monday, Oct. 2, 2006 07:24 pm
No wonder you have so many posts...
Share |
Bob_The_Reclaimer
General Member
Since: Aug 5, 2006
Posts: 186
Last: Sep 12, 2008
[view latest posts]
Level 4
Category: CoD2 MP Mapping
Posted: Monday, Oct. 2, 2006 08:09 pm
I don't know any thing that can help you with the script exept you might wanna take out the lines that say this...

// Uncomment these to blow up the jeep -- No guys flying around as they are already playing an animation :S

Remove that and if you are still having problems with it I can't help. Although I have an idea for a better scene.


Have the Tiger come around a corner and shoot the jeep. Then have a Sherman that was following you come up and fire and kill the tiger, then move on.
Share |
(PFB)WOLF
General Member
Since: May 21, 2004
Posts: 178
Last: Jun 14, 2007
[view latest posts]
Level 4
Category: CoD2 MP Mapping
Posted: Tuesday, Oct. 3, 2006 01:36 pm
Thats the problem I have m8. I "CANT" get the tanks to fire at each other?

Ps. the commented stuff is fine, that isnt causing any problems, ive already trialed and errored on it ;)
Share |
Restricted Access Topic is Locked
Page
Next Page
subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 MP 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

»