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

[User Tutorial] Set up Randomized Perk Machines in 1.4 maps

broken avatar :(
Created 13 years ago
by Rampage_619
0 Members and 1 Guest are viewing this topic.
4,967 views
broken avatar :(
×
broken avatar :(
Date Registered: 15 August 2011
Last active: 7 years ago
Posts
6
Respect
Forum Rank
Legless Crawler
Primary Group
Community Scripter
My Groups
More
×
Rampage_619's Groups
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Rampage_619's Contact & Social Links
Results May Vary

Download the linked file and open it using Winrar and follow the steps.

Updated Link
http://www.mediafire.com/?ceq2o98mejc6owo

Radiant Setup

Set up all the perk machines as usual. make sure the perk machines are in front of a door so that when a player opens the door the perk machine effects will be really cool to watch.

create a script_origin and give it these kvp's
Code Snippet
Plaintext
"script_noteworthy","corner1_randomVendingLoc

place this script right under the machine. ( doesnt really mater which machine )
get the door which is infront of the origin "corner1_randomVendingLoc"

select the trigger on the door and give it this kvp's
Code Snippet
Plaintext
"zw_corner1_door","script_noteworthy"

do the same step for 3 other doors and script origins.

For Machine 2
Code Snippet
Plaintext
"script_noteworthy","corner2_randomVendingLoc
Code Snippet
Plaintext
"zw_corner2_door","script_noteworthy"

For Machine3
Code Snippet
Plaintext
"script_noteworthy","corner3_randomVendingLoc
Code Snippet
Plaintext
"zw_corner3_door","script_noteworthy"

For Machine 4
Code Snippet
Plaintext
"script_noteworthy","corner4_randomVendingLoc
Code Snippet
Plaintext
"zw_corner4_door","script_noteworthy"

Models for the machines must be changed too. select the perk machine model and change the kvp's of model to the respective machine
Code Snippet
Plaintext
      "zombie_vending_jugg_on_price"     
        "zombie_vending_doubletap_price"
        "zombie_vending_revive_on_price"   
        "zombie_vending_sleight_on_price"

thats it for the radiant set up.

Scripting Setup
place the 3 files from the download in your mods folder.

open your mapname.gsc file and add this line before maps\_zombiemode::main
Code Snippet
Plaintext
maps\zw_rando_zone::main();

so the code looks like this
Code Snippet
Plaintext
 maps\zw_rando_zone::main();
maps\_zombiemode::main();

add these lines to your mapname.csv
Code Snippet
Plaintext
xmodel,zombie_vending_jugg_on_price
xmodel,zombie_vending_doubletap_price
xmodel,zombie_vending_revive_on_price
xmodel,zombie_monkey_bomber
xmodel,zombie_vending_sleight_on_price
fx,misc/fx_zombie_perk_lottery_4
fx,misc/fx_zombie_perk_lottery
fx,misc/fx_zombie_perk_lottery_flash
fx,misc/fx_zombie_perk_lottery_end
rawfile,maps/zw_randomperks.gsc
rawfile,maps/zw_rando_zone.gsc

i have added  a copy of  _zombiemode_perks.gsc. find these lines in this file and comment it
Code Snippet
Plaintext
level thread turn_jugger_on();
level thread turn_doubletap_on();
level thread turn_sleight_on();
level thread turn_revive_on();

comment it like this
Code Snippet
Plaintext
//level thread turn_jugger_on();
//level thread turn_doubletap_on();
//level thread turn_sleight_on();
//level thread turn_revive_on();

Note:
the angles of the machine is take from the original script_origin , so place all the script_origin in the same angles, or you will be having trouble with machines which has a different angles.
Edit the roof on top of the machines so that when taller machines are spawned, they don't intersect with roof.

Video:
http://www.xfire.com/video/4be89f/

if any problem, post it here, ill be updating this thread frequently with fixes.

Credit: Rampage_619
broken avatar :(
×
broken avatar :(
Location: usCentral United States
Date Registered: 4 August 2012
Last active: 6 years ago
Posts
153
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
×
deathclonic's Groups
The models don't randomly show up like in the video and in shi no numa, and I guess the compile can't find the file zw_randomperks.gsc for some reason. Yes it's added in mods/mapname/maps and for debugging I tried raw/maps hoping it would make a difference, then I thought maybe it was a permissions issue so I double checked that and it's still not finding the file in the compile.

So if anyone knows what the issue is for this error let me know

ERROR: Could not open 'maps/zw_randomperks.gsc'
 failed loading 'maps/zw_randomperks.gsc' of type 'rawfile' found in source file '../zone_source/nazi_zombie_The_Arc.csv'
broken avatar :(
×
broken avatar :(
☭ Soviet Commander ☭
Location: us
Date Registered: 13 August 2012
Last active: 8 years ago
Posts
2,790
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
i thought treyarch included the scripts for that. i'll test when i get my internet back.

hope it does.
broken avatar :(
×
broken avatar :(
Date Registered: 14 March 2012
Last active: 11 years ago
Posts
105
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
i love zombies
×
ZMBS DON GOONY's Groups
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
ZMBS DON GOONY's Contact & Social LinksZMBS_DON_GOONY
The models don't randomly show up like in the video and in shi no numa, and I guess the compile can't find the file zw_randomperks.gsc for some reason. Yes it's added in mods/mapname/maps and for debugging I tried raw/maps hoping it would make a difference, then I thought maybe it was a permissions issue so I double checked that and it's still not finding the file in the compile.

So if anyone knows what the issue is for this error let me know

ERROR: Could not open 'maps/zw_randomperks.gsc'
 failed loading 'maps/zw_randomperks.gsc' of type 'rawfile' found in source file '../zone_source/nazi_zombie_The_Arc.csv'

make sure waw is not open when compiling that will cause problems also try copying the script to another gsc just create one
broken avatar :(
×
broken avatar :(
Date Registered: 7 August 2012
Last active: 7 years ago
Posts
75
Respect
Forum Rank
Rotting Walker
Primary Group
Member
My Contact & Social Links
More
×
knzombiemaster's Contact & Social LinksNiklas3411gangxta987
link is broken

 
Loading ...