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

zombie AI

broken avatar :(
Created 6 years ago
by Captain Zombie
0 Members and 1 Guest are viewing this topic.
2,823 views
broken avatar :(
×
broken avatar :(
Location: eg
Date Registered: 3 July 2016
Last active: 4 years ago
Posts
33
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
Captain Zombie's Contact & Social Links
Hi guys
How can i make zombie in round 1 like in round 10
For example
Run fast and make them more difficult
Thanks
broken avatar :(
×
broken avatar :(
Location: 00MIA - Last seen at [REDACTED].
Date Registered: 10 February 2018
Last active: 4 years ago
Posts
87
Respect
Forum Rank
Rotting Walker
Primary Group
Member
My Contact & Social Links
More
Personal Quote
Eating Doritos and making maps. LEAVE ME ALONE!
Signature
From how you all blew something so small up, I can tell that you all are libtards.  Just worthless fucking libtards.
You went full retard man... never go full retard. :derp:
×
TGMKTheII's Groups
TGMKTheII's Contact & Social Linkshttps://steamcommunity.co
Hi guys
How can i make zombie in round 1 like in round 10
For example
Run fast and make them more difficult
Thanks

Go to zombiemode_spawner.gsc

Search for
Code Snippet
Plaintext
rand = randomintrange( level.zombie_move_speed, level.zombie_move_speed + 35 );



Set all the variables to sprint.




broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 11 March 2014
Last active: 3 years ago
Posts
264
Respect
Forum Rank
Mr. Elemental
Primary Group
Member
Signature
"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live."
×
buttkicker845's Groups
buttkicker845's Contact & Social Links
Set all the variables to sprint.

That does work but then becomes a waste of processing power since it will still be evaluating the random function but always having the same outcome. It would be better  to either remove or comment out all of those lines and simply do
Code Snippet
Plaintext
set_run_speed()
{
       self.zombie_move_speed = "sprint";
}
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 4 years ago
Posts
6,877
Respect
1,004Add +1
Forum Rank
Immortal
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Signature
If you want scripts / features made for you, then contact me by PM or email / skype etc
it will cost you tho so if you have no intention of reciprocating don't even waste my time ;)
×
Harry Bo21's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Harry Bo21's Contact & Social Links[email protected]HarryBo21HarryBo000
level.zonbie_move_speed = 100;

After all players connected

Done

You don’t need to edit stock at all for this

Also if else statements don’t waste processing power mate. The impact would make no difference at all
Last Edit: May 07, 2018, 02:36:43 pm by Harry Bo21
broken avatar :(
×
broken avatar :(
Location: 00MIA - Last seen at [REDACTED].
Date Registered: 10 February 2018
Last active: 4 years ago
Posts
87
Respect
Forum Rank
Rotting Walker
Primary Group
Member
My Contact & Social Links
More
Personal Quote
Eating Doritos and making maps. LEAVE ME ALONE!
×
TGMKTheII's Groups
TGMKTheII's Contact & Social Linkshttps://steamcommunity.co
Also if else statements don’t waste processing power mate. The impact would make no difference at all

Thanks ;)

I set all variables to sprint so if I'd like to easily set it back to walk/run/sprint I could. All ways work so it's whatever he wants :)

level.zonbie_move_speed = 100;

I didn't even know you could do that. Just learned something.. thanks Harry.

 
Loading ...