Starting Power By default

broken avatar :(
Created 1351 days ago
by OptomusPrime22
0 Members and 1 Guest are viewing this topic.
1,167 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 10 January 2016
Last active: 1251 days 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 on Today at 10:52:46 pm
broken avatar :(
×
broken avatar :(
Location: usNUKETOWN
Date Registered: 19 February 2014
Last active: 1282 days 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
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
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

 

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
Loading ...