Frictional Games Forum (read-only)

Full Version: Script for falling tree/knock player out?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
(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?
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:
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
Pages: 1 2