(0022391)
|
arkore
|
2022-09-11 09:25
(edited on: 2022-09-11 09:26) |
|
Hey, I can solve this using DamageType and DamageFactor (and A_RailAttack) on the puff.
Also found someone saying that this was the puff's main purpose, here:'https://forum.zdoom.org/viewtopic.php?p=361600&sid=a7a79c91c9b6d90a7e31cd70444700cd#p361600 [^]'
So, the difference is basically:
BEFORE: A_RailAttack(1000, 0, 1, "00 FF 85", None, 0, 0, None, 0, 0, 8192, 35, 0.5, 0.5, None)
AFTER: A_RailAttack(1000, 0, 1, "00 FF 85", None, 0, 0, "Railgun2BulletPuff", 0, 0, 8192, 35, 0.5, 0.5, None)
ACTOR Railgun2BulletPuff : BulletPuff {
DamageType "Player"
}
ACTOR SentryGun2 {
DamageFactor "Player", 0
},
This is in addition to already having: Species "Player", +THRUSPECIES, etc.
In conclusion, I guess I didn't work hard enough to find solution, and thought there was an easier way (which +MTHRUSPECIES reminds me of). So, that's why I was surprised I had to setup a DamageType and use DamageFactor for it, because otherwise you could probably just set +MTHRUSPECIES (or equivalent (even +THRUSPECIES)) on puffs (which Zan. 3.1's new sv_shootthroughallies solves now), if you wanted to use Species "Player" on the sentry, for example. But, perhaps Species "Player" is a bad idea.
It's great that, with DamageType/DamageFactor, the Sentry could have multiple DamageFactor types specified, like: PlayerRailgun, PlayerRocket, ...
|
|