Can physics object be made to hurt the player like portal
Quote from kai13XD on June 27, 2013, 2:55 amIs it at all possible to make physics objects hurt the player like in the first game of the portal series?
Is it at all possible to make physics objects hurt the player like in the first game of the portal series?
Quote from User on June 27, 2013, 7:34 amczolko 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 would also hurt the Player if the Player is standing on the Object, no good idea..

Quote from josepezdj on June 27, 2013, 7:53 amkai13XD 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
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)
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
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)
Quote from User on June 27, 2013, 9:26 amjosepezdj 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
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, ^^
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
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, ^^
Quote from FelixGriffin on June 27, 2013, 11:19 amPut 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.
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.

Quote from ChickenMobile on June 27, 2013, 11:28 amkai13XD 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.
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.
Quote from FelixGriffin on June 27, 2013, 12:34 pmIn 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.
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.
Quote from Goldenknighttim on June 27, 2013, 6:54 pmTheTobbell 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.
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.