Weapon damage variable on target distance
Posted 06 July 2018 - 07:03 PM
I'm trying to model a seismic cannon ingame, and trying to implement the varying strength depending on target distance.
My idea is to have the weapon divided into two hardpoints, one with lower reach and another one with larger reach, so those enemies close by get hit by both while those further away only get hit by the latter.
The problem comes when you factor in weapon upgrades. Is there any way to have a weapon upgrade force another hardpoint upgrade?
Is there an easier way I might be missing? (I want to avoid using leaders if possible, the squad should have different caps for leaders and weapon upgrades)
Posted 06 July 2018 - 07:24 PM
Is there any way to have a weapon upgrade force another hardpoint upgrade?
Not though AE
Nor can a weapon upgrade or a weapon, directly apply any modifiers to the entity that gets it
Can't this be done in the model itself?
I mean, why make TWO hardpoints? Make one that does BOTH things... It is possible? (I suck at 3D)
Alternative 1 (best choice)
I hope it is not a squad but a building you want it for,... so you could revert the weapon upgrade, to ADDON. We have YOUR FreeUI marvel, so you can use the squad_from_squad menu, with a custom button
Alternative 2 (not sure)
SCaR,... although I will have to see if there is a boolean function checking if a specific entity has a specific hardpoint... I do not know of such a function. (but let me check, will report back asap)
Edited by Gambit, 06 July 2018 - 07:28 PM.
Posted 06 July 2018 - 07:39 PM
Yeah, I thought about the addon thing... but it's a squad we're talking about
3D is not an issue, but the actual unit damage. The idea is factoring in the target distance as an additional strategic element.
Also, I'm not sure on using SCaR... the race is already preaty heavily scrpted
Edit: Well, I could use a rule with Squad_Weapon_Count and then Squad_Upgrade_Weapon so the number of both weapons in the squad is always the same. They won't be on the same entity, though.
Edited by Miros, 06 July 2018 - 08:01 PM.
Posted 06 July 2018 - 11:27 PM
Hmmm... Looked into SCaRdoc and found only one that is... only remotely useful. Won't do the job (and I am not sure if it works, it seemed non-DoW, because it had a couple strange references)...
Well, I could use a rule with Squad_Weapon_Count and then Squad_Upgrade_Weapon so the number of both weapons in the squad is always the same.
You got me, this is what I was thinking!
... Just to say that the commands are: Squad_UpgradeWeapon and Squad_WeaponCount (I know you know, I am just being a spelling troll )
There is also the boolean Squad_CanUpgradeWeapon.
They won't be on the same entity, though.
Entities are not afar most of the times...
By the way, is there any other weapon upgrade for that squad?
The idea is factoring in the target distance as an additional strategic element.
Here is an exotic alternative: Can you explore the possibility of the impact_ability of the weapon?
When a weapon has a projectile (and ONLY then), this ability kicks in on impact. If the weapon has no projectile, then you must create one, or have a dummy one holding the extra damaging effect.
Can this be helpful somehow?
Edited by Gambit, 06 July 2018 - 11:27 PM.
- Industrial_Strength likes this
Posted 07 July 2018 - 06:41 PM
Whoa, this is an excellent idea! With ONE hardpoint, you get MORE weapons!
I do not know though if the weapon_group mechanic,... DOES support multiple weapon ranges.
But why not? It is a VERY clever suggestion
Edited by Gambit, 07 July 2018 - 06:42 PM.
Posted 08 July 2018 - 09:13 AM
... I have never used the weapon mechanic, so I do not know.
It simply seems the only mechanic that can "load" more than 1 weapon in 1 hardpoint - which seems close to what you are after, brother Miros. The first thing I would do is copy the mechanic from oblits, use 2 weapons, use different distances in each, and check damages based on distance...
Posted 08 July 2018 - 11:27 AM
LemonTree was discussing altering the range of Obliteraters on Discord with Thudo just the other day actually. So they may be able to help you out regarding information on this subject. I don't recall offhand all the conclusions that were reached. My apologies.
He's not online ATM but I sent him a DM on Discord to check this thread when he gets a chance. So hopefully he'll have some input. 😇
Edit: Spelling, Autocorrect Errors & Update to Current Info
Edited by Industrial_Strength, 08 July 2018 - 10:58 PM.
Posted 09 July 2018 - 08:27 AM
Alright alright.Here is what i know about Obliterator regard to their weapon mechanic.Forgive me if i said anything wrong.Basically Obliterator use a range weapon that point to other range weapon,it call chaos_obliterator_ranged_group
Inside that weapon.there is a key atrribute that will specifically name those weapon that obliterator use,it called group_weapon_table,Obliterator have up to 3 gun,but you can add and subtract for your need
From there on you can edit those weapon.I do believe that if you add a long range weapon and a shorter one,the game will use long range weapon by default,or you could chose the preference of those pointed gun to fit your need.Sound easy right,you can even create new gun and have the them pointed
However there is ONE problem,for some odd reason ,if you create a new weapon and point them using the group_weapon_table,that weapon will lose it's Fx visual,blame the chaos god for that one.
BUT if you point to a existing weapon on the weapon table it will work just fine,i manage to add Missle Launcher to obliterator range of weapon and they work just fine.However if i clone the missle launcher,give it a new name,then point the group_weapon_table 's weapon_04 to the custom weapon,the FX wil not be visible (you still deal damage and all the stuff)
So to sum it up ,i think your option are :
Either point them to an unused weapon and custom that unused weapon for your need
Or create a custom weapon,point them from group_weapon_table and working on making the FX visible,i'm don't have much knowledge about FX but i think brother Gambit should be able to do it.He change the bloodly FX and Obliterator model in unification (emperor approved)
I will be waiting to hear more from your testing with this issue, it is rather fascinating to speculate it
Edited by LemonTree, 09 July 2018 - 08:30 AM.
- Industrial_Strength likes this
Reply to this topic
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users