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

Offline Raptor Dan

  • Iguana
  • *
  • Posts: 0
  • T:REP 40
  • Murder time, fun time!
Re: Turok 2 Seeds of Evil WIP Projects
« Reply #40 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

  • Iguana
  • *
  • Posts: 0
  • T:REP 25
  • I AM TUROK!!
Re: Turok 2 Seeds of Evil WIP Projects
« Reply #41 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

  • Iguana
  • *
  • Posts: 0
  • T:REP 25
  • I AM TUROK!!
Re: Turok 2 Seeds of Evil WIP Projects
« Reply #42 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: 0
  • T:REP 40
  • Murder time, fun time!
Re: Turok 2 Seeds of Evil WIP Projects
« Reply #43 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

  • Iguana
  • *
  • Posts: 0
  • T:REP 25
  • I AM TUROK!!
Re: Turok 2 Seeds of Evil WIP Projects
« Reply #44 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: 0
  • T:REP 40
  • Murder time, fun time!
Re: Turok 2 Seeds of Evil WIP Projects
« Reply #45 on: July 29, 2018, 08:32:34 PM »

More progress

Offline Raptor Dan

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

Offline thebestmlTBM

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

Offline Raptor Dan

  • Iguana
  • *
  • Posts: 0
  • T:REP 40
  • Murder time, fun time!
Re: Turok 2 Seeds of Evil WIP Projects
« Reply #48 on: August 15, 2018, 12:24:57 AM »

Testing out a grenade trail SFX from bioshock on the Endtrail's grenades, not too pleased with the result as it doesn't follow the projectile so no matter where you are the sound will be at where the endtrail grenade particle was created.

Offline Victorious_Games

  • Iguana
  • *
  • Posts: 0
  • T:REP 25
  • I AM TUROK!!
Re: Turok 2 Seeds of Evil WIP Projects
« Reply #49 on: August 17, 2018, 02:50:57 PM »
If you make the particle create the sound it should work.

startsound = "your sound number"

I may be wrong though.
« Last Edit: August 17, 2018, 02:51:33 PM by Victorious_Games »
Turok 2 Ascension MODDB Page: https://www.moddb.com/mods/turok-2-ascension

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal