Disallow Targeting Real PlayersSuggestion

These turrets are definitely OP in PvP but are pretty fun to roll around killing zombies with. I made a quick way to not target real players.

Place the following code after line 470 after the parent check.

foreach (var player in BasePlayer.activePlayerList)
{
if (player == target)
{
return false;
}
}

I think this code actually caused micro stutters so I wouldnt recommend using it! Might have been CarTurrets in conjunction with scaled cars though.

Would be cool if WhiteThunder implemented a less expensive way to do this. I know nothing about optimization.

You can do a check like basePlayer.userID.IsSteamId(). I will consider adding this as a config option in the future.

AZ5vJmHAjTOwfVT.png Uberkist

I think this code actually caused micro stutters so I wouldnt recommend using it! Might have been CarTurrets in conjunction with scaled cars though.

You have a plugin to scale cars? Modular cars?