Posts
1
Respect
Forum Rank
Fresh Corpse
Primary Group
Member
Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!in your mapname.gsc file
add-
maps\_powered_stuff::init();
below-
maps\_zombiemode::main();
and either comment out or delete this-
level.DLC3.useElectricSwitch = true;
close mapname.gsc
//------------------
add-
_powered_stuff.gsc file to root>mods>mapname>maps folder
&
_lights.csc file to root>mods>mapname>clientscripts folder
//------------------
add your "on-state" models to your mod.csv like so-
xmodel,lights_indlight_on
xmodel,lights_berlin_subway_hat_100
these are the 2 "on"_models i used.
also add your "on-state" models to _zombiemode.gsc
search-
precache_models()
heres how i have the 2 i used setup in that func-
//on-state models
precacheModel("lights_indlight_on"); //wall light model
precacheModel("lights_berlin_subway_hat_100"); //ceiling light model
close _zombiemode.gsc
//------------------
in dlc3_code.gsc
search-
if( isDefined( level.DLC3.useElectricSwitch ) && level.DLC3.useElectricSwitch )
and it will bring you to the if/else part. it will look like this-
if( isDefined( level.DLC3.useElectricSwitch ) && level.DLC3.useElectricSwitch )
{
level thread power_electric_switch();
}
else
{
level thread power_electric_switch_on();
}
either delete or comment out this if/else.
now... search-
power_electric_switch()
& either delete or comment out the entire function.
close dlc3_code.gsc
//------------------
in _zombiemode_perks.gsc search-
activate_PackAPunch()
and you will see this line-
self setmodel("zombie_vending_packapunch_on");
comment that line out.
for those who dont know you can "comment stuff out" by simply putting // before a line of code... like so-
//self setmodel("zombie_vending_packapunch_on"); <--- this line of code will now NOT get executed.
ok... moving on.
in these functions-
turn_revive_on()
turn_sleight_on()
turn_jugger_on()
turn_doubletap_on()
comment out the setModel line & thread perk_fx line
search-
perk_fx( fx )
comment out the playfx line.
close _zombiemode_perks.gsc
//------------------
open radiant and either delete the power switch script_struct & replace it with a script_origin & give it this kvp-
targetname
power_switch_fx
or...
simply open the generator_map.map file and copy the power switch ive used.
//------------------
now compile the level and build the mod and you should be done.
if you have any issues(maybe i forgot a step?) then message me on ugx discord- Phil81334
in _powered_stuff.gsc
CHANGE:
level.deposit_fuel_trig setHintString("Deposit fuel for 5 seconds of power.");
TO:
level.deposit_fuel_trig setHintString("Deposit fuel for 5 minutes of power.");
You will get 300 sec of power, thats 5 minutes, not seconds
I will use this script now in my new map.Thanks for posting this script.