Page 1 of 1
Damage Help! [Solved]
Posted: Mon Oct 16, 2017 3:12 am
by DeathTrooperLeader
Is there a way for a weapon to do no damage to allies no matter what settings you have (friendly fire or no friendly fire)
Does anyone know the chunk of code to do this?
Re: Damage Help!
Posted: Mon Oct 16, 2017 1:17 pm
by Marth8880
You could probably write a quick and dirty little OnObjectDamage event handler that checks whenever a unit is hit, then cross-references the damager's and object's team and gives the object the amount of health that was lost. Potential problems would be switching this off when friendly fire is off, as well as getting the amount of damage dealt in the first place.
Re: Damage Help! [Solved]
Posted: Wed Oct 18, 2017 9:32 am
by thelegend
Maybe it's: AffectFriends = "1"
Not sure if it works for damage though; it's from force push _ord.
Re: Damage Help! [Solved]
Posted: Wed Oct 18, 2017 5:01 pm
by Marth8880
thelegend wrote:Maybe it's: AffectFriends = "1"
Not sure if it works for damage though; it's from force push _ord.
Unfortunately that parameter only works with the EmitterOrdnance ordnance class.
Resources:
http://www.secretsociety.com/forum/down ... meters.txt