Would anyone happen to know how to turn OFF damage for the player when using a certain ammotype? For instance, is it possible to make a flak shell that damages others normally, but would ignore the damage (to you) if you got caught in the explosion after you fired it off?
Announcement
Collapse
No announcement yet.
Ignoring player damage from weapon!
Collapse
X
-
There are many ways to modify damage. The most straightforward when creating a new weapon would be to modify the function in your Projectile class that causes the damage to be dealt out.
In a mutator on the other hand you'd spawn a GameRules and use its NetDamage() function to modify damage values based on the original damage, the Pawns getting damaged and instigating the damage as well as hit location, momentum and DamageType.
Comment