Author Topic: Turok 2 Seeds of Evil WIP Projects  (Read 58757 times)

Offline Raptor Dan

  • Iguana
  • *
  • Posts: 41
  • T:REP 146
  • Murder time, fun time!
    • View Profile
Re: Turok 2 Seeds of Evil WIP Projects
« Reply #50 on: July 25, 2018, 10:28:46 PM »
I have a question, but is there a way to add in a Low Health indicator, much like the Low Oxygen indicator where Adon would tell you you're running out of air?

Offline Victorious_Games

  • Raptor
  • ***
  • Posts: 123
  • T:REP 397
  • I AM TUROK!!
    • View Profile
Re: Turok 2 Seeds of Evil WIP Projects
« Reply #51 on: July 25, 2018, 10:45:40 PM »
If u don’t get an answer by the the time I can do some modding tomorrow I’ll try to whip something up for u that u can drop into the ontick section of the player script.
Turok 2 Ascension MODDB Page: https://www.moddb.com/mods/turok-2-ascension

Offline Raptor Dan

  • Iguana
  • *
  • Posts: 41
  • T:REP 146
  • Murder time, fun time!
    • View Profile
Re: Turok 2 Seeds of Evil WIP Projects
« Reply #52 on: July 26, 2018, 10:16:47 AM »
Another question, and it's a feature I sorely miss in the first Turok, but how does one get enemies to make impact sounds when they melee you?
It's entirely absent in 2 and the attacks feel less impactful.

Offline Victorious_Games

  • Raptor
  • ***
  • Posts: 123
  • T:REP 397
  • I AM TUROK!!
    • View Profile
Re: Turok 2 Seeds of Evil WIP Projects
« Reply #53 on: July 26, 2018, 10:36:14 AM »
That's something I'll be adding for my own project. The only way I can think of doing it is by going into each enemies melee animations and adding a flag that spawns a particle projectile.  The projectile only goes so far before destroying itself. If it hits an object it makes a sound and spawns blood or sparks or whatever. I've done this for the warblade, razor wind, and nuke weapons already but I did it by way of script. I'm sure it can be done using the Fireseed model and animation editor for monsters which I think is the best way to do it.
Turok 2 Ascension MODDB Page: https://www.moddb.com/mods/turok-2-ascension

Offline Victorious_Games

  • Raptor
  • ***
  • Posts: 123
  • T:REP 397
  • I AM TUROK!!
    • View Profile
Re: Turok 2 Seeds of Evil WIP Projects
« Reply #54 on: July 26, 2018, 07:42:57 PM »
Ok here man this will do things when the player's health is below whatever you want. Place it anywhere in the OnTick section of the players script file which you must add yourself if you haven't yet:

Code: [Select]
float PlayerHealth = self.Health();

if (PlayerHealth <= 10 && ShowOnce != 1)
{
      Hud.AddMessage("Danger Low Health",120);
ShowOnce = 1;
}
else if (PlayerHealth > 10 && ShowOnce == 1)
{
ShowOnce = 0;
}

Just change the 10 to whatever you want as well as the "Danger Low Health" message. You'll also need to put this:

Code: [Select]
int ShowOnce = 0;
up in the top section of the player script where other variables are declared.
« Last Edit: July 26, 2018, 07:43:45 PM by Victorious_Games »
Turok 2 Ascension MODDB Page: https://www.moddb.com/mods/turok-2-ascension

Offline Raptor Dan

  • Iguana
  • *
  • Posts: 41
  • T:REP 146
  • Murder time, fun time!
    • View Profile
Re: Turok 2 Seeds of Evil WIP Projects
« Reply #55 on: July 26, 2018, 09:32:19 PM »
Ok here man this will do things when the player's health is below whatever you want. Place it anywhere in the OnTick section of the players script file which you must add yourself if you haven't yet:

Code: [Select]
float PlayerHealth = self.Health();

if (PlayerHealth <= 10 && ShowOnce != 1)
{
      Hud.AddMessage("Danger Low Health",120);
ShowOnce = 1;
}
else if (PlayerHealth > 10 && ShowOnce == 1)
{
ShowOnce = 0;
}

Just change the 10 to whatever you want as well as the "Danger Low Health" message. You'll also need to put this:

Code: [Select]
int ShowOnce = 0;
up in the top section of the player script where other variables are declared.

My problem with adding stuff like that is finding the file I need to edit in the first place, where exactly do I find the script that edits the player?
Is it the one that's in the game/defs/actors?

Offline Victorious_Games

  • Raptor
  • ***
  • Posts: 123
  • T:REP 397
  • I AM TUROK!!
    • View Profile
Re: Turok 2 Seeds of Evil WIP Projects
« Reply #56 on: July 26, 2018, 10:19:20 PM »
You have to define a script to the player.def file so it can use new scripts. I’m not sure if this is for u right now. Maybe start using BehemothProgrammer’s MP addon as a base. It has everything already separated into scripts. U can easily drop your new sounds into it with no problem.
Turok 2 Ascension MODDB Page: https://www.moddb.com/mods/turok-2-ascension

Offline Raptor Dan

  • Iguana
  • *
  • Posts: 41
  • T:REP 146
  • Murder time, fun time!
    • View Profile
Re: Turok 2 Seeds of Evil WIP Projects
« Reply #57 on: July 29, 2018, 08:32:34 PM »

More progress

Offline Raptor Dan

  • Iguana
  • *
  • Posts: 41
  • T:REP 146
  • Murder time, fun time!
    • View Profile
Re: Turok 2 Seeds of Evil WIP Projects
« Reply #58 on: August 12, 2018, 10:57:39 PM »
EVEN MORE PROGRESS!

Offline thebestmlTBM

  • Raptor
  • ***
  • Posts: 120
  • T:REP 472
  • Am I'm a Kid, or am I'm a Squid! - Let's Rock!
    • View Profile
Re: Turok 2 Seeds of Evil WIP Projects
« Reply #59 on: August 13, 2018, 03:08:28 PM »
Not bad.

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal