Quote:
Originally Posted by zeroibis
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
}
}