Post: How Can I Add A Function To Remove The Sky Barrier?
08-24-2015, 01:41 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Hello, I use my private edit of RedDotCity by Exelo.

I like building massive staircases, but the skybarrier means that people in my lobbies can't use them.

I looked in the Nuketown Edit of Shark's Zombieland and found a function saying "Remove Sky Barrier"?

I added a Host Menu option: self add_option("SubMenu10", "Remove Sky Barrier", ::RemoveSkyBarrier);

And pasted the following code lower down in the script which I found in the Nuketown Edit:

RemoveSkyBarrier()
{
entArray = getEntArray();
for (index = 0; index < entArray.size; index++)
{
if(isSubStr(entArray[index].classname, "trigger_hurt") && entArray[index].origin[2] > 180)
entArray[index].origin = (0, 0, 9999999);
}
}

When I try and use it in the menu it doesn't work though, can anybody experienced help me out?:madsal:
(adsbygoogle = window.adsbygoogle || []).push({});
08-24-2015, 01:51 AM #2
itsSorrow
In my man cave
Originally posted by Kaptai View Post
Hello, I use my private edit of RedDotCity by Exelo.

I like building massive staircases, but the skybarrier means that people in my lobbies can't use them.

I looked in the Nuketown Edit of Shark's Zombieland and found a function saying "Remove Sky Barrier"?

I added a Host Menu option: self add_option("SubMenu10", "Remove Sky Barrier", ::RemoveSkyBarrier);

And pasted the following code lower down in the script which I found in the Nuketown Edit:

RemoveSkyBarrier()
{
entArray = getEntArray();
for (index = 0; index < entArray.size; index++)
{
if(isSubStr(entArray[index].classname, "trigger_hurt") && entArray[index].origin[2] > 180)
entArray[index].origin = (0, 0, 9999999);
}
}

When I try and use it in the menu it doesn't work though, can anybody experienced help me out?:madsal:


that works..
08-24-2015, 01:53 AM #3
Originally posted by 9658
that works..


When I press the menu option and use jetpack there is still a sky barrier
08-24-2015, 01:59 AM #4
itsSorrow
In my man cave
Originally posted by Kaptai View Post
When I press the menu option and use jetpack there is still a sky barrier


it works...
08-24-2015, 02:03 AM #5
Any advice?...
08-24-2015, 02:08 AM #6
itsSorrow
In my man cave
Originally posted by Kaptai View Post
Any advice?...


look at the floor is lava
08-24-2015, 02:09 AM #7
What are you talking about?
08-24-2015, 02:13 AM #8
itsSorrow
In my man cave
Originally posted by Kaptai View Post
Any advice?...


Originally posted by 9658
look at the floor is lava


.....
08-24-2015, 02:30 AM #9
I tried adding:

hurt_triggers = getentarray( "trigger_hurt", "classname" );
foreach(barrier in hurt_triggers)
{
if (isDefined(barrier))
barrier.origin += (0, 0, 9999999);
}

in the init section. Still seems to be a barrier on nuketown
08-24-2015, 02:47 AM #10
itsSorrow
In my man cave
Originally posted by Kaptai View Post
I tried adding:

hurt_triggers = getentarray( "trigger_hurt", "classname" );
foreach(barrier in hurt_triggers)
{
if (isDefined(barrier))
barrier.origin += (0, 0, 9999999);
}

in the init section. Still seems to be a barrier on nuketown


remove the if(isDefined(barrier)) part

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo