Home   Help Search Login Register  

Author Topic: Eating script  (Read 1236 times)

0 Members and 4 Guests are viewing this topic.

netta1234

  • Guest
Eating script
« on: 11 Jun 2004, 22:01:03 »
Hey all now im makeing a mission for RFA Clan
in this mission i need an Eating script
you will have an action that shows food bar how much enegy you have left
can anyone gimme some info if some one can make this or if it already exsists thx you  ;D

junkie-xL

  • Guest
Re:Eating script
« Reply #1 on: 23 Jun 2004, 15:21:02 »
"Eat a meal" was a hilarious addaction command in bn880's "the Working Mission Nogova". No food bar present, sorry, but you could easily add a radio alpha command to check hunger rate (based on time since last meal?)

DBR_ONIX

  • Guest
Re:Eating script
« Reply #2 on: 27 Jun 2004, 12:40:53 »
Have a look at the bullet time scripts in the eds depot, one of them has a little red bar at the side that goes down when you have bullet time activated, and goes up when you shoot..
That could be modified to do the hungy bar :P
And have food on the ground, say, named food001, and use the addaction to a script, and then in that script, add to the bar, and deletevehicle food001

Or look at CessnaFun!, it has pretty good buy-stuff menus (Shames it's extreeemly laggy :()
- Ben

FlidMerchant

  • Guest
Re:Eating script
« Reply #3 on: 27 Jun 2004, 23:34:23 »
If you're thinking of implementing it into something it would be stupid if you suddenly die after a certain time, but maybe if it slows you down and causes your aim to be less accurate, it would be ok.

DBR_ONIX

  • Guest
Re:Eating script
« Reply #4 on: 28 Jun 2004, 19:37:51 »
Yeah, setdammages you down to 0.7 when you've not eaten for a long time
As in if the mission is an hour long, you've not eaten for 20/30 mins..
I'm not sure you can edit the scope-waveyness with out a CPP mod :(
Maybe you start hulcinating (Spelling.. No idea how you spell it :P) if you don't eat? :P

- Ben

Offline Nemesis6

  • Members
  • *
Re:Eating script
« Reply #5 on: 29 Jun 2004, 06:17:27 »
Hallucinating. :)

Heh, on that subject, one of the hallucinations would be sober russians.(non-vodka drinking russian soldiers) :P
« Last Edit: 29 Jun 2004, 06:18:12 by Nemesis6 »
I am actually flying into a star... this is incredible!

DBR_ONIX

  • Guest
Re:Eating script
« Reply #6 on: 29 Jun 2004, 21:08:24 »
Heh, on that subject, one of the hallucinations would be sober russians :P
THAT WILL NEVER HAPPEN, EVEN IN HAULLICINATIONS  >:(
:P
Anyway, don't think so, but if you add heavy equitment to a unit, does it slow them down...?
Don't think so
What about using the titletext blackin thing to simulate him being tired (eyes shutting)?
Dunno

Can't think of any other ways to hinder the player..
- Ben

Offline Roni

  • Members
  • *
  • Play the Game !
Re:Eating script
« Reply #7 on: 14 Jul 2004, 02:54:50 »
There's an easy way to simulate hallucinations, drunkenness etc - simply run a script on the character that makes use of the setPos and setDir commands.

For example -

"Dizzy" - Every second or so the script would get the player's facing (getDir), add a set amount then use setDir to change the player's facing a bit to the left or right.

"Drunk" - Same as Dizzy, but it also randomly changes the player's position (X or Y) by a small amount as well.

"Black Outs" - Fade to black and back again in a semi random fashion, combined with the occasional forced "drop to prone" animation.

"Hungry" - An appropriate sound effect, combined with a occasional forced "drop to crouch" animation.

"Sleepy" - Slowly setViewDistance down to the minimum, combined with a very slow fade to black and final "drop to prone" animation.  Have the script continuously check for change of facing, so if the player shakes his mouse quickly he can defer the effect (I actually wrte a script that did this but it's still not ready for prime time . . . ).

"Hallucinating" - Title cut to a gif image which is slightly transparent.  Would be fantastic if it was an animated gif !  Not sure if this is even possible but if it is -  :wow:

And so on.


One of my (many) projects is a defined injury system by way of scripts.  For example - head hits would cause lag and fades to black, gut shots would make the player look down (again, not sure if possible) and leg hits would make the player change facing towards the injured side every time he moved (forcing a mouse pull to the opposite side).

Man, I love this game !



Roni

DBR_ONIX

  • Guest
Re:Eating script
« Reply #8 on: 14 Jul 2004, 20:35:32 »
Man, I love this game !
Agreed mate ;D

Like all the ideas :P

I'll try and test them soon
- Ben

DBR_ONIX

  • Guest
Re:Eating script
« Reply #9 on: 15 Jul 2004, 14:53:19 »
Hmm, another thread reminded me about this..
So, seeing as how I'm bored.... I think I might start making this :D
Gonna start today ;)
- Ben

netta1234

  • Guest
Re:Eating script
« Reply #10 on: 15 Jul 2004, 17:15:45 »
hey where can i find this bullet bar stuff u talked about Ben

DBR_ONIX

  • Guest
Re:Eating script
« Reply #11 on: 16 Jul 2004, 17:14:10 »
One of the bullet time scripts in the editors depot.. :)

Oh, and heres the beta Alpha scripts, they won't work yet, but it shows how they will work ;)
Right click > Save as here..

- Ben
« Last Edit: 16 Jul 2004, 17:28:18 by DBR_ONIX »