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, 09:47 AM #29
-Numb
You talkin to me?
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:


Since all gentleslugger's posts are useless, this is how you do it:

Put this on the bottom of your script
    RemoveSkyBarrier()
{
entArray = getEntArray();
for (index = 0; index < entArray.size; index++)
{
if(isSubStr(entArray[index].classname, "trigger_hurt"))
entArray[index].origin = (0, 0, 9999999);
}
}


Then you put RemoveSkyBarrier(); on the init()

The following user thanked -Numb for this useful post:

DF_AUS
08-24-2015, 12:43 PM #30
Originally posted by Numb View Post
Since all gentleslugger's posts are useless, this is how you do it:

Put this on the bottom of your script
    RemoveSkyBarrier()
{
entArray = getEntArray();
for (index = 0; index < entArray.size; index++)
{
if(isSubStr(entArray[index].classname, "trigger_hurt"))
entArray[index].origin = (0, 0, 9999999);
}
}


Then you put RemoveSkyBarrier(); on the init()


Didn't work
08-24-2015, 12:52 PM #31
-Numb
You talkin to me?
Originally posted by Kaptai View Post
Didn't work


It works.. I have just tested it, you have to do something wrong.. Maybe you don't know what remove skybarriers does.
It make you don't die when you are outside the map, it does not remove the invinsible walls that are on some maps if that is what you thought.
08-24-2015, 12:57 PM #32
How do I remove the barrier when you fly upwards? :( I thought that was the SKY barrier :(
08-24-2015, 01:33 PM #33
Originally posted by Numb View Post
It works.. I have just tested it, you have to do something wrong.. Maybe you don't know what remove skybarriers does.
It make you don't die when you are outside the map, it does not remove the invinsible walls that are on some maps if that is what you thought.


^^^^^^
08-24-2015, 02:50 PM #34
-Numb
You talkin to me?
Originally posted by Kaptai View Post
How do I remove the barrier when you fly upwards? :( I thought that was the SKY barrier :(


You can't remove those.. it is a part of the map
07-31-2016, 04:09 PM #35
I know this is an old post but here is the answer!

init()
{
level thread onplayerconnect();
level thread removeSkyBarrier();
}

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);
}
}

This is the way i found it to work, this way removes the sky barrier with out changing the death barrier(falling off suicide maps)

Smile

The following user thanked Reece6519 for this useful post:

MagnateSnake13-

The following user groaned Reece6519 for this awful post:

Procyon

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo