
Members Online»
0 Active | 29 Guests
Online:
|
LATEST FORUM THREADS»
by morgawr
Posts: 1 / 1058 Damaged .pk3's
CoD Mapping by lazygit
Posts: 1 / 1621 heli to attack ai
CoD4 SP Mapping by DrBiggzz
Posts: 11 / 824 New Cod UO Rifle Mod.
CoD Mapping by rr016
Posts: 2 / 3947 setting your own ai names
CoD4 SP Mapping by lazygit
Posts: 2 / 2764 couldnt find path to goal
CoD4 SP Mapping |
Polls»
|
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»
Comments: 5
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which... Comments: 5
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ... Comments: 5
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead?
... Comments: 5
Codutility.com up and runn...
It seems to me the like the site is completely dead? Comments: 5
Codutility.com up and runn...
Yeeaahhhh.........
|
Latest Downloads»
OHMY Don Quixote
Call of Duty 2: Maps: Multiplayer (5.76Mb) OHMY Neuburg
Call of Duty 2: Maps: Multiplayer (6.84Mb) OHMY Tebessa
Call of Duty 2: Maps: Multiplayer (7.36Mb) OHMY POW Camp
Call of Duty 2: Maps: Multiplayer (2.15Mb) OHMY Valley
Call of Duty 2: Maps: Multiplayer (5.7Mb) |
Partners & Friends»
|
Site Links and Information
|
Partners
|
Friends
|
Copyright © MODSonline LLC
Tresware Content Management System © 2011
Website Designed by LKFX and Developed by Tresware