So I am currently playing around with the physics. Single-target physics appear to work just fine, however trying to make an area attack with a radial physics effect doesn't seem to work for me.
I made a testmap, where I tried to replicate the siege tank sieged attack. I use 2 weapons, one of them executes the original siege weapon effect, the other weapon executes an exact replica. I copied the damage effect, the action actor and both of the attached force actors to the letter, every single field besides the id (and some fields referencing these ids) should match, I even made the original siege attack objects parents to the replicas to assure they are the same.
Still, the physics do not seem to work properly for the replica. Only the main weapon target gets affected by the physics, while all units in the AoE besides the target die a regular death. The regular siege tank attack affects all units.
I made some changes to make the differences more obvious, for example I changed the death type to fire (which won't show, if ragdoll physics are used) and set the ragdoll rate of the marine to 100%.
This is the result:
As you can clearly see, the marines at the top all get ragdolled, while for the bottom pack, only the central marine flies away, while the others are set on fire. The ghost obviously uses the standard siege tank weapon, while the marine uses the replicated one.
I attached the map. If anyone can spot my mistake, that would be great :)
When you are testing this, make sure your physics are set to at least high or ultra.
Thanks Bommes in IRC, the problem was solved.
Apparently, if you want any AoE effect to be affected by physics, you have to register it in an event macro called Physic Deaths Swarm Ground (or Air ;) )
Hey.
So I am currently playing around with the physics. Single-target physics appear to work just fine, however trying to make an area attack with a radial physics effect doesn't seem to work for me.
I made a testmap, where I tried to replicate the siege tank sieged attack. I use 2 weapons, one of them executes the original siege weapon effect, the other weapon executes an exact replica. I copied the damage effect, the action actor and both of the attached force actors to the letter, every single field besides the id (and some fields referencing these ids) should match, I even made the original siege attack objects parents to the replicas to assure they are the same.
Still, the physics do not seem to work properly for the replica. Only the main weapon target gets affected by the physics, while all units in the AoE besides the target die a regular death. The regular siege tank attack affects all units.
I made some changes to make the differences more obvious, for example I changed the death type to fire (which won't show, if ragdoll physics are used) and set the ragdoll rate of the marine to 100%.
This is the result:
As you can clearly see, the marines at the top all get ragdolled, while for the bottom pack, only the central marine flies away, while the others are set on fire. The ghost obviously uses the standard siege tank weapon, while the marine uses the replicated one.
I attached the map. If anyone can spot my mistake, that would be great :)
When you are testing this, make sure your physics are set to at least high or ultra.
Thanks Bommes in IRC, the problem was solved.
Apparently, if you want any AoE effect to be affected by physics, you have to register it in an event macro called Physic Deaths Swarm Ground (or Air ;) )