View Single Post
thecount
Veteran Member
Join Date: Jul 2013
Old 11-22-2014 , 23:58   Re: Control Speed of AI Only?
Reply With Quote #3

Quote:
Originally Posted by zeroibis View Post
If you can detect fake clients (ie AI players) and change a players speed you just detect all fake clients and change their speed.
I'm not experienced with this game, but I think the zombies might not be classified as actual clients. I'm thinking it's sort of like L4D2, but I may be wrong. So in that case, the zombies would not be able to be found by looping through all clients. Therefore, you would need to search through all entities of whatever the classname is and then adjust the (keyvalue?) speed that way.

PHP Code:
new ent = -1;
while((
ent FindEntityByClassname(ent"zombie?")) != -1){//For every zombie class
//Change speed here

OR

PHP Code:
public OnEntityCreated(ent, const String:classname[]){
if(
StrEqual(classname"zombie?"false)){
//Change speed here
}


Last edited by thecount; 11-23-2014 at 00:01.
thecount is offline