Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script for falling tree/knock player out?
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#11
RE: Script for falling tree/knock player out?

(08-10-2013, 01:26 PM)goregrinder99 Wrote:
(08-10-2013, 01:00 PM)JustAnotherPlayer Wrote:
(08-10-2013, 12:36 PM)Rapsis Wrote: Don't you think a falling tree would kill a person instead of just knocking him out?

Yeah, it will. Unless if the tree is small.

Well, I'm going to have it fall on them and knock them out and have them wake up near death. The scripts are working like a charm and I thank all of you. But I do have another question...

Where in the redist would you locate the files referring to the ui "hurt_pain" sounds? What I mean is when the player is hurt and near death the sounds he makes when he's in pain, like you've been mauled by the monsters and are about to die, what files are linked to those sounds and where are they? I have looked but with no luck of finding anything.

Is it when the Player breathes and gasps or something?

"Veni, vidi, vici."
"I came, I saw, I conquered."
08-10-2013, 01:44 PM
Find
CarnivorousJelly Offline
Posting Freak

Posts: 1,196
Threads: 41
Joined: Dec 2012
Reputation: 80
#12
RE: Script for falling tree/knock player out?

Go in redist/sounds/react
They usually use "react_pant" and "react_breath" for injuries in ATDD.

And, as long as you leave the last bool in your damage script as false, the player won't die:
PHP Code: (Select All)
GivePlayerDamage(float afAmount"string& asType"bool abSpinHeadbool abLethal); 

float afAmount - how much damage the player takes
string& asType - the effect, BloodSplat, Claws, or Slash
bool abSpinHead - does the player's head spin from being hit
bool abLethal - can the damage kill the player

[Image: quote_by_rueppells_fox-d9ciupp.png]
(This post was last modified: 08-10-2013, 08:37 PM by CarnivorousJelly.)
08-10-2013, 08:34 PM
Find




Users browsing this thread: 1 Guest(s)