Ham_Touch func_door_rotating
my goal is to stop players being able to block func_door_rotating opening/closing, but Ham_Touch only triggers when the door is fully open/closed, how would i detect players blocking the door opening/closing?
|
Re: Ham_Touch func_door_rotating
Ham_Use?
|
Re: Ham_Touch func_door_rotating
how would i detect if player is blocking door opening with that?
|
Re: Ham_Touch func_door_rotating
Ham_Blocked is sent but it's already too late i think, the code you would need to access belongs to the engine, so you need module such as orpheu or rage and a lot or research.
|
Re: Ham_Touch func_door_rotating
Quote:
|
Re: Ham_Touch func_door_rotating
Quote:
i also tried setting players z origin little bit higher (so the player is in air and the door will just push him out of the way) with no luck. any ideas? |
Re: Ham_Touch func_door_rotating
Set pev_dmg on all doors, once at plugin_init, and players gonna die.
|
Re: Ham_Touch func_door_rotating
When exactly do door damage the player with pev_dmg? When the door are stuck because of player blocking them?
|
Re: Ham_Touch func_door_rotating
Yes.
Code:
void CBaseDoor::Blocked( CBaseEntity *pOther ) |
Re: Ham_Touch func_door_rotating
Quote:
PHP Code:
edit: works with a 0.1 sec task |
| All times are GMT -4. The time now is 21:43. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.