Fatal touch
Hi pips.
I'm almost done with my plugin, thanks to you too. ;) Only think that's not completed is fatal touch. I need a function that detects touch of two players and kills touched. Toucher should be teleported to touched's position, but it's not important. Any idea?? Thnx. |
Code:
|
Code:
Put there were he is touched. |
Man, great forum, thank you for your replies. I always get an answer here in notime. :wink:
|
v3x, why the hell do you do checks to ensure that it's a player since your register_touch is only called when two players touch each other anyway? Also, this may kill both players at the same time.
|
lawl, I dunno.. Ignore me for now as I go to bed, or pass out at my pc..
|
Is it possible to detect touch of two players where one is SOLID_NOT? Are there other solid state settings to do this? I replaced SOLID_NOT with SOLID_TRIGGER, but server crashes when 2 players collide. :(
|
I should tell you more: Im modifying ClimbTimer plugin for our jump server. It's importat for each player not to block other players. But some of them do it. If there is blocker and blocked, I want blocker to get killed immediately after collision with blocked and get blocked teleported to blocker's position. But it's not working until both blocker and blocked have SOLID_SLIDEBOX and that means, both of them are blockers.
|
| All times are GMT -4. The time now is 14:33. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.