Please or Register to create posts and topics.

Can physics object be made to hurt the player like portal

Page 1 of 2Next

Is it at all possible to make physics objects hurt the player like in the first game of the portal series?

Feeling AWESOME!!!!

I'm not sure, but trigger_hurt parented to object should do it.

czolko wrote:
I'm not sure, but trigger_hurt parented to object should do it.

This would also hurt the Player if the Player is standing on the Object, no good idea..

kai13XD wrote:
Is it at all possible to make physics objects hurt the player like in the first game of the portal series?

Aren't cubes hurting the player already in P2 if they are dropped from high enough? It's a long time since I don't receive a cube hit in muy head though :lol:

TheTobbell wrote:
This would also hurt the Player if the Player is standing on the Object, no good idea..

Well, not necessarily. If you surround an object with a trigger_hurt and parent it to the object it'll hurt the player as soon as he touches it ;) (no matter where these objects are coming from or are standing on)

ImageImageImageImageImageuseful tools and stuff here on TWP :thumbup:
[spoiler]ImageImageImageImageImage[/spoiler]
josepezdj wrote:
kai13XD wrote:
Is it at all possible to make physics objects hurt the player like in the first game of the portal series?

Aren't cubes hurting the player already in P2 if they are dropped from high enough? It's a long time since I don't receive a cube hit in muy head though :lol:

TheTobbell wrote:
This would also hurt the Player if the Player is standing on the Object, no good idea..

Well, not necessarily. If you surround an object with a trigger_hurt and parent it to the object it'll hurt the player as soon as he touches it ;) (no matter where these objects are coming from or are standing on)

But i mean for example, when you have the laserdisc object, and parent a Trigger hurt to it.
When you walk on this object you would also get hurted, ^^

Put a trigger_catapult and a trigger_hurt on the player, use the catapult to detect fast-moving physics objects and enable the trigger_hurt, give the trigger_hurt OnHurtPlayer !self Disable.

Falsi sumus crusto!
kai13XD wrote:
Is it at all possible to make physics objects hurt the player like in the first game of the portal series?

Can you give an example?

Also I'm with Jose. I thought that all objects depending on the weight of it and how far it falls it can kill or hurt you. Portal never had a health bar and you auto-regenerate health quickly after a few seconds.

If you are creating your own custom physic object as a prop_physbox, there is an option to change how an object will damage you by being blunt or sharp.

?????????????????????????????TWP Releases | My Workshop

In Portal 2 the falling-damage exception seems to have been extended to all physics damage. I haven't found a way to be hurt by having a cube fall on me.

Falsi sumus crusto!
TheTobbell wrote:
czolko wrote:
I'm not sure, but trigger_hurt parented to object should do it.

This would also hurt the Player if the Player is standing on the Object, no good idea..

This wouldn't be a problem if the trigger hurt was activated when the player picks up the physics objects, and deactivated when the player puts the physics object down.

what good would that do? *confused face*

- Science isn't about why, it's about why not!
Page 1 of 2Next