OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: punisher on 05 Feb 2004, 19:34:42

Title: Drunk Script
Post by: punisher on 05 Feb 2004, 19:34:42
hi
i heared somwhere there is a drunk script kicking about, where would i get this?
Also if there is not 1 how would i go about making 1?
Title: Re:Drunk Script
Post by: Dubieman on 05 Feb 2004, 22:00:34
I think I have seen one before but that was a long time ago... ;)

I guess I'll try my hand at this...
Be back later with ideas+partial script ;D
Title: Re:Drunk Script
Post by: Homefry31464 on 06 Feb 2004, 03:47:20
And what would this drunken script do?
Title: Re:Drunk Script
Post by: GrimMonkey on 06 Feb 2004, 04:46:07
And what would this drunken script do?
Cause swaying, impaired speech, alcohol poisoning, random mood swings.

A hangover perhaps?


Beware the GrimMonkey
Title: Re:Drunk Script
Post by: Homefry31464 on 06 Feb 2004, 04:55:54
Heh, I can imagine drunken fights in OFP...
Title: Re:Drunk Script
Post by: Tomb on 06 Feb 2004, 12:49:05
I think I have seen one before but that was a long time ago... ;)



maybe you read THIS (http://www.flashpoint1985.com/cgi-bin/ikonboard311/ikonboard.cgi?s=733a1a021ec722f68d7e32b31bfcc8c3;act=ST;f=54;t=36494) thread  ??? :)


Title: Re:Drunk Script
Post by: Dubieman on 06 Feb 2004, 21:00:51
Hmm now that reminds me of a thread before this one here, it was about drunks and it might be in one of the ideas sections. Course since it seems to already be made, why make a new one? ;)
I made some of one last night but I needed sleep so it didn't get finished, but now I know there is one out there all work halts. :P

Hell I'll post the little bits of crap I put together as I was drowsing off into sleep... :wave:
Parts of it are to make it seem as if the time goes flashing by....whoosh...... then you are supposed to start moving funny and stuff, although I'm not sure about coding or making vision weird, maybe add NVgoggles for 20 secs.
I think you could put new different animations, 2x times, and times for doing this in there but it isn't really complete nor tested... :P ::)

Code: [Select]
;A new DRUNK script for all you alcoholics out there!

;ok me start now

_unit = _this select 0

#Drunk
;here i wanted to give you the illusion of time flashing by.
_unit switchmove "normal"
setacctime 0.5
~5
setacctime 0.1
~2
setacctime 2
~10
setacctime 1
? (_unit ALIVE) : goto "pysch"

#pysch
;here I wanted to frig with the guy's moving
_unit dostop
_unit switchmove "FXStandSurUniv"
~3
_unit switchmove "FXStandSurDown"
~5
_unit switchmove "EffectStandSalute"
~5
_unit switchmove "EffectStandSitdown"
~3
setacctime 2
_unit switchmove "StandStill"
~10
setacctime 1
~1
_unit switchmove "FXStandAtt"
~3
_unit domove
? (_unit ALIVE) && (count>50) : goto exit
? (count>50) : goto "pysch"
exit
Title: Re:Drunk Script
Post by: Tomb on 06 Feb 2004, 21:17:23
the effects are fine, m8, no doubt, but what I have going on is more of a "cutScene" effect,
completely with sound effects (drunk babel & burps etc.) and a swaying walk untill the scroll ends

(trigger controlled)  8) ;D






Title: Re:Drunk Script
Post by: Dubieman on 07 Feb 2004, 01:24:00
Yeah a cutscene look with those sounds would be nice... :) Watch that officer trip stumble and burp as you roll a few fifties out of his wallet........ ;)

But having a player view would be weird like you have the view but you can't do anything controls wise. Your just a spectator with a 1st and 3rd person view and sucks for you if you seem to wander into enemy territory for no reason...hehehe :o