Home   Help Search Login Register  

Author Topic: Realism Script - More Wounds, Less Death!  (Read 18824 times)

0 Members and 3 Guests are viewing this topic.

Offline Pathy

  • Former Staff
  • ****
  • I'm not a F***in llama!
    • Volcbat.
Re:Realism Script - More Wounds, Less Death!
« Reply #75 on: 24 May 2004, 17:26:30 »
That ones already done  :)

But if you want to learn by it anyway...... ;)

Spectaculas

  • Guest
Realism Script - More Wounds, Less Death!
« Reply #76 on: 25 May 2004, 06:38:29 »
Any news from this "Realism Script - More Wounds, Less Death!" script? It sound good, you know.  ;)

Offline Pathy

  • Former Staff
  • ****
  • I'm not a F***in llama!
    • Volcbat.
Re:Realism Script - More Wounds, Less Death!
« Reply #77 on: 25 May 2004, 10:15:50 »
Well the good news is we now have 4 (or is it 5....Onix, are you in?) animators working on it, so, things are moving along well.

Damn got to go, talk more later  8)

Ok more time, yeh we have more animators! Wooo! So the anims wont take so long to get together, ermm scripter has just gone through the EXAM ZONE *twilight zone music plays*, so a slight delay there, but......given the time its going to take for the scripts compared to the anims, its not really a worry.  :)

Moving faster than expected, hope to have something to actually play with soon  :)
« Last Edit: 25 May 2004, 17:09:05 by Pathy »

DBR_ONIX

  • Guest
Re:Realism Script - More Wounds, Less Death!
« Reply #78 on: 25 May 2004, 17:01:11 »
4 and a half :P
I'm in ;)
- ben

RonMcAsskick

  • Guest
Re:Realism Script - More Wounds, Less Death!
« Reply #79 on: 29 May 2004, 14:55:24 »
hey folks

I am the scripter for this little project so i guess i should apologise for not checking here sooner.  As pathy said i have just been through my uni exams so apologies for the lack of updates.  I will be assembling a beta as soon as the wound array application part of the script is written (required to keep track of wounds suffered, bleed rates etc)  I have also been looking into the use of functions that might help the lag issue that might result from the complexity of the script.  Can anyone help me with a small problem, I have to make an array of units so that i can try and find the place in a set of synchronous arrays where that units wound info is held.  I can't seem to get the array to store the unit and find him again by searching the array.

Any ideas, ask if it needs clarification or MSN me Feliix1956@hotmail.com

Ron

DBR_ONIX

  • Guest
Re:Realism Script - More Wounds, Less Death!
« Reply #80 on: 29 May 2004, 17:42:09 »
I can't help, but I'm sure someone can :P
Anyway, good to hear a beta's on the way

I'll start work on that anim after I get bored with Hidden And Dangerous 2 :P
- Ben

RonMcAsskick

  • Guest
Re:Realism Script - More Wounds, Less Death!
« Reply #81 on: 30 May 2004, 02:59:40 »
right i read about using the format command to pass additional info through event handlers.  I hope the guy who talked about it in the functions help sees this and elaborates a little, i'm still a wee bit confused how this woks. enlighten me pleeease, driving me up the wall.

:)

Ron

Offline Pathy

  • Former Staff
  • ****
  • I'm not a F***in llama!
    • Volcbat.
Re:Realism Script - More Wounds, Less Death!
« Reply #82 on: 30 May 2004, 15:23:29 »
Maybe if we knew the name of the guy who talked about them we could kidnapp him ask him about it  :)

RonMcAsskick

  • Guest
Re:Realism Script - More Wounds, Less Death!
« Reply #83 on: 31 May 2004, 17:10:35 »
i think it was General Barren from the ECP team

DBR_ONIX

  • Guest
Re:Realism Script - More Wounds, Less Death!
« Reply #84 on: 06 Jun 2004, 11:22:57 »
Hmm, i don't know but, what about this :
Give him hit 2 event handlers (Use a foreach thislist thing, and a huge trigger),
one that sets unitname = name this (Or something)
And one that calls the script that uses unitname

Could be a bit long with lots of varables to be passed, though :(

What is it that has to be passed, anyway?
- Ben

Offline Pathy

  • Former Staff
  • ****
  • I'm not a F***in llama!
    • Volcbat.
Re:Realism Script - More Wounds, Less Death!
« Reply #85 on: 06 Jun 2004, 16:00:19 »
i think the idea is to cut all that down, and virtually eliminate lag :)

DBR_ONIX

  • Guest
Re:Realism Script - More Wounds, Less Death!
« Reply #86 on: 06 Jun 2004, 16:30:02 »
Ah right ::)
Whats the link to the function help thing, and I'll see if I can understand....*Laughs*
:P

Hows everything comming on, btw?
- Ben


Offline Pathy

  • Former Staff
  • ****
  • I'm not a F***in llama!
    • Volcbat.
Re:Realism Script - More Wounds, Less Death!
« Reply #87 on: 06 Jun 2004, 17:52:34 »
i think we can fairly say pretty good... ;)

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:Realism Script - More Wounds, Less Death!
« Reply #88 on: 06 Jun 2004, 20:28:50 »
 Passing more info to eventhandlers:

http://www.ofpec.com/yabbse/index.php?board=8;action=display;threadid=17724;start=0

After you have read that, read below:

The big problem with using this method, though, is that you can't easily pass a unit to the EH; only numbers and strings. You could pass a variable name to the EH though, and then using this trick again in the script, you could extract the value of the variable to be used in your script.

    Example:
Code: [Select]
_varName = _this select 5
; (_varName is a STRING, that is the same as the name of a global variable you have)
call format["_unit = %1", _varName]
; now _unit is an OBJECT; the same object that was in the global variable

But if you have an un-changing array with all the units on the map in it, then you could pass an index pointing to the unit in the array, instead of the unit itself.

---------------------------------------------------------

Quote
Can anyone help me with a small problem, I have to make an array of units so that i can try and find the place in a set of synchronous arrays where that units wound info is held.  I can't seem to get the array to store the unit and find him again by searching the array.

Hmm... not sure if I'm getting you correctly, but would this work?

Make an array of arrays, like so:

GlobalArray = [ [unitA, info1, info2, info3], [unitB, info1, info2, info3] ]

Now, to find the unit and his associated info, you just do a little loop through the array in a function like so:

Code: [Select]
_unit = _this select 0
_i = 0
#loop
? (GlobalArray select _i) select 0 == _unit : _returnArray = GlobalArray select _i; goto "end"
_i = _i + 1
goto "loop"
#end
_returnArray

Actually, this is in script syntax, but it could easily be converted into a function. I just know scripts better than functions off the top of my head.

Let me know if that isn't what you are talking about. Hope that helps ya'll. :)
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!

RonMcAsskick

  • Guest
Re:Realism Script - More Wounds, Less Death!
« Reply #89 on: 06 Jun 2004, 22:42:59 »
thanks thats just what i needed, the rest should be easy.