View Full Version : Wanted known !
Feb 2 2003, 05:23
I'd like to know how people are making their ECM, ECCM, Missile warning systems work.
And I'd like to know how we are controlling the ranges of these addon systems?
Feb 2 2003, 09:41
ECM and ECCM systems are mostly scriptbased, while the "Missle Warning" uses the eventhandler "Incomingmissile".
For range question: They would be all global, but since you cannot lock on objects to far away you will notice the effect only localy (up to 3-5km distance).
Feb 3 2003, 02:44
Can you supply me with examples?
ok here is how you add an incoming missile warning to an
addon through it's .cpp.
1. Put the missile warning sound in the same directory
as your mod.
Just for an example, the missile warning sound will be called
"missilewarn.wav" and the mod directory will be "axeplane1"
2. In the cpp add:
make sure the cfgsounds section is not in another section,
as it is a primary section like cfgammo or cfgvehicles
3. Ok. The sound should work in OFP. Now add this in the
cfgvehicles section of the .cpp:
IncomingMissile = "(_this select 0) say ""missilewarning""";
4. Now just pbo the directory and try it ingame. The sound
should play when there is a launched missile targeting you.
Feb 3 2003, 07:43
For an ecm example you can look into the dkmm_jammer.sqs from our comanche.
Feb 3 2003, 17:52
Thanks Guys I'll look into them later today.
Powered by vBulletin® Version 4.2.2 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.