Is there a way to make Mauga’s guns have very short range and faster reload? What would be the script for that?
(faster reload script)
Ongoing Event Trigger
- Hero(Magua)
Conditions
- Is Reloading
Actions
- Wait({Time for you reload}, Abort if Condition False)
- Set Ammo(0, Max Ammo(0)
- Cancel Primary Action
(shorter range script, best i can think of right now is to heal damage from far away)
Damage Dealt Trigger
- Hero(Magua)
Conditions
- Event Ability == Button(Primary Fire)
- Distance Between(Event Player, Victim) > {Max Distance you want}
Actions
- Set Player Variable(Distance, (Distance Between(Event Player, Victim) - {Falloff Start}) / {Falloff End} - {Falloff Start}
- Set Player Variable(Damage, Distance * {Minimum Damage} + (1 - Distance Distance) * {Max Damage})
- Heal(Victim, null, Event Damage - Damage)
(if you don’t understand any of that watch the same video I did to understand it)
https://www.youtube.com/watch?v=VL2VnkNJPpE
Sorry, about me being new to this but I’m struggling on how to actually put this in. Are you able to put this in code. As I try to put some of these rules, actions, and conditions. I’m not able to follow up according to game with the exact coding/actions you have written out.
After creating the script in-game its apparent want you want is not possible due to bugs in the workshop.
The reload script doesn’t work because Set Ammo
does absolutely nothing when used on Mauga.
The Range script doesn’t work because every Ability/Weapon returns Null for Event Ability
meaning its impossible to tell what caused the damage. other than damage checks which is inconsistent at best.
Damage checks could straight up just not work when any Damage Buff/Debuff is Applied and on top of that could allow it to trigger on anything like melee and abilities.
The check needed would be 1.2-8
to account for the in-game falloff & crits from headshots without any consideration for buffs & Debuffs.
ah ok. making sense now. tyvm