Detect teleporting on fail at bhop map
Hello everybody,
I'd like to know if its possible to detect if a player falls down at a bhop Map and gets teleported back to the beginning of that, and if so, how to do that? Greetz, Kia. |
Re: Detect teleporting on fail at bhop map
Hook Touch on trigger_teleport.
|
Re: Detect teleporting on fail at bhop map
But if I have a map which uses teleporters this would be also called or not?
|
Re: Detect teleporting on fail at bhop map
Yes it would. You could check the teleport destination entity for a certain name using pev_targetname from pev_target of the trigger entity.
However, it wouldn't be a consistent solution for every map but you don't have much of a choice. |
Re: Detect teleporting on fail at bhop map
Hmm okay, I have this code now and it's working, but as I thought it will execute the code also on teleporters.
PHP Code:
|
Re: Detect teleporting on fail at bhop map
Like I said, if it's only one specific map, then find the targetname of the teleport destination and condition it that way.
|
Re: Detect teleporting on fail at bhop map
There are about 100 maps. :D
|
Re: Detect teleporting on fail at bhop map
Well then you may have to look into other alternatives. Perhaps check the distance from the info_teleport_destination to info_player_start?
|
Re: Detect teleporting on fail at bhop map
+ sometimes, only 1 point entity is used for destination of new zone, and for back origin if you've just failed in that new zone.
|
AW: Detect teleporting on fail at bhop map
I'll try that, thank you both for your help.
|
| All times are GMT -4. The time now is 16:23. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.