06.02.2014, 21:52
TogglePlayerControllable doesn't garantize you that the player can be killed or not. If you want the player to be invulnerable you should use OnPlayerWeaponShot returning 0 and GiveDamage/TakeDamage for punches, explosions, etc. This doesn't require a fix, because it's possible by scripting, as I always say, programming is much harder than scripting.