Author |
Topic: Shooting tanks in CoD SP |
(PFB)WOLF |
|
General Member Since: May 21, 2004 Posts: 178 Last: Jun 14, 2007 [view latest posts] |
|
|
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
|
|
|
|
(PFB)WOLF |
|
General Member Since: May 21, 2004 Posts: 178 Last: Jun 14, 2007 [view latest posts] |
|
|
|
(PFB)WOLF |
|
General Member Since: May 21, 2004 Posts: 178 Last: Jun 14, 2007 [view latest posts] |
|
|
|
(PFB)WOLF |
|
General Member Since: May 21, 2004 Posts: 178 Last: Jun 14, 2007 [view latest posts] |
|
|
|
(PFB)WOLF |
|
General Member Since: May 21, 2004 Posts: 178 Last: Jun 14, 2007 [view latest posts] |
|
|
|
(PFB)WOLF |
|
General Member Since: May 21, 2004 Posts: 178 Last: Jun 14, 2007 [view latest posts] |
|
|
|
(PFB)WOLF |
|
General Member Since: May 21, 2004 Posts: 178 Last: Jun 14, 2007 [view latest posts] |
|
|
|
new2this |
|
General Member Since: Jul 16, 2006 Posts: 96 Last: Nov 10, 2006 [view latest posts] |
|
|
|
Bob_The_Reclaimer |
|
General Member Since: Aug 5, 2006 Posts: 186 Last: Sep 12, 2008 [view latest posts] |
|
|
|
(PFB)WOLF |
|
General Member Since: May 21, 2004 Posts: 178 Last: Jun 14, 2007 [view latest posts] |
|
|
|