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

scripting help please

broken avatar :(
Created 13 years ago
by iBarnett
0 Members and 1 Guest are viewing this topic.
1,579 views
broken avatar :(
×
broken avatar :(
Location: caCranbrook
Date Registered: 1 June 2013
Last active: 3 years ago
Posts
334
Respect
Forum Rank
Perk Hacker
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Zombies?
Signature
http://www.speedtest.net/result/3950067582.png

WaW - Nazi_zombie_candyland/Nazi_zombie_ascension2.0  90%-95% (Not completed)
WaW - Nazi_zombie_meth/Nazi_zombie_lamanai  100% (complete)
WaW - Nazi_zombie_killswitch 100% (complete)
WaW - Nazi_zombie_pax 100%  (complete + UGX 1.1 edition)
BO3 - zm_epping_woods 80%
×
iBarnett's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
iBarnett's Contact & Social LinksiBarnettiBarnettiBarnettCorey Barnett
Hey to anyone who may be able to help. I'm wonder if someone could script something so that I have 2 sources of power. One which will power the top part of the map and the second for the lower.
broken avatar :(
×
broken avatar :(
drago
Location: mx
Date Registered: 5 July 2013
Last active: 7 years ago
Posts
941
Respect
Forum Rank
The Decider
Primary Group
Member
My Contact & Social Links
More
×
jjbradman's Groups
jjbradman's Contact & Social Linksjjbradmanjjbradmanjjbradman
it would be easy to do that but it would needa Loooot of  changes in others scripts. as the one for each perk that use the wait_flag  for when power is turned on
broken avatar :(
×
broken avatar :(
☭ Soviet Commander ☭
Location: us
Date Registered: 13 August 2012
Last active: 10 years ago
Posts
2,789
Respect
Forum Rank
King of the Zombies
Primary Group
Community Daedra
My Groups
More
My Contact & Social Links
More
Signature
Let's keep this thread on topic from here on in. -DBZ

+1 to off-topic reply -DBZ

lmao. Too funny.

Goliath Script Placer: http://ugx-mods.com/forum/index.php/topic,11234.msg125257/topicseen.html#new

"...Christ, people. Learn C, instead of just stringing random characters
together until it compiles (with warnings)..."

-Linus Torvalds
×
daedra descent's Groups
Community Daedra
Community Daedra
daedra descent's Contact & Social LinksBlueSoviet
This needs a lot of working, but it does turn specific perk machines on. YOU NEED to have the normal power switch located SOMEWHERE in your map, otherwise it will do some stupid crap. If someone will tell me the script & function where the powerswitch stuff is at i will try to fix the lever and fx issues.

I only did one of the triggers, just copy & rename the function name, trigger targetname, and level notify and you should be good.

Code Snippet
Plaintext
power_switch_1()
{
trig = getent("power_switch_1", "targetname");
trig.is_available = 1;
trig.zombie_cost = 0; //doesn't cost anything... for now
trig sethintstring("Press & hold &&1 to turn perks on");

while(1)
{
trig waittill( "trigger", who );
{
if( is_player_valid( who ) )
{
if( who.score >= trig.zombie_cost )
{
level notify("juggernog_on");
level notify("sleight_on");
trig delete();
}
}
}
}
}
ALL THE PERK NOTIFY OPTIONS
Code Snippet
Plaintext
juggernog_on
Code Snippet
Plaintext
sleight_on
Code Snippet
Plaintext
revive_on
Code Snippet
Plaintext
doubletap_on
Last Edit: December 04, 2013, 02:56:26 am by daedra descent

 
Loading ...