Jump to content

Solution for freeroam warping?


Recommended Posts

Posted

Hey umm, so there's some sort of an issue i'm facing with freeroam warping system

It works fine as intended, but it warps any player directly to the ground position (that becomes a problem when players can break in base(s) which are supposed to be closed, un-enterable)

I have thought of warping player to air instead and perhaps give them a parachute so that they wouldn't fall to death?

What do you guys think? Is there any other (preferably not complicated) solution to this?

If you find my post useful or if it helped you, please like my post :)
Ingame name: ZoeN

560x95_FFFFFF_FF9900_000000_000000.png

Posted

How does the warping work? Can they warp anywhere they want by entering the X, Y and Z co-ordinates or what?

You can use collision boxes around the important areas such as bases. So if they warp inside they'll be warped elsewhere. Or you can check if the position is inside the box BEFORE they warp. Some more details on how it works would be useful :)

If I help you in a thread and you need further assistance, please don't PM me - use the thread you created instead. This way everyone on the forum can take advantage of it.

Posted

Use processLineOfSight or getGroundPosition to get ground position. Note that player must be near that position, otherwise it returns false.

Do you require a paid scripter? Contact me! (Unavailable) Currently I am experienced in Lua, PHP, HTML, CSS, SQL and JS.

Developer and owner of

https://projectbea.st - Project Beast
Posted

@Dealman, i already have a collision rectangle around 1 base atm (area 51) and i've made it on purpose that the players could break in the base by just one way, but this warping thing is easy to discover, and not the way that i'd like to see players breaking in..so not sure what to do

@GTX freeroam resource by default uses getGroundPosition for spawning, and still players can warp inside the base

about processLineOfSight: which coordinates would i process?

If you find my post useful or if it helped you, please like my post :)
Ingame name: ZoeN

560x95_FFFFFF_FF9900_000000_000000.png

Posted

I still haven't got a clue of what warping thing you're talking about, so I can't really help you :P

If I help you in a thread and you need further assistance, please don't PM me - use the thread you created instead. This way everyone on the forum can take advantage of it.

Posted
I still haven't got a clue of what warping thing you're talking about, so I can't really help you :P

First, imagine that area 51 is covered with gates , all gates except roof gates and there's not a single entrance

in freeroam you press F1>Map and you warp to area 51 and you're simply inside

i've made a tiny hole on purpose which through players could break in the base but they can also warp into base with F1 like i said and i wouldn't want them to do that

with parachute thing which i wrote in my first post here, they could at least enter the area a bit more realisticly, but warping would be simply cheating

If you find my post useful or if it helped you, please like my post :)
Ingame name: ZoeN

560x95_FFFFFF_FF9900_000000_000000.png

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...