Jump to content


Photo

Weapon damage variable on target distance


10 replies to this topic

#1 Miros

Miros
  • Members
  • 17 posts

Posted 06 July 2018 - 07:03 PM

Hi!

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)

Thanks!

#2 Gambit

Gambit

    title available

  • Members
  • 5,620 posts
  • Location:Athens, Greece

Posted 06 July 2018 - 07:24 PM

Is there any way to have a weapon upgrade force another hardpoint upgrade?

Not though AE :sad2:

Nor can a weapon upgrade or a weapon, directly apply any modifiers to the entity that gets it :thumbsdownsmiley:

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 :grad:

 

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.

-In search of Papasmurf...

#3 Miros

Miros
  • Members
  • 17 posts

Posted 06 July 2018 - 07:39 PM

Yeah, I thought about the addon thing... but it's a squad we're talking about :smile2ap:

 

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 :whatoa:

 

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.


#4 Gambit

Gambit

    title available

  • Members
  • 5,620 posts
  • Location:Athens, Greece

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! :grad:

... Just to say that the commands are: Squad_UpgradeWeapon and Squad_WeaponCount (I know you know, I am just being a spelling troll :p )

There is also the boolean Squad_CanUpgradeWeapon.

They won't be on the same entity, though.

Entities are not afar most of the times... :p

By the way, is there any other weapon upgrade for that squad?

 

New Alternative

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.

-In search of Papasmurf...

#5 Shodar87

Shodar87

    title available

  • Members
  • 1,243 posts

Posted 07 July 2018 - 06:02 PM

Maybe something like Oblitz? More hardpoints + different ranges?



#6 Gambit

Gambit

    title available

  • Members
  • 5,620 posts
  • Location:Athens, Greece

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 :thumbsuphappy:


Edited by Gambit, 07 July 2018 - 06:42 PM.

-In search of Papasmurf...

#7 Miros

Miros
  • Members
  • 17 posts

Posted 08 July 2018 - 08:42 AM

Care to elaborate?

 

Edit: So, how does that work? All weapons in the group fire simultaneously? And what about the "armour_damage" values of the group itself?


Edited by Miros, 08 July 2018 - 09:00 AM.


#8 Gambit

Gambit

    title available

  • Members
  • 5,620 posts
  • Location:Athens, Greece

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...


-In search of Papasmurf...

#9 Industrial_Strength

Industrial_Strength

    Diesel Powered

  • Members
  • 152 posts
  • Location:North America
  • Projects:Surviving, DOW 1
  •  S/A: Random Delays [See Profile]

Posted 08 July 2018 - 11:27 AM

I'm not familiar with the answer myself sadly enough. I may be able to help some regardless; hopefully. 🤞

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.

"I do what I can to serve the public."

#10 LemonTree

LemonTree
  • Members
  • 70 posts

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_groupO1.png?width=1259&height=298

 

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

O2.png?width=867&height=616

 

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.


#11 fuggles

fuggles

    title available

  • Members
  • 4,209 posts

Posted 11 July 2018 - 03:18 AM

You could make it a scar ability?



Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users