Page 2 of 6

Re: Isla Muerta - Site C

Posted: Tue Jun 20, 2017 8:12 pm
by TheIdiot
Trespasser have an actiontype to allow images to be shown on screen. And I'm pretty sure you would be able to make Anne make a sound depending on health, through the use of fire triggers etc.
I'm not sure, I've never been able to figure out if it's possible to get the game to detect how much health an actor has. machf..?
Unfortunately, I haven't figured out yet how to *remove* an image from the screen after displaying it... too bad the retail levels don't make use of that ActionType to find out more about it.
Yeah, that's the problem. You can get the image onscreen but can't take it away. I wonder if Lee could implement a way to remove the overlays in CE?

Re: Isla Muerta - Site C

Posted: Tue Jun 20, 2017 8:15 pm
by tatu
machf wrote:
tatu wrote: Trespasser have an actiontype to allow images to be shown on screen.
Unfortunately, I haven't figured out yet how to *remove* an image from the screen after displaying it... too bad the retail levels don't make use of that ActionType to find out more about it.
Doesn't JPDS remove the image when you go outside the trigger?

Re: Isla Muerta - Site C

Posted: Tue Jun 20, 2017 8:28 pm
by TheIdiot
Doesn't JPDS remove the image when you go outside the trigger?
Which trigger are you talking about? The one where you can jump the fence into the plains and the overlay of the Raptor comes up? If so, then no, it stays on the screen permanently.

Re: Isla Muerta - Site C

Posted: Tue Jun 20, 2017 9:00 pm
by machf
TheIdiot wrote:
Trespasser have an actiontype to allow images to be shown on screen. And I'm pretty sure you would be able to make Anne make a sound depending on health, through the use of fire triggers etc.
I'm not sure, I've never been able to figure out if it's possible to get the game to detect how much health an actor has. machf..?
There's an ActionType to *set* HitPoints, but none to read them, AFAIK.

Re: Isla Muerta - Site C

Posted: Wed Jun 21, 2017 6:04 pm
by Draconisaurus
I do wonder if CCreatureTrigger can detect Anne's health... As for the overlay image AT, the solution is probably to replace the image with a tiny, 1-to-4-pixel image when you don't want one displayed.

Re: Isla Muerta - Site C

Posted: Wed Jun 21, 2017 8:19 pm
by machf
Draconisaurus wrote:I do wonder if CCreatureTrigger can detect Anne's health...
Oh, it does work with Anne, not just the dinos...
As for the overlay image AT, the solution is probably to replace the image with a tiny, 1-to-4-pixel image when you don't want one displayed.
Either that, or a completely transparent image...

Re: Isla Muerta - Site C

Posted: Thu Jun 22, 2017 5:36 pm
by Draconisaurus
Ah well in that case, without looking I am wondering if it could be used to play sounds when certain healths are reached..

Re: Isla Muerta - Site C

Posted: Thu Jun 22, 2017 6:00 pm
by machf
Draconisaurus wrote:Ah well in that case, without looking I am wondering if it could be used to play sounds when certain healths are reached..
Just remember what the available options are:

Code: Select all

bool 	CreatureDie 	false 	If true, trigger fires when creature dies.
bool 	CreatureCriticalDamage 	false 	If true, trigger fires when creature gets a single damage hit that decreases its HitPoints by an amount greater than or equal to its CriticalHit value.
float 	CreatureDamagePoints 	must specify 	If set, trigger fires when creature gets a single damage hit that decreases its HitPoints by an amount greater than or equal to this value but less than its CriticalHit value.
bool 	CreatureSleep 	false 	If true, trigger fires when creature (physics) falls asleep.
bool 	CreatureWake 	false 	If true, trigger fires when creature physics is awoken.

Re: Isla Muerta - Site C

Posted: Thu Jun 22, 2017 8:04 pm
by TheIdiot
As for the overlay image AT, the solution is probably to replace the image with a tiny, 1-to-4-pixel image when you don't want one displayed.
Does overlaying a different image get rid of the first one? I seem to remember running into the problem where the new image simply overlayed on top of the previous one...could be wrong though as I haven't touched that trigger for a long time.
Draconisaurus wrote:Ah well in that case, without looking I am wondering if it could be used to play sounds when certain healths are reached..
The best I was able to come up with was making the player cough at random intervals to indicate sickness, which is triggered by a variable that is activated when you contract a disease (like in JPDS). You could create a bleeding system in a similar manner I would imagine - have the player lose health when injured severely and play a pain sound every now and then until they heal.

Re: Isla Muerta - Site C

Posted: Fri Jun 23, 2017 8:19 pm
by Draconisaurus
Mmmmm I see the value that will work..
And damn you know, it's too bad we can't teleport trnobjs.. make Anne leave a trail of blood as she walks.

Re: Isla Muerta - Site C

Posted: Sat Jun 24, 2017 2:29 am
by TheIdiot
And damn you know, it's too bad we can't teleport trnobjs.. make Anne leave a trail of blood as she walks.
Huh. You'd think maybe there would be a way considering that the blood TrnObjs teleport when a dinosaur is wounded. Even if it were only the blood objects, you could do some neat things...

Re: Isla Muerta - Site C

Posted: Sat Jun 24, 2017 5:51 am
by Draconisaurus
Has anyone tried spraying particles named "Blood" on the ground to see if they make a bloodsplat?

Re: Isla Muerta - Site C

Posted: Sat Jun 24, 2017 5:53 am
by machf
TheIdiot wrote:
And damn you know, it's too bad we can't teleport trnobjs.. make Anne leave a trail of blood as she walks.
Huh. You'd think maybe there would be a way considering that the blood TrnObjs teleport when a dinosaur is wounded. Even if it were only the blood objects, you could do some neat things...
I think they may have disabled the effect for the player...

Re: Isla Muerta - Site C

Posted: Sat Jun 24, 2017 5:57 am
by Draconisaurus
Ah true I haven't seen Anne's blood produce splats.. probably won't work, then.

Re: Isla Muerta - Site C

Posted: Sun Jun 25, 2017 1:04 am
by TheIdiot
Draconisaurus wrote:Has anyone tried spraying particles named "Blood" on the ground to see if they make a bloodsplat?
I have - there's a trigger in that really old RTJP level that sprays blood, and it doesn't produce splats. Seems to me like it's the collision between the "bullet" and the creature that causes the blood TrnObj to teleport rather than the particles themselves unfortunately.