UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Starting Power By default

broken avatar :(
Created 7 years ago
by OptomusPrime22
0 Members and 1 Guest are viewing this topic.
1,668 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 10 January 2016
Last active: 7 years ago
Posts
23
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
OptomusPrime22's Contact & Social Links
When I load in I want the power to be on, my map is medieval style and I replaced all the perk machine models with beer kegs.... I don't want to ruin map vibes by turning on the power.
Marked as best answer by OptomusPrime22 7 years ago
broken avatar :(
×
broken avatar :(
Location: usNUKETOWN
Date Registered: 19 February 2014
Last active: 7 years ago
Posts
177
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Zombie Specialist
Signature
×
thezombieproject's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Oil Rig Beta Access
Oil Rig Beta Access
REMOVE SWITCH FROM YOUR MAP.
In your mapname.gsc add this to the bottom
Code Snippet
Plaintext
function CheckForPowerSwitchTZP()
{ level flag::wait_till( "initial_blackscreen_passed" ); wait 5;
Power = GetEntArray( "use_elec_switch", "targetname" );
if(!isdefined(Power) || !Power.size)
{
// level.PowerSwitchExist = false;
level flag::set("power_on");
// turns global power on - tzp
}
}

Also in mapname.gsc  under:  zm_usermap::main();
add this line
Code Snippet
Plaintext
thread CheckForPowerSwitchTZP();

If there is no switch on your map global power will be turned on.
I use this on a test map. Im not sure if there is an easier way ive never looked into it
either way this should work fine.

If you want to keep power switch for pap ect and just want perks only to be powered on at the start
i have a script for that also just let me know.
Last Edit: January 15, 2017, 05:27:38 am by thezombieproject

 
Loading ...