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

Members Online

»
0 Active | 111 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

Tutorials

»
CoD Mapping
ratings:
Awful Rating
Poor Rating
Average Rating
Good Rating
Excellent Rating
How to make Stukas move and shoot!
Versions: You must be logged in to view history.

Simple and easy to follow.

By: Ingvar_Dias



It's been almost 10 years since this game came out! Even today, I'm trying to take all the juice from this orange.

This said, I always wanted to know how to make the Stukas shoot!

After spending 2 days with hundreds of tries, I've finnaly reached the light!

 

Step 1

So put the basic things onto your map.

Then, right click on the grid and select Script -> Vehicle. Chosse "vehicle_plane_stuka".

Give it a targetname of airplane and a vehicletype stuka.

It should look like this:

Classname

script_vehicle

Model

xmodel/vehicle_plane_stuka

targetname

airplane

vehicletype

stuka

 

 

Step 2

 

To prevent the plane to stay static, let's put the path so the plane will move.

Right click on the grid and select info -> vehicle_node

Put a targetname of plane and check the "START_NODE", put a speed of X (It's up to you to choose the speed)

Classname

info_vehicle_node

spawnflags

1

speed

20

targetname

plane

 

Put all the vehicle_node's you need to make the path to your plane.

 

 

Step 3


Now for the Script, create 2 txt files and name them Stuka.gsc and Stuka_fx.gsc (I named my maps this way, since it's a test. Name them with your map name)

 

On your Stuka_fx.gsc put these lines:

 

main()
{

precacheFX();

}


precacheFX()
{
// Mg42 effects from the planes
    level.mg42_effect = loadfx ("fx/muzzleflashes/mg42hv.efx");
    level.mg42_effect2 = loadfx ("fx/muzzleflashes/mg42hv_nosmoke.efx");
   
}

 

On your Stuka.gsc put these lines:

 

#using_animtree("generic_human");
main()
{
    maps_load::main();
    maps_stuka::main();
    maps_mg42::main();
    maps_utility::fire_effect ( source )


    mapsstuka_fx::main();
    level thread plane();

}

plane()
{

plane = getent ("airplane","targetname");
path = getvehiclenode ("plane","targetname");
plane attachPath (path);
plane maps_stuka::init();
plane startPath();
plane thread plane_quake();
maps_stuka::shoot_guns();
plane waittill ("reached_end_node");

}


plane_quake()
{
    while (1)
    {
        earthquake(0.35, 0.5, self.origin, 1000); // scale duration source radius
        wait (0.05);
    }
}

 

And VOILÁ!

 

If you got any question send it to Ingvar_Dias@yahoo.com

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

»