Members Online»
0 Active | 70 Guests
Online:
|
LATEST FORUM THREADS»
by Welshy
Posts: 6 / 410 The Future of MODSonline
In The News by KAZAM3766
Posts: 1 / 647 CoD: Battle Royale
CoD+UO Map + Mod Releases by morgawr
Posts: 1 / 2711 Damaged .pk3's
CoD Mapping by lazygit
Posts: 1 / 3228 heli to attack ai
CoD4 SP Mapping by DrBiggzz
Posts: 11 / 1034 New Cod UO Rifle Mod.
CoD Mapping |
Polls»
|
Ok, i thought i woul make a little tutorial on adding stuka's to your map because a few people have asked how to do it!
1) Create a script_model and give it these values:
model - xmodel/vehicle_plane_stuka
targetname - stuka1
I made three planes and gave them a targetname of stuka1, stuka2, stuka3
2) Next create a script origin (put this where you want the plane to fly to) deselect it, select the plane, select the origin and press ctrl - k to connect them (the order is important) Also put a script origin where the planes spawn, dont give it no values (just put it under the plane models)
Now thats it for the map, pretty simple so far!
3) Time for the script, create a new .gsc call it planes.gsc and put this in it:
main()
{
level thread planes();
}
planes()
{
level.PlaneSpeed = 3.5;
stuka1 = getent ("stuka1","targetname");
stuka2 = getent ("stuka2","targetname");
stuka3 = getent ("stuka3","targetname");
temp = getent (stuka1.target,"targetname");
stuka1.dest = temp.origin;
stuka1.start = stuka1.origin;
stuka1 hide();
temp = getent (stuka2.target,"targetname");
stuka2.dest = temp.origin;
stuka2.start = stuka2.origin;
stuka2 hide();
temp = getent (stuka3.target,"targetname");
stuka3.dest = temp.origin;
stuka3.start = stuka3.origin;
stuka3 hide();
wait 2;
while (1)
{
stuka1 thread plane_flyby("stuka_flyby");
wait .15;
stuka2 thread plane_flyby("stuka_flyby");
wait .15;
stuka3 thread plane_flyby("stuka_flyby");
wait 60;
}
}
plane_flyby(sound)
{
// If you specified a sound to play then play it
if (isdefined (sound))
self playsound (sound);
wait 15;
self show();
self moveto(self.dest, level.PlaneSpeed, 0.1, 0.1);
wait level.PlaneSpeed;
self hide();
self.origin = self.start;
}
make sure you call on it in yourmap.gsc by putting this line in it maps\mp\planes::main();
4) For the sounds you will need to create a new csv file and put this in it:
name,sequence,file,vol_min,vol_max,pitch_min,pitch_max,dist_min,dist_max,channel,type,probability,loop,masterslave,loadspec,subtitle
null,,null.wav,,,,,,,,,,,,,
#Tank sounds,,,,,,,,,,,,,,,
stuka_flyby,,vehicles/stuka_by02.wav,1.25,,,,100000,,,,,,,,
Make sure you put that in your soundaliases folder
That should be working fine now! remember to check out my new mp_omaha map when its finished and see the flying stuka's along with mortars and loads more
rasta
the original thread can be viewed here
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