Jump to content
Sign in to follow this  
[lol]clan killer bee

fire/smoke.sqs

Recommended Posts

Ello guys !

I hope there is someone who might be able to help me !

This is it ins short, I love OFP and make missions for it !

I'm not a scriptwiz !

I need some help with the following.

This is the script I normally use !

Quote[/b] ]? benchmark<3500 : exit

; BAS - Generic fire/damage script - by TJ march 2003

;execute with name of object to burn

; eg, [objectname] exec "fx\fire.sqs"

;burn time (in seconds)

_lifeTime = 150

_object = _this select 0

_soundloop = 0

_delay = 0.23

_lifeTicks = _lifeTime / _delay

_lifeTick = _lifeTicks

_ouch = 0

_count = 0

@ (getdammage _object )>=0.9 && (getpos driver _object select 2)<4

? !( local _object):goto "sound"

_posx = [getpos _object select 0, getpos _object select 1,1.5]

#debris

~0.2

_bang = "mortarshell" createvehicle _posx

?! (local _object):goto "sound"

_glow = "bas_islefire" createvehicle [0,0,0]

_glow setpos [getpos _object select 0, getpos _object select 1,1.5]

_glow inflame true

#sound

_soundloop = 0

#Begin

;random explos

? ! (local _object):goto "client"

_x = random 50

?_x <=1 && _lifeTick > 550:_bang = "mortarshell" createvehicle getpos _object

?_x>=49 && _lifeTick >460:_bang = "BulletFullAutoG" createvehicle getpos _object

#client

;burn player

? player distance _object <10: player setdammage ((getdammage player) +0.02),goto "scream"

#fire

drop ["cl_fire", "", "Billboard", 1, 1, [random 1,random 1,0.2], [random 0.3, random 0.3, 3], 1, 0.004, 0.004, 0.1, [1,(1 + random 7),1], [[1,0.5,0.5,0], [0.2,0.2,0,0.7], [1,1,0,0.5], [1,1,0.1,0]], [0,1], 0.5, 0.05, "", "",_object ]

drop ["cl_fire", "", "Billboard", 1, 0.7, [- random 1,- random 1,0.35], [random 0.3, random 0.3, 3], 1, 0.004, 0.004, 0, [1,3,0], [[1,0.5,0.5,0], [1,1,0.8,0.7], [1,1,0,0.4], [1,1,0,0]], [0,1], 0.5, 0.05, "", "",_object ]

;sparks

drop ["cl_fire", "", "Billboard", 1, 5, [0,0,1], [ random 1, random 1, random 3], 1, 0.005, 0.0042, 0, [0.15], [[1,1,1,1],[0,0,0,0]], [0,1], 0.5, 1, "", "",_object]

;smoke

;drop ["cl_basic", "", "Billboard", 1, 15,[0,-7,1], [ 0, 0,random 0.8], 1, 1.245, 1, 0.15, [random 5,15], [[random 0.1,random 0.15, random 0.1,0.7], [random 0.1,random 0.15,random 0.1,0.7], [random 0.1, random 0.15, random 0.1,random 0.7], [random 0.1, random 0.1, random 0.1,0]], [0,1], 8.5, 1, "", "", _object]

~_delay

_lifeTick = _lifeTick - 1

_soundloop = _soundloop +1

? _soundloop ==4: _glow say "fire";goto "sound"

_glow setpos [getpos _object select 0, getpos _object select 1,1.5]

?_lifeTick > 0 : goto "Begin"

deletevehicle _glow

~1

drop ["cl_fire", "", "Billboard", 1, 5, [0,0,0.6], [random 0.3, random 0.3, 3], 1, 0.014, 0.004, 0, [1,3,0], [[1,0.5,0.5,0], [1,0.8,0.8,1], [1,0.8,0.8,0.6], [1,1,0.1,0]], [0,1], 0.5, 0.05, "", "",_object ]

exit

#scream

? _ouch == 1:goto "fire"

_ouch = _ouch +1

player say "eng31"

player groupchat "MEDIC! I'm getting burnt here!"

goto "Begin"

This is what I normally use .

I have added some things too it like the benchmark and the say part in the script !

It seems not really to work I want to on the server and that might be caused by the <span style='color:green'>#client</span> part !

The smoke I have is not what I want it to be and is short and really thick .

This is what I would like to see

Ofcourse I have no .sqs of this, ran into the pic though !

tnkapic2.jpg

I have seen a smoke/fire script on a FDF v1.4 that is high and less thick .

I hope to avoid some lagg, when there are some more armour are burning !

Also on client when ou have shot the tank there will be light arround the tank (night), but not in MP

In short I need somebodies help if he or she can to

1: make the smoke long and thin .

2: make it run on a server !

3: try it to make it MP sutible !

Thank you for sofar ! whistle.gif

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×