Home   Help Search Login Register  

Author Topic: Flak fire  (Read 657 times)

0 Members and 1 Guest are viewing this topic.

BigBonga

  • Guest
Flak fire
« on: 27 Oct 2004, 11:16:28 »
Is it possible to create anti airr flak fire?
Perhaps by setpossing two shells onto the same piece of air?
I tried it nd it didnt work, anyone else had a go?

GI-YO

  • Guest
Re:Flak fire
« Reply #1 on: 27 Oct 2004, 12:31:44 »
this link to the ed's department has a few flak scripts in it, not sur what they are like though.....

http://www.ofpec.com/editors/browse.php?browsewhat=2&category=2_2


GI-YO
« Last Edit: 27 Oct 2004, 12:32:46 by GI-YO »

Dubieman

  • Guest
Re:Flak fire
« Reply #2 on: 27 Oct 2004, 21:55:28 »
Yes flak scripts and explosion scripts are there.

Though I wonder why when I was testin my script above ground, it would explode and I thought I saw that crater on the ground. Even though I used the setpos 2 shells to make the explosion... :P

Nulear_Man

  • Guest
Re:Flak fire
« Reply #3 on: 28 Oct 2004, 01:55:20 »
I Make A Cheap Flank Launcher
that uses Missiles as flanks
Check it out In the Beta Testing area of the forum ("NM_Mod" is the topic)
or i may have a link below
« Last Edit: 28 Oct 2004, 01:56:07 by Nuclear_Man »

Offline Blanco

  • Former Staff
  • ****
Re:Flak fire
« Reply #4 on: 01 Nov 2004, 00:15:40 »
Flakscript.sqs

Code: [Select]
_man = _this select 0
_weapon = _this select 1
? _weapon == "Put" or _weapon == "throw" : exit
_ammo = _this select 4


_bullet = nearestObject [_man, _ammo]
_spd=speed _bullet
?(_spd==0):exit
_fuze=1

#flak
~_fuze - random 0.1
_pos=getpos _bullet
_px=_pos select 0
_py=_pos select 1
_pz=_pos select 2
deletevehicle _bullet
_flak="shell125" camcreate [_px,_py,_pz]
_flak1="shell125" camcreate [_px,_py,_pz]
drop ["cl_basic", "", "Billboard", 5, 5, [0, 0, 0], [0, 0, 0], 0, 1.2, 1, 0, [5,10],[[0,0,0,1],[0,0,0,0]],[0],0,0,"","",_flak]
exit
#end

In the init of the unit

Code: [Select]
this addeventhandler ["fired",{_this exec "flakscript.sqs"}]
No triggers needed.Simple as that.

Use this script only with AA units with low ROF (the SU-23 (HD) is perfect). It works with AI and player

Credits to Grendel, this is just a part of his advanced simflak script, must be somewhere in the beta script corner.


« Last Edit: 01 Nov 2004, 00:19:37 by Blanco »
Search or search or search before you ask.

bored_onion

  • Guest
Re:Flak fire
« Reply #5 on: 07 Nov 2004, 10:52:23 »
grendel made a really cool simflak script actually - definitely worth a look