Recent content by miroslaw88

  1. M

    Friendly-fire damage PUN Addon

    I added a "team" property to the Item baseclass which is set on OnEquip (based on the player's team). Then I am passing the team property around via the OnDamage calls. Looks like this works but I did have to modify the base code.
  2. M

    Friendly-fire damage PUN Addon

    Hello, I was wondering what the best way to implement friendly-fire damage would be? At the moment I am subclassing "CharacterHealth" and overriding the "OnDamage" method: public override void OnDamage(float amount, Vector3 position, Vector3 direction, float forceMagnitude, int frames, float...
Top