Feature for a KZ plugin.. Need Help :)
I help admin a KZ server, and I do updates and changes on the main plugin used, however, one feature I am trying to implement is causing me some trouble (I have no idea where to start ^^)
I wanted to add some code which constantly monitors players positions, and when they get within a certain distance of another player, semiclip is set on them so they can pass through each other, and then when they get out of range, they turn back solid so they can use timers/buttons/doors etc without any hassel. I had a quick look through the forum and couldnt find much related to this that actually worked, so any help would be appreciated. I've seen this in use on 3 servers, so its possible, it's just beyond my capabilities :( Thanks. |
Code:
Try that :) |
I'll give that a try tomorrow, hopefully it will work :)
Thanks. |
Errors found, code edited :)
|
oo thanks, i didnt get a chance to test it yet, will try and give this one a test tonight. :)
errors on compile: Error: Array must be indexed (variable "target") on line 45 :? |
Found n' Fixed
|
Try using find_ent_in_sphere insteed
And the commands for semiclip is Code:
Code:
|
1) Good idea :) I always forget about that function
2) Not to sure about that one. |
Thanks for fixing it again :)
however when I went to test it, as soon as I created a localserver and got in game, it detects me as another player and sets semiclip on me, even with no other players there, is there anyway to make it so it checks if the player found is the actual player.. if that makes sense, so like it only sets semiclip if the player found is not yourself? Thanks again, your being a great help. |
Code:
|
| All times are GMT -4. The time now is 20:21. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.