OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Dubieman on 13 Aug 2004, 03:01:04
-
Hey you know if you were in combat, you wouldn't exactly be smiling would you? Unless you just made an awesome shoot or mowed a few ppl down or something... ;D
I was wonderin if by a soldiers rank when in battle you could use the setmimic command to make privates or low skilled ppl have surprise, sad, scared as their face settings.
And vets or higher ranked ppl have angry or happy or ironic or some face setting like that casue they know what battle is like.
And if the lower skilled and ranked bunch could yell you things like, Where is he? Cover me! I need help!
and vets say stuff like Someone nade that shack over there! Get on the radio numnuts and tell the colonel what's going on!
You know stuff like that.... :P
-
3 (John "Vet Set" Toenail ) "BULLETS CANNOT HIT ME!!!"
4 (Joe "Greenie" Underware) "JOHN! GET DOWN!!!"
1 (Random Dude) "DAMN, 3, IS DOWN!"
;D
Yea that would be cool. Noobs should be all like "RUN AWAY" and runs away and gets mowed down. :o
:beat: *Gets Shot* :beat:
-
Exactly except without the Rambo crap.
vet. Bob: JIMMY, get the f$ck down, they're lobbin grenades!
rookie Jim: No I wanna get in that house across the killing zone...
:P
-
vet. Bob: WHY!?
rookie Jim: I have to, y'know, uhhh, like, go, y'know...
vet. Bob: Aw ffs Jim!!
;D
It would be cool but as far as I know there are no way to check skill. You can check grade (rating) but it is filled with bugs. There's a thread somewhere where I and somebody finds out that.
:beat: *Gets Shot* :beat:
-
Can you get their rank?
Like private?
Hmmm, or maybe just randomize it. Some soldiers are scared/first time in combat and the vets who know what it is like...
Maybe a pee the pants animation....? :D ;D
-
u can use the skill command
skill person
Operand types:
person: Object
Type of returned value:
Number
Description:
Returns current level of ability of person.
Example:
skill player
comment »
Bremmer November 02, 2002, 21:33
Skill of AI units set via the slider in unit placement screen varies from 0.2 to 1.0. If superAI is enabled all units have skill of 1.0 regardless of the skill slider.
not gonna make the script... but this is the direction u was lookin 4 if u wanna do
LCD OUT
-
Hmm it'd be cool to do, just I'm no good applying these scripts to all troops. Maybe someone else wants t pick this up? :P
-
just make a script 4 1 workin soldier... if u do that ill give ya syntax 2 make it start 4 all :P
LCD OUT
-
Wish I could.
Bah due to health related stuff I'll be out for a few days and prolly no OFP, comp, fun crap for 3 monthes.... :(
But hey I'll try it in December or something... :P :)
-
Oi. I allready have 2 scripts on my neck. ... I'll see what I can do. ;D :P
:beat: *Gets Shot* :beat:
-
@ GRK
three month ? :wow: try 2 shorten that no fun thingy :P ;D
@ armsty
finish the rain thing 1st :P
LCD OUT
-
Heres the simple code for one guy :
_unit = _this select 0
_skill = skill _unit
?(_skill >= 1): GOTO "rambo"
?(_skill <0.7): GOTO "vet"
?(_skill <0.5): GOTO "norm"
?(_skill <0.3): GOTO "recruit"
HINT "Well, your messed something up.."
#rambo
_unit setmimic ironic
; Etc
EXIT
#vet
_unit setmimic angry
; Etc
EXIT
#norm
_unit setmimic happy
; Etc
EXIT
#recruit
_unit setmimic scared
_unit allowfleeing 0.1
; Etc
EXIT
There..
That should do it
I'm not sure I got all the setmimics right, but it should work :)
- Ben
-
ok this is a start.... not screamin yet but thats ok...
now 2 make every1 in the mision obey this rules.... just make big triger covering the whole mision area and make it one timer by anybody
and the code in it will b
"[_X] exec {scriptname}" foreach thislist
:P
:-*
LCD OUT
-
Opps
#recruit
_unit setmimic scared
_unit allowfleeing 0.1
; Etc
EXITIs wrong ;)
#recruit
_unit setmimic scared
_unit allowfleeing 0.9
; Etc
EXIT
If you do allowfleeing 1 they always run.. I forrgot that, and remebered at school (Yeah, it was really that interesting :P)
Andway..
What about a hit eventhandler that makes the recruits scream and run away? ;)
#recruit
_unit setmimic scared
_unit allowfleeing 0.1
_unit addeventhandler ["hit",{this exec "recruithit.sqs}]
; Etc
EXIT
THink that right
recruithit.sqs:
_unit = _this select 0
HINT "AAAHH I'M HIT I'M HIT!!!"
_unit say "screaam"
_unit allowfleeing 1
You need to make up a sound, and description.ext file (If not, just comment that line ;))
Any other ideas for effects for various stuff?
- Ben
-
He could always scream : AAAHHH SHITE NOW I NEED NEW PANTS
-
Just change that HINT "Blahblah" line :P
Anyway, I'll add to the code soon
Any ideas?
- Ben