Garry's Mod

Garry's Mod

283 ratings
[Modified] Realistic Combine Soldier AI
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Effects
Addon Tags: Roleplay, Scenic, Realism
File Size
Posted
Updated
64.274 KB
3 Jun, 2024 @ 2:05pm
6 Jun, 2024 @ 2:51am
9 Change Notes ( view )

Subscribe to download
[Modified] Realistic Combine Soldier AI

Description
Small optimizations and changes for Realistic Combine Soldier AI.

List of things that I did:
1) Localized things that should be local (including things that are predefined in global scope, VERY EPIC PERFORMANCE UPLIFT 1000% MORE FPS)
2) Swapped entity loops with ents.iterator and player.iterator
3) Limited some features to run once a second
4) Removed deprecated functions and replaced them with more performant and up to date variants
5) Put some results from functions into separate variables as they were getting calculated for every if branch (probably not due to the jit compiler, but still)
6) Made the logic run on metrocops and citizens (rebels)

Does everything work as intended? ♥♥♥♥ if I know, but I do know my fps doesn't go down the shiттer when having more than 5 npc's. (no offense, kenni, your mod is awesome)

Set these commands if you don't like soldiers with shotguns shooting all over the room but you:
kn_realistic_combine_accuracy 4; kn_realistic_combine_shooting_and_moving_values 1

Original: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2807525115

Not a bad alternative