Page 1 of 1

Prototype/Gun::attack_target_mask & ignore_target_mask

Posted: Fri Aug 28, 2020 9:04 am
by Schallfalke
I have read articles about target masks.
Next I found out Prototype/Turret has attack_target_mask & ignore_target_mask, allowing a turret to not fire at blacklisted types.

I want to request the same properties on either Prototype/Gun or within its attack_parameters. Spidertrons have auto-targeting, so would take advantage of these properties.

Use case: A specific anti-XXX gun on Spidertrons.
Using the above-quoted example of water turret, the modified Spidertron water cannon should not shoot at the spawners and worms. During weapon cycling, the water cannon would shoot the biters or spitters around instead.