Fractal Softworks Forum

Please login or register.

Login with username, password and session length

Author Topic: Do weapons do less damage with range? Is there a way to mod this?  (Read 1983 times)

rogerbacon

  • Commander
  • ***
  • Posts: 151
    • View Profile

I was just wondering if weapons did less damage at range because I didn't see anything like this in the CSV files. If not, has anyone modded such capability? I want to make a seeking energy weapon that gets weaker and does less damage the farther it travels. Is that possible?
Logged

Snrasha

  • Admiral
  • *****
  • Posts: 705
    • View Profile
Re: Do weapons do less damage with range? Is there a way to mod this?
« Reply #1 on: December 29, 2015, 08:55:51 AM »

Hum, for a mod,  look templar who have a script EveryFrameEffect with a energy weapon who give a homing non-missile (we cannot focus, i believe). I think, if Templar can create this with EveryFrameEffect, you can also.   But yes, it is a good idea.

Templar weapon:
Spoiler
"id":"tem_sentenia",
   "specClass":"projectile",
   "type":"ENERGY",
   "size":"MEDIUM",
   "everyFrameEffect":"data.scripts.weapons.TEM_SenteniaEveryFrameEffect",
[close]

(A type ballistic can have missile projectile, but a energy weapon cannot, so creator of Templar is very ingenious)
Logged
I am pretty bad on english. So, sorry in advance.

Gladiator Society
Add battle options on Com Relay/ Framework for modders for add their own bounty.

Sanguinary Autonomist Defectors A fan-mod of Shadowyard.

rogerbacon

  • Commander
  • ***
  • Posts: 151
    • View Profile
Re: Do weapons do less damage with range? Is there a way to mod this?
« Reply #2 on: December 29, 2015, 09:32:57 AM »

Hum, for a mod,  look templar who have a script EveryFrameEffect with a energy weapon who give a homing non-missile (we cannot focus, i believe). I think, if Templar can create this with EveryFrameEffect, you can also.   But yes, it is a good idea.

Templar weapon:
"id":"tem_sentenia",
   "specClass":"projectile",
   "type":"ENERGY",
   "size":"MEDIUM",
   "everyFrameEffect":"data.scripts.weapons.TEM_SenteniaEveryFrameEffect",


(A type ballistic can have missile projectile, but a energy weapon cannot, so creator of Templar is very ingenious)

Thanks. I downloaded that mod and looked but it seems he just included the compiled version of the java since there is no scripts folder under data. At least I know something like what I want to do is possible.
Logged

Snrasha

  • Admiral
  • *****
  • Posts: 705
    • View Profile
Re: Do weapons do less damage with range? Is there a way to mod this?
« Reply #3 on: December 29, 2015, 10:20:18 AM »

You can use a decompiler for this, you know?

http://www.javadecompilers.com/

You upload, you decompile.
Do not forgot request authorization with author for take script if you use very big(30%+, i think) part of a script of this mod. (Because decompile a .JAR is maybe illegal, i have not idea)

Logged
I am pretty bad on english. So, sorry in advance.

Gladiator Society
Add battle options on Com Relay/ Framework for modders for add their own bounty.

Sanguinary Autonomist Defectors A fan-mod of Shadowyard.

rogerbacon

  • Commander
  • ***
  • Posts: 151
    • View Profile
Re: Do weapons do less damage with range? Is there a way to mod this?
« Reply #4 on: December 29, 2015, 10:38:13 AM »

You can use a decompiler for this, you know?

http://www.javadecompilers.com/

You upload, you decompile.
Do not forgot request authorization with author for take script if you use very big(30%+, i think) part of a script of this mod. (Because decompile a .JAR is maybe illegal, i have not idea)



Wow. Thanks. That was even easier than reversing C#.
Yeah, I'll get permission for anything I use but mostly I just need to look at examples.
Logged