Hey,
I have this weird bug: my Taurens have pulverize, but when they trigger it against an uncommandable enemy unit (I allowed it) then they loose their "pulverize" ability. New taurens still have it, only until they trigger it against the same kind of enemy. It seems weird to me because this is supposed to be a permanent behavior and I couldn't see a place where it gets disabled.
I saw that the Pulverize behavior improves crit chance by 0.25 and I saw how otauCrit applies this damage in an area, but I can't see how the otauCrit effect is ever applied (no link from the weapon to it). Can you help ? I don't know what effect otauCrit has besides this damage, but it seems to disable the pulverize behavior on my Taurens...
Note:
- my Tauren are also uncommandable themselves
- they keep their pulverize behavior when attacking regular enemies like creeps
Please don't care about the pulverize, it's actually implemented 3 years ago, and didn't meet the standard of the whole mod, and I'm going to redo it a whole.
It's actually done by part-trigger. When the tauren start to attack, the trigger would check the target type and apply a disable buff "AwarController" if the target is invalid. You can see the 'Awar - Target Check' trigger.
I did this because buffs can't validate the target you are attacking, and you can't do it with the DamageResponse, since it only work on hit, and you will need to play the crit animation when unit starts attack.
But there are many disavatanges of this trigger-method:
1. Need to modify the unit's weapon effect, you can't just give the ability to another unit, and made it work instantly - And I want my mod as easy to use as possible
2. Trigger is slow, and is possible for the players to use the Attack-Cancel to 'cheat' the crit of the very first attack, since the trigger caputure the attack slower than the data.
3. Trigger in ability is generally bad. Hard to override in the maps, etc.
I've found a better way to do it 1.5 years ago, which don't need trigger to do target filter. But this ability is done before that.
It would require a whole long tutorial to discript the new method, but you can see the Searing Arrow and Incinerate, they are good examples.
Back to your topic: For your case, you can either wait for the void update of the war3 mod, or go on with the 2.0 one. Since your Tauren is uncommandable, it's not possile for the players to use Attack-Cancel to cheat the first attack.
You can just use trigger to remove AwarController from the tauren (Or directly modify this buff, to make it won't disable pulverize ), and then they can crit anything you want.
I was able to find the AwarController behavior, and in its "Modifications+" see that "Pulverize" was in the Disabled Behaviors. Removed it from the disabled behaviors and it now works. I just needed it to work now.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hey, I have this weird bug: my Taurens have pulverize, but when they trigger it against an uncommandable enemy unit (I allowed it) then they loose their "pulverize" ability. New taurens still have it, only until they trigger it against the same kind of enemy. It seems weird to me because this is supposed to be a permanent behavior and I couldn't see a place where it gets disabled.
I saw that the Pulverize behavior improves crit chance by 0.25 and I saw how otauCrit applies this damage in an area, but I can't see how the otauCrit effect is ever applied (no link from the weapon to it). Can you help ? I don't know what effect otauCrit has besides this damage, but it seems to disable the pulverize behavior on my Taurens...
Note: - my Tauren are also uncommandable themselves - they keep their pulverize behavior when attacking regular enemies like creeps
Please don't care about the pulverize, it's actually implemented 3 years ago, and didn't meet the standard of the whole mod, and I'm going to redo it a whole.
It's actually done by part-trigger. When the tauren start to attack, the trigger would check the target type and apply a disable buff "AwarController" if the target is invalid. You can see the 'Awar - Target Check' trigger.
I did this because buffs can't validate the target you are attacking, and you can't do it with the DamageResponse, since it only work on hit, and you will need to play the crit animation when unit starts attack.
But there are many disavatanges of this trigger-method:
1. Need to modify the unit's weapon effect, you can't just give the ability to another unit, and made it work instantly - And I want my mod as easy to use as possible
2. Trigger is slow, and is possible for the players to use the Attack-Cancel to 'cheat' the crit of the very first attack, since the trigger caputure the attack slower than the data.
3. Trigger in ability is generally bad. Hard to override in the maps, etc.
I've found a better way to do it 1.5 years ago, which don't need trigger to do target filter. But this ability is done before that.
It would require a whole long tutorial to discript the new method, but you can see the Searing Arrow and Incinerate, they are good examples.
Back to your topic: For your case, you can either wait for the void update of the war3 mod, or go on with the 2.0 one. Since your Tauren is uncommandable, it's not possile for the players to use Attack-Cancel to cheat the first attack.
You can just use trigger to remove AwarController from the tauren (Or directly modify this buff, to make it won't disable pulverize ), and then they can crit anything you want.
Thanks a lot of the help!
I was able to find the AwarController behavior, and in its "Modifications+" see that "Pulverize" was in the Disabled Behaviors. Removed it from the disabled behaviors and it now works. I just needed it to work now.