|
; Flak simulation script by *[600]*The Itch
;
; usage (in the init or on activation line): [flakarea1, 150, 100, 500] exec "flak.sqs"
; where flakarea1 is the name of the gamelogic or trigger and 150 is the amount of flak rounds,
; 100 is approximate height of the explosions and 500 is the circle of explosions
_flaktype = "smallSecondary"
_unit = _This Select 0
_amountflak = _This Select 1
_amountflak = _amountflak
_height = _This Select 2
_radius = _This Select 3
_center = 0
_i = 0
_flakLoc = GetPos _unit
_flakLocX = _flakLoc select 0
_flakLocY = _flakLoc select 1
_flakLocZ = _height
#flakrun
_fheading = random 360
_frange = random _radius
_exploslocx = _flakLocX + ((random _radius) * (sin(_fheading)))
_exploslocy = _flakLocY + ((random _radius) * (cos(_fheading)))
_exploslocz = _height + random 30
_flak1 = _flaktype createVehicle[_exploslocx, _exploslocy, _exploslocz]
// delay for the next flak explosion
~0.3
_i=_i+1
? _amountflak > _i: goto "flakrun"
exit
现在脚本最多就是手雷爆炸的效果~~~~但是我又找不出哪里是表示爆炸效果的~~ |
|