Home   Help Search Login Register  

Author Topic: Hi All =)..Simple Haloexample thats been merged with a dropfire,askin 4 help plz  (Read 738 times)

0 Members and 1 Guest are viewing this topic.

Offline Zayfod

  • ECP Team
  • *
  • Llama, softest natural fibre in the world.
First of all I would like to thank Karrillion for his brilliant halo scripts (the ones which allow you to do multiple halo jumps throughout the mission). This was kindly provided by Karrillion in an example mission called "HALOEXAMPLE.zip". Works a treat.

Secondly I have gleaned enough info on the drop fire / smoke / sparks sqs files and dled even an example mission with these scripts (cant remember where I downloaded it from tho). They are fantastic.

below is an example of some of the sqs files for fire and smoke ;)

Anyways Ive included it all in the attached mission.

Quote

_posDrop = _this select 0
_velocity = _this select 1
_lifeTime = _this select 2
_intensity = _this select 3
_object = _this select 4
_delay = 0.3
_lifeTicks = _lifeTime / _delay
_lifeTick = _lifeTicks

#Begin

drop ["cl_fire", "", "Billboard", 1, 1.5, _posDrop, [(_velocity select 0) + random 0.3, (_velocity select 1) + random 0.3, (_velocity select 2) + random 0.3], 1, 0.004, 0.004, 0.1, [(0.1 + 0.2 * _lifeTick/_lifeTicks) * _intensity, (0.1 + 0.5 * _lifeTick/_lifeTicks) * _intensity, (0.1 + 0.1 * _lifeTick/_lifeTicks) * intensity], [[1,1,1,0], [1,1,1,1], [1,1,1,0.6], [1,1,1,0]], [0,1,0], 0.5, 0.05, "", "", _object]
~_delay

_lifeTick = _lifeTick - 1
?_lifeTick > 0 : goto "Begin"
exit



now create another sqs file named smoke containing this:

Quote  

_posDrop = _this select 0
_velocity = _this select 1
_lifeTime = _this select 2
_object = _this select 3
_delay = 0.3
_lifeTicks = _lifeTime / _delay
_lifeTick = _lifeTicks

#Begin

drop ["cl_basic", "", "Billboard", 1, 10, _posDrop, _velocity, 1, 0.005, 0.0042, 0.5, [0.2,10], [[0,0,0,0], [0.3,0.3,0.3,1 * _lifeTick/_lifeTicks], [0.8,0.8,0.8,0.1 * _lifeTick/_lifeTicks], [0.8,0.8,0.8,0]], [0,1,0,1,0,1], 0.2, 0.2, "", "", _object]
~_delay

_lifeTick = _lifeTick - 1
?_lifeTick > 0 : goto "Begin"
exit


create a 3rd sqs file named firesource containing this:


Quote  
_posDrop = _this select 0
_velocity = _this select 1
_lifeTime = _this select 2
_intensity = _this select 3
_object = _this select 4

; Fire
[_posDrop, [0,0,0], _lifeTime, _intensity, _object] exec "fire.sqs"
; Smoke
[_posDrop, _velocity, _lifeTime, _object] exec "smoke.sqs"


in order to bring them all together and create the fire/smoke...place any object in the editor and name it smoker(you may use an invisible helecopter pad if you want to precisely place the fire) and place the following in the init box of the unit:
Quote  

[[getPos smoker select 0,getPos smoker select 1,(getPos smoker select 2)+.25], [0,0,1], 600, 3, "" ] exec "firesource.sqs";  


when calling these scripts from the init you can change the following:

600 in the above = number of seconds for fire to burn
3 in the above = size of fire (larger is bigger fire)
+.25 in the above = height above ground to place fire

hope this helps some folks out!

Greets to all that posted this stuff.


**********************************************

OK so heres the rub!


It appears that these drop scripts cannot run simutaneously with the Halo scripts when all are in the same mission. I am not a script guru tho I have learned enuff to get by lately but this one has me stumped!!.

The Halo sqs runs in the background so when the player dies then respawns a trigger sets the Halo script off again so he/she can do another Halo drop but....... when I blow up anything and the drop fire / smoke scripts commence I get that garbled script error message at the top of the screen ...it flashes between


'drop I#I["cl_fire", "", "billboard" ....etc to 'drop I#I["cl_basic", "", "billboard"....etc.

NOTE: when these scripts were tested on there own each worked perfectly. Karrillion I have made no changes to your haloexample mission.


PLEASE PLEASE someone with a kind heart and brain the size of a planet (not unlike Marvin the paranoid android off "Hitchhikers guide to the Galaxy") Please DOWNLOAD this map and check why these scripts are conflicting with each other.

The maps only 9k.


This is an urgent request for a large coop mission we are working on.

Any input appreciated

regards
Zay
 ???
"I have come here to kick ass and chew bubble gum......an I'm all outta bubble gum!"

Offline Zayfod

  • ECP Team
  • *
  • Llama, softest natural fibre in the world.
SOLVED :wave:

OK having a tenacious nature like me sometimes pays off, and this time it did.

Karrillions Halo.sqs calls upon 2 further scripts called Halochute.sqs and Halodrop.sqs.

All you have to do is check all 3 scripts for the variable "DROP"

ie: Any reference to it being true or false

DROP=true
or DROP= false

simply get rid of the word "DROP" and call it somthing else like lol "DRIP" or "DRAP" wotever.

Why? Because when the word "DROP" was used as a variable in these halo scripts it messed with the drop command for the fire smoke and sparks sqs scripts. Gee I wonder why.....no prizes for guessing. ::)

So there u go the fact that the word "DROP" was in all the scripts (one as a variable the others a command--totally fuufuued the computer)

What does this mean at the end of the day? It means we can now use Karrillions great multiple halo drop scripts and have kewl fire smoke and sparks all in the same map.

For those of you that are currently trying to solve this problem I thank you for your efforts. For those that havent tried I hope this helps you. For those that couldnt give a toss  :moon: lol Maybe we can make contact next time and help each other out.

cheers all :cheers:

Zay
"I have come here to kick ass and chew bubble gum......an I'm all outta bubble gum!"