26.02.2014, 15:59
You can restrict the weapon damages by many ways actually,
You can either return 0 at onplayerweaponshot (which will only work on weapons that are shot, of course), Set the players team to an equal team so they don't damage theyselves then process the damage at OnPlayerTakeDamage, you can also disable the damage by the previous way and do a completely scriptsided damage.
As for the player losing ammo, yes you can, either by a timer or OnPlayerUpdate (more accurate).
You can either return 0 at onplayerweaponshot (which will only work on weapons that are shot, of course), Set the players team to an equal team so they don't damage theyselves then process the damage at OnPlayerTakeDamage, you can also disable the damage by the previous way and do a completely scriptsided damage.
As for the player losing ammo, yes you can, either by a timer or OnPlayerUpdate (more accurate).