Anti base air in base builder mod
Hello ._.
In my server, people always build "air base" which is close to the top of the map. I want to prevent them by detecting their origin ang check it is too close the top map and I will teleport them to spawn point. But I can't find any code about get origin of the top of map, can someone give me one ? This is my code : PHP Code:
|
Re: Anti base air in base builder mod
I think it's a bad way to teleport players who are close to the top of the map. If you add blocks properly then zombies (or whatever) will be able reach you.
If you want to punish properly for aircamp then you have to create an algorithm to detect if player is reachable by the zombies. For example checking distance between blocks so that it won't exceed the player jump distance's limit. Also you have to measure the block size to be sure that zombies will be able to jump on it. If it's too tall then they won't be able to jump on the block and then it will be considered aircamp. But I don't think it's that simple to build such algorithm because there can be tricks to avoid punishment for example if you join two blocks edge by edge than algorithm will say its OK but in reality zombies won't be able to jump on that because there will be no edge to climb on. Maybe there are other methods that don't require distance and view checking, if someone has an idea then you are good to go on. |
Re: Anti base air in base builder mod
Quote:
But those base is quite hard to build or need to many player for building it so I allow them but air camp is very easy to build but very hard to defeat ._. Anyone can help me, please ".' |
Re: Anti base air in base builder mod
Wait a minute. There is actually solution for this. There is a cvar
bb_preptime "30" This will set prepare time and after players build their bases they will be respawned to spawn points and they will have 30 seconds to reach their bases. This way if someone tries to make aircamp they will fail because they won't be able to get to their base. Just activate the cvar by setting your amount of seconds. bb_preptime "30" // 30 seconds to reach the base |
Re: Anti base air in base builder mod
Quote:
actually, I used this before but players don't like it so I have to find another way ._. |
Re: Anti base air in base builder mod
Another way is too hard and you will never get even half of what you want. If spawns are far then increase prepare time or run only well designed maps. I had a BB server and I never heard players complaining about insuficient prepare time.
I guess that they are complaining because they build wrong bases and they can't get into it. I had the same issue but they got used after a time. |
Re: Anti base air in base builder mod
I dont think there is a way, simply enable prepare time so that players can't build impossible bases.
You said sometimes players do not have time to reach their base, give them speed in preptime (not much speed so they wont use surf tricks to go to unreachable bases). Maybe this will help you, maybe it wont. |
| All times are GMT -4. The time now is 09:05. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.