UGX-Mods

Call of Duty: Black Ops 3 => Help Desk => Scripting => Topic started by: J17K on October 02, 2016, 04:46:51 pm

Title: How to make all zombies sprinters at round 1?
Post by: J17K on October 02, 2016, 04:46:51 pm
I've tried doing this...

Code Snippet
Plaintext
level.zombie_move_speed = 71;

...but after round 1 they go back to being walkers. Any ideas?
Title: Re: How to make all zombies sprinters at round 1?
Post by: treminaor on October 02, 2016, 11:50:48 pm
The zombie speed gets recalculated at the start of each round. You should look though the ZM scripts and see if you can find where that happens.
Title: Re: How to make all zombies sprinters at round 1?
Post by: reckfullies on October 02, 2016, 11:57:09 pm
It's calculated on line 1154 in _zm.gsc

(https://www.ugx-mods.com/forum/proxy.php?request=http%3A%2F%2Fimgur.com%2Fpxd2NAA.jpg&hash=37e9dc260c56fcbe0c38dbef615e3d53358da32a)

It is also calculated on line 4257 in _zm.gsc

(https://www.ugx-mods.com/forum/proxy.php?request=http%3A%2F%2Fimgur.com%2FOukMlsH.jpg&hash=c1db04842a578aa84b5958c777f2345a4e7245ef)

The second one would probably be the one you want to change since it is defined every time round_think is called.
Title: Re: How to make all zombies sprinters at round 1?
Post by: Araxxing on October 03, 2016, 06:14:40 pm
Seems like adding

Code Snippet
Plaintext
	difficulty = 1;
column = int(difficulty) + 1;
zombie_utility::set_zombie_var( "zombie_move_speed_multiplier",  70, false, column );
zombie_utility::set_zombie_var( "zombie_move_speed_multiplier_easy",  70, false, column );

after
Code Snippet
Plaintext
zm_usermap::main();
should keep them sprinting.