UGX-Mods

Call of Duty 5: World at War => Help Desk => Scripting => Topic started by: Rampage_619 on August 15, 2011, 04:38:11 am

Title: [User Tutorial] Set up Randomized Perk Machines in 1.4 maps
Post by: Rampage_619 on August 15, 2011, 04:38:11 am
Results May Vary

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

Updated Link
http://www.mediafire.com/?ceq2o98mejc6owo (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/ (http://www.xfire.com/video/4be89f/)

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

Credit: Rampage_619
Title: Re: [User Tutorial] Set up Randomized Perk Machines in 1.4 maps
Post by: deathclonic on September 18, 2012, 12:04:32 am
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'
Title: Re: [User Tutorial] Set up Randomized Perk Machines in 1.4 maps
Post by: daedra descent on September 18, 2012, 06:09:41 pm
i thought treyarch included the scripts for that. i'll test when i get my internet back.

hope it does.
Title: Re: [User Tutorial] Set up Randomized Perk Machines in 1.4 maps
Post by: ZMBS DON GOONY on September 19, 2012, 06:38:33 am
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
Title: Re: [User Tutorial] Set up Randomized Perk Machines in 1.4 maps
Post by: knzombiemaster on September 22, 2012, 07:32:22 am
link is broken