UGX-Mods

Call of Duty 5: World at War => Tutorial Desk => Scripting => Topic started by: Psych on January 11, 2016, 08:50:12 pm

Title: Water risers with find_flesh (like Shi No Numa)
Post by: Psych on January 11, 2016, 08:50:12 pm
This is a tutorial on how to get risers to work with both the script_noteworthy values

[find_flesh] and [in_water]

at the same time in order for zombies to rise out of the water and attack the player without first having to go through a barricade. (like in Shi No Numa)


All credit for this tutorial goes to mrpeanut188 

http://ugx-mods.com/forum/index.php?action=profile;u=20725 (http://ugx-mods.com/forum/index.php?action=profile;u=20725)

Hit him with a +1 if this was helpful!

Tutorial:

Go into your root folder and copy your _zombiemode_spawner.gsc file and place it into your mod/maps folder if it is NOT in there already.

Next find the following line (line 359 for unchanged file)
Code Snippet
Plaintext
( IsDefined(rise_struct_string) && rise_struct_string == "find_flesh") )
and replace it with this line of text:
Code Snippet
Plaintext
( IsDefined(rise_struct_string) && (rise_struct_string == "find_flesh" || rise_struct_string == "find_flesh_water")) )
Next locate this line (line 3498 for unchanged file):
Code Snippet
Plaintext
if(IsDefined(self.script_noteworthy) && self.script_noteworthy == "in_water")
and replace it with this line:

Code Snippet
Plaintext
if(IsDefined(self.script_noteworthy) && (self.script_noteworthy == "in_water") || self.script_noteworthy == "find_flesh_water")

save and close your file.


Load into radiant and select your riser script struct and press N. Delete the script_noteworthy
Code Snippet
Plaintext
find_flesh or in_water

and change the KEY/VALUE pair to

KEY:
Code Snippet
Plaintext
script_noteworthy
VALUE:
Code Snippet
Plaintext
find_flesh_water
Like this:
(http://i.imgur.com/Ygsqixj.png)
Save and compile to save the radiant changes and it should work!
any questions leave them on this thread and I'll respond ASAP
ENJOY!

Link to original topic:
http://ugx-mods.com/forum/index.php?topic=9758.0#msg107315 (http://ugx-mods.com/forum/index.php?topic=9758.0#msg107315)
Title: Re: Water risers with find_flesh (like Shi No Numa)
Post by: Tim Smith on January 17, 2016, 02:44:44 pm
Nice . But this should go in mapping section right ?
Title: Re: Water risers with find_flesh (like Shi No Numa)
Post by: Scobalula on January 17, 2016, 03:00:33 pm
Nice . But this should go in mapping section right ?

I wouldn't say so since it's mostly script related.