Harkonin 0 Posted December 8, 2003 Just wondering if anyone can firgure out how to get these 3 scripts to work in MP. First script -Bexpl.sqs <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> _bar = _this select 0 @(getdammage _bar > 0.01) _bardan = 0.05 _size1 = 1 _size2 = 3 _size3 = 5 #calculareResults _bar setdammage 0 #BabaxAndFly ;[(getpos _bar),80] exec "becratSmoke.sqs" _timeOfFly = 9 _bar setdammage 0 _bar setpos [(getpos _bar select 0),(getpos _bar select 1),0.1] ~0.01 _babax2 = "grenade" camcreate [getpos _bar select 0,getpos _bar select 1,(getpos _bar select 2)+0] _bar setdammage 0 ~0.35 _bar setdammage 0 _napr = random 360 #LetFly _bar setvelocity [(cos(_napr)*3),(sin(_napr)*3),15+random 5] _bar setdir (getdir _bar) drop ["cl_water", "", "Billboard", 1, 0.8,getpos _bar, [random 1, random 1, random 1], 1, 1, 1, 1, [0.5,3,7], [[1,1,1,0.01], [1,1,1,0.01], [1,1,1,0.01], [1,1,1,0.01]], [0,1,0], 5, 0.05, "", "", ""] drop ["cl_fire", "", "Billboard", 1, 2, getpos _bar, [random 5, random 5, random 5], 1, 1, 1, 1, [0.5,2,5], [[1,0.5,0,0.6], [1,0.5,0,1], [0,0,0,1], [0,0,0,0]], [0,1,0], 5, 0.05, "", "", ""] ~0.1 _timeOfFly = _timeOfFly - 1 ?(_timeOfFly>0):goto "LetFly" #FireAtWill drop ["cl_water", "", "Billboard", 1, 0.8,getpos _bar, [random 1, random 1, random 1], 1, 1, 1, 1, [0.5,3,7], [[1,1,1,0.01], [1,1,1,0.01], [1,1,1,0.01], [1,1,1,0.01]], [0,1,0], 5, 0.05, "", "", ""] drop ["cl_fire", "", "Billboard", 1, 2, getpos _bar, [random 5, random 5, random 5], 1, 1, 1, 1, [0.5,3,8], [[1,0.5,0,0.6], [1,0.5,0,1], [0,0,0,1], [0,0,0,0]], [0,1,0], 5, 0.05, "", "", ""] ~0.1 ?(getpos _bar select 2>0.1):goto "fireatwill" _bu = "Logic" camcreate (getpos _bar) ~0.1 _babax = "shell120" camcreate [getpos _bar select 0,getpos _bar select 1,(getpos _bar select 2)+0] _bar setpos [0,0,0] _smokeSida = 0 _clusconut = 1+random 10 ~0.1 #CircleOfSmokeas _smokeSida = _smokeSida +1 _size1 = _size1 + 0.05 _size2 = _size2 + 0.2 _size3 = _size3 + 0.2 drop ["cl_fire", "", "Billboard", 1, 1, [(getpos _bu select 0)+(sin(random 360)*_smokeSida),(getpos _bu select 1)+(sin(random 360)*_smokeSida),0], [random 2, random 2, random 2], 1, 1, 1, 1, [_size1,_size2,_size3], [[0,0,0,0], [0,0,0,0.6], [0,0,0,0.3], [0,0,0,0]], [0,1,0], 5, 0.05, "", "", ""] drop ["cl_fire", "", "Billboard", 1, 1, [(getpos _bu select 0)+(sin(random 360)*_smokeSida),(getpos _bu select 1)+(sin(random 360)*_smokeSida),0], [random 2, random 2, random 2], 1, 1, 1, 1, [_size1,_size2,_size3], [[0,0,0,0], [0,0,0,0.6], [0,0,0,0.3], [0,0,0,0]], [0,1,0], 5, 0.05, "", "", ""] drop ["cl_fire", "", "Billboard", 1, 1, [(getpos _bu select 0)+(sin(random 360)*_smokeSida),(getpos _bu select 1)+(sin(random 360)*_smokeSida),0], [random 2, random 2, random 2], 1, 1, 1, 1, [_size1,_size2,_size3], [[0,0,0,0], [0,0,0,0.6], [0,0,0,0.3], [0,0,0,0]], [0,1,0], 5, 0.05, "", "", ""] drop ["cl_fire", "", "Billboard", 1, 1, [(getpos _bu select 0)+(sin(random 360)*_smokeSida),(getpos _bu select 1)+(sin(random 360)*_smokeSida),0], [random 2, random 2, random 2], 1, 1, 1, 1, [_size1,_size2,_size3], [[0,0,0,0], [0,0,0,0.6], [0,0,0,0.3], [0,0,0,0]], [0,1,0], 5, 0.05, "", "", ""] drop ["cl_fire", "", "Billboard", 1, 1, [(getpos _bu select 0)+(sin(random 360)*_smokeSida),(getpos _bu select 1)+(sin(random 360)*_smokeSida),0], [random 2, random 2, random 2], 1, 1, 1, 1, [_size1,_size2,_size3], [[0,0,0,0], [0,0,0,0.6], [0,0,0,0.3], [0,0,0,0]], [0,1,0], 5, 0.05, "", "", ""] drop ["cl_fire", "", "Billboard", 1, 1, [(getpos _bu select 0)+(sin(random 360)*_smokeSida),(getpos _bu select 1)+(sin(random 360)*_smokeSida),0], [random 2, random 2, random 2], 1, 1, 1, 1, [_size1,_size2,_size3], [[0,0,0,0], [0,0,0,0.6], [0,0,0,0.3], [0,0,0,0]], [0,1,0], 5, 0.05, "", "", ""] drop ["cl_fire", "", "Billboard", 1, 1, [(getpos _bu select 0)+(sin(random 360)*_smokeSida),(getpos _bu select 1)+(sin(random 360)*_smokeSida),0], [random 2, random 2, random 2], 1, 1, 1, 1, [_size1,_size2,_size3], [[0,0,0,0], [0,0,0,0.6], [0,0,0,0.3], [0,0,0,0]], [0,1,0], 5, 0.05, "", "", ""] drop ["cl_fire", "", "Billboard", 1, 1, [(getpos _bu select 0)+(sin(random 360)*_smokeSida),(getpos _bu select 1)+(sin(random 360)*_smokeSida),0], [random 2, random 2, random 2], 1, 1, 1, 1, [_size1,_size2,_size3], [[0,0,0,0], [0,0,0,0.6], [0,0,0,0.3], [0,0,0,0]], [0,1,0], 5, 0.05, "", "", ""] drop ["cl_fire", "", "Billboard", 1, 1, [(getpos _bu select 0)+(sin(random 360)*_smokeSida),(getpos _bu select 1)+(sin(random 360)*_smokeSida),0], [random 2, random 2, random 2], 1, 1, 1, 1, [_size1,_size2,_size3], [[0,0,0,0], [0,0,0,0.6], [0,0,0,0.3], [0,0,0,0]], [0,1,0], 5, 0.05, "", "", ""] drop ["cl_fire", "", "Billboard", 1, 1, [(getpos _bu select 0)+(sin(random 360)*_smokeSida),(getpos _bu select 1)+(sin(random 360)*_smokeSida),0], [random 2, random 2, random 2], 1, 1, 1, 1, [_size1,_size2,_size3], [[0,0,0,0], [0,0,0,0.6], [0,0,0,0.3], [0,0,0,0]], [0,1,0], 5, 0.05, "", "", ""] drop ["cl_fire", "", "Billboard", 1, 1, [(getpos _bu select 0)+(sin(random 360)*_smokeSida),(getpos _bu select 1)+(sin(random 360)*_smokeSida),0], [random 2, random 2, random 2], 1, 1, 1, 1, [_size1,_size2,_size3], [[0,0,0,0], [0,0,0,0.6], [0,0,0,0.3], [0,0,0,0]], [0,1,0], 5, 0.05, "", "", ""] drop ["cl_fire", "", "Billboard", 1, 1, [(getpos _bu select 0)+(sin(random 360)*_smokeSida),(getpos _bu select 1)+(sin(random 360)*_smokeSida),0], [random 2, random 2, random 2], 1, 1, 1, 1, [_size1,_size2,_size3], [[0,0,0,0], [0,0,0,0.6], [0,0,0,0.3], [0,0,0,0]], [0,1,0], 5, 0.05, "", "", ""] drop ["cl_fire", "", "Billboard", 1, 1, [(getpos _bu select 0)+(sin(random 360)*_smokeSida),(getpos _bu select 1)+(sin(random 360)*_smokeSida),0], [random 2, random 2, random 2], 1, 1, 1, 1, [_size1,_size2,_size3], [[1,0.5,0,0.5], [1,0.5,0,0.5], [1,0.5,0,0.3], [0,0,0,0]], [0,1,0], 5, 0.05, "", "", ""] drop ["cl_fire", "", "Billboard", 1, 1, [(getpos _bu select 0)+(sin(random 360)*_smokeSida),(getpos _bu select 1)+(sin(random 360)*_smokeSida),0], [random 2, random 2, random 2], 1, 1, 1, 1, [_size1,_size2,_size3], [[1,0.5,0,0.5], [1,0.5,0,0.5], [1,0.5,0,0.3], [0,0,0,0]], [0,1,0], 5, 0.05, "", "", ""] ~0.1 _azmaa = random 5 _mn=_bu [_mn] exec "beflameth.sqs" ?(_smokeSida < 10):goto "CircleOfSmokeas" exit next beflameth.sqs- <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> _fa = _this select 0 _azmzzzafz = random 100 _cluh = "logic" camcreate (getpos _fa) _cluh setdir (random 359.99) _zzz = 0.5+(random 2)-(random 3) #randommoving ?(_zzz > (-2)):_zzz = _zzz - 0.1 _cluh setpos [(getpos _cluh select 0)+(sin(getdir _cluh)*(0.1+random 1)),(getpos _cluh select 1)+(cos(getdir _cluh)*(0.1+random 1)),(getpos _cluh select 2)+_zzz] drop ["cl_fire", "", "Billboard", 1, 1,getpos _cluh, [random 1, random 1, random 1], 1, 1, 1, 1, [0.1,0.4,1], [[1,0.5,0,0.7], [1,0.5,0,0.7], [1,0.5,0,0.7], [0,0,0,0]], [0,1,0], 5, 0.05, "", "", ""] ?(player distance _baFire <10):drop ["cl_water", "", "Billboard", 1, 0.8,getpos _cluh, [random 1, random 1, random 1], 1, 1, 1, 1, [0.5,1,2], [[1,1,1,0.01], [1,1,1,0.01], [1,1,1,0.01], [1,1,1,0.01]], [0,1,0], 5, 0.05, "", "", ""] ~0.01 drop ["cl_fire", "", "Billboard", 1, 1,getpos _cluh, [random 1, random 1, random 1], 1, 1, 1, 1, [0.1,0.4,1], [[1,0.5,0,0.7], [1,0.5,0,0.7], [1,0.5,0,0.7], [0,0,0,0]], [0,1,0], 5, 0.05, "", "", ""] ?(player distance _baFire <10):drop ["cl_water", "", "Billboard", 1, 0.8,getpos _cluh, [random 1, random 1, random 1], 1, 1, 1, 1, [0.5,1,2], [[1,1,1,0.01], [1,1,1,0.01], [1,1,1,0.01], [1,1,1,0.01]], [0,1,0], 5, 0.05, "", "", ""] _cluhPos = [getpos _cluh select 0,getpos _cluh select 1,0] ?(getpos _cluh select 2 >0.1):goto "randommoving" _cluh setpos [0,0,100000] ~0.05 _az = "Logic" camcreate _cluhPos [_az] exec "befir.sqs" exit and lastly befir.sqs <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> _baFire = _this select 0 _InWater = false _timeToBurn = 180+random 200 #FlameCa drop ["cl_fire", "", "Billboard", 1, 0.7,(getpos _baFire), [random 2.5, random 2.5, random 2.5], 1, 1, 1, 1, [0.1,0.4,1], [[1,0.5,0,0.6], [1,0.5,0,0.8], [0,0,0,0.5], [0,0,0,0]], [0,1,0], 5, 0.05, "", "", ""] ?(player distance _baFire <10):drop ["cl_water", "", "Billboard", 1, 0.8,(getpos _baFire), [random 1, random 1, random 1], 1, 1, 1, 1, [0.5,1,2], [[1,1,1,0.02], [1,1,1,0.02], [1,1,1,0.02], [1,1,1,0.02]], [0,1,0], 5, 0.05, "", "", ""] private ["_Water"]; _Water = "EmptyDetector" createVehicle [0,0,0] _cal = {private["_result"];_Water setpos [getpos _baFire select 0,getpos _baFire select 1,0]; _result = getpos _Water select 2; _result}; ?abs(_this call _cal) < 1: _InWater=true; ?abs(_this call _cal) > 1: _InWater=false; ?(_InWater):exit ~0.1 _Water setpos [0,0,0] _Water setDammage 1 _timeToBurn = _timeToBurn - 1 ?(_timeToBurn >0):goto "FlameCa" ?(_timetoburn <=0):exit Share this post Link to post Share on other sites