Can physics object be made to hurt the player like portal

Avatar
kai13XD
44 Posts
Posted Jun 27, 2013
Is it at all possible to make physics objects hurt the player like in the first game of the portal series?
Advertisement
Registered users don’t see ads! Register now!
Avatar
czolko
7 Posts
Posted Jun 27, 2013
Replied 2 hours later
I'm not sure, but trigger_hurt parented to object should do it.
Avatar
User
630 Posts
Posted Jun 27, 2013
Replied 1 hour later

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..

Avatar
josepezdj
2,386 Posts
Posted Jun 27, 2013
Replied 19 minutes later

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 :wink: (no matter where these objects are coming from or are standing on)

Avatar
User
630 Posts
Posted Jun 27, 2013
Replied 1 hour later

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 :wink: (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, ^^

Avatar
FelixGriffin
2,680 Posts
Posted Jun 27, 2013
Replied 1 hour later
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.
Avatar
ChickenMobile
2,460 Posts
Posted Jun 27, 2013
Replied 8 minutes later

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.

Avatar
FelixGriffin
2,680 Posts
Posted Jun 27, 2013
Replied 1 hour later
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.
Avatar
Goldenknighttim
182 Posts
Posted Jun 27, 2013
Replied 6 hours later

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.

Avatar
lord_blex
96 Posts
Posted Jun 27, 2013
Replied 1 hour later
what good would that do? confused face
Avatar
Lpfreaky90
2,842 Posts
Posted Jun 28, 2013
Replied 12 hours later
it's actually one of the "features" of portal I'm happy about that disappeared.
It was highly frustrating to get killed by a high speed cube or camera.

I'm with Lord_Blex; What good would that do?.

Avatar
lord_blex
96 Posts
Posted Jun 28, 2013
Replied 4 hours later
I was actually replying to Goldenknighttim, I just forgot to press quote.
But since this doesn't happen either, it only makes sense to remove any momentum-based damage.
Avatar
josepezdj
2,386 Posts
Posted Jun 28, 2013
Replied 1 hour later
Well, to me, the hurting gave realism to the game. Isn't there Sci-Fi enough already with the portals, teleportation, the long fall boots, etc. that you also want to remove those effects or "features"? Come on guys!!
Avatar
kai13XD
44 Posts
Posted Jun 28, 2013
Replied 27 minutes later

josepezdj wrote:
Well, to me, the hurting gave realism to the game. Isn't there Sci-Fi enough already with the portals, teleportation, the long fall boots, etc. that you also want to remove those effects or "features"? Come on guys!!

I agree and come on how is a freakin hard metal cube flying at you from a faith plate not going to hurt, she only has a t-shirt on not a metal suit. ;D

Avatar
kai13XD
44 Posts
Posted Jun 28, 2013
Replied 12 minutes later
And why else would they have that sign with a cube hitting someone on the head... :biggrin:
Avatar
kai13XD
44 Posts
Posted Jun 28, 2013
Replied 3 minutes later
I have an idea why not parent a trigger_hurt to the cube and then have a trigger_multiple over the trigger_hurt to deactivate it...oh then it would deactivate before it hurts u...lol
Advertisement
Registered users don’t see ads! Register now!
Avatar
Goldenknighttim
182 Posts
Posted Jun 28, 2013
Replied 2 hours later

lord_blex wrote:
I was actually replying to Goldenknighttim, I just forgot to press quote.
But since this doesn't happen either, it only makes sense to remove any momentum-based damage.

Lol, Sorry, I misunderstood the question.