Author Topic: Void Ray (Starcraft II) Type Damage Possible with Freespace?  (Read 2181 times)

0 Members and 1 Guest are viewing this topic.

Void Ray (Starcraft II) Type Damage Possible with Freespace?
I am curious if the armor and or weapons tables allow a damage type similar to what a void ray from starcraft 2 does. The longer a beam is focused on a ship the more damage it does. For example, a beam does 5.5 x weapon damage for the first second, then it doubles the next second until reaching a cap. Just a thought.

 

Offline DahBlount

  • 29
  • Alpine ☆ Cancer Tribulation
    • Skype
    • Steam
Re: Void Ray (Starcraft II) Type Damage Possible with Freespace?
afaik, this is not possible using tables. However, it is possible to modify the damage caused, or healed, by a weapon using LUA scripts.
<Axem> yet still more insightful than #hard-light

<Axem> jad2.23 will just be cat videos

<DahBlount> So
<DahBlount> JAD2.2 is like that
<Axem> maybe
<Axem> it can be whatever you like!
<DahBlount> A Chocolate Sundae?
<Axem> sure

My models: GTF Gilgamesh - GTD Nuadha [Redesigning] - Ningirama [WIP] - GTG Zephyrus

 

Offline headdie

  • i don't use punctuation lol
  • 212
  • Lawful Neutral with a Chaotic outook
    • Skype
    • Twitter
    • Headdie on Deviant Art
Re: Void Ray (Starcraft II) Type Damage Possible with Freespace?
Minister of Interstellar Affairs Sol Union - Retired
quote General Battuta - "FRED is canon!"
Contact me at [email protected]
My Release Thread, Old Release Thread, Celestial Objects Thread, My rubbish attempts at art

 

Offline Aesaar

  • 210
Re: Void Ray (Starcraft II) Type Damage Possible with Freespace?
Yes they can.

 

Offline AdmiralRalwood

  • 211
  • The Cthulhu programmer himself!
    • Skype
    • Steam
    • Twitter
Re: Void Ray (Starcraft II) Type Damage Possible with Freespace?
I'm not sure how it gives the desired effect of increasing damage the longer the beam makes contact.
Ph'nglui mglw'nafh Codethulhu GitHub wgah'nagl fhtagn.

schrödinbug (noun) - a bug that manifests itself in running software after a programmer notices that the code should never have worked in the first place.

When you gaze long into BMPMAN, BMPMAN also gazes into you.

"I am one of the best FREDders on Earth" -General Battuta

<Aesaar> literary criticism is vladimir putin

<MageKing17> "There's probably a reason the code is the way it is" is a very dangerous line of thought. :P
<MageKing17> Because the "reason" often turns out to be "nobody noticed it was wrong".
(the very next day)
<MageKing17> this ****ing code did it to me again
<MageKing17> "That doesn't really make sense to me, but I'll assume it was being done for a reason."
<MageKing17> **** ME
<MageKing17> THE REASON IS PEOPLE ARE STUPID
<MageKing17> ESPECIALLY ME

<MageKing17> God damn, I do not understand how this is breaking.
<MageKing17> Everything points to "this should work fine", and yet it's clearly not working.
<MjnMixael> 2 hours later... "God damn, how did this ever work at all?!"
(...)
<MageKing17> so
<MageKing17> more than two hours
<MageKing17> but once again we have reached the inevitable conclusion
<MageKing17> How did this code ever work in the first place!?

<@The_E> Welcome to OpenGL, where standards compliance is optional, and error reporting inconsistent

<MageKing17> It was all working perfectly until I actually tried it on an actual mission.

<IronWorks> I am useful for FSO stuff again. This is a red-letter day!
* z64555 erases "Thursday" and rewrites it in red ink

<MageKing17> TIL the entire homing code is held up by shoestrings and duct tape, basically.

 

Offline headdie

  • i don't use punctuation lol
  • 212
  • Lawful Neutral with a Chaotic outook
    • Skype
    • Twitter
    • Headdie on Deviant Art
Re: Void Ray (Starcraft II) Type Damage Possible with Freespace?
Beams fire for the set duration.  what I am thinking is that if the beam is treated as fired by the Burst Fire code at the point of it firing like with other weapons then you can use burst fire to stack beams on top of each other so with a 1 second delay with a beam damage of 1dps and a burst of 3, if I am correct you would have

Firing 1 beam at 1dps
+1 second firing 2 beams at 2dps
+2 second firing 3 beams at 3dps

not exactly the requested scaling but there is an increase.  if Substitute would work on turrets then you could use it to create the exact request

edit

I stand corrected Substitute is fixed so you could use substitute to substitute for beams with a higher dps
« Last Edit: September 17, 2014, 04:49:00 pm by headdie »
Minister of Interstellar Affairs Sol Union - Retired
quote General Battuta - "FRED is canon!"
Contact me at [email protected]
My Release Thread, Old Release Thread, Celestial Objects Thread, My rubbish attempts at art

  

Offline DahBlount

  • 29
  • Alpine ☆ Cancer Tribulation
    • Skype
    • Steam
Re: Void Ray (Starcraft II) Type Damage Possible with Freespace?
The above example would work but it would be several beams firing at several different spots so it wouldn't look quite like what is wanted here I believe. I've actually used this for anti-fighter beams in the past and I like the result.

I did some searching through the documentation and it is possible to scale a weapons damage per second based on the length of time it has been fired, but you would be hard pressed to make a script that scales it over the amount of time it has been colliding with the target, if at all.
<Axem> yet still more insightful than #hard-light

<Axem> jad2.23 will just be cat videos

<DahBlount> So
<DahBlount> JAD2.2 is like that
<Axem> maybe
<Axem> it can be whatever you like!
<DahBlount> A Chocolate Sundae?
<Axem> sure

My models: GTF Gilgamesh - GTD Nuadha [Redesigning] - Ningirama [WIP] - GTG Zephyrus

 

Offline 0rph3u5

  • 211
  • Oceans rise. Empires fall.
Re: Void Ray (Starcraft II) Type Damage Possible with Freespace?
Well, I don't know about a purely table-based solution but with SEXP you find under "Change">"Armor and Damage Type" you might get a similar effect, though it might not be very dynamic as you would have to make a chain of events* instead of having the behavior appear "naturally"


* starting with a "fire-beam"-event which then has additional events following it (chained or via "event-true-delay") that would modifiy either the damage-type of the beam or the armor-type of the target
"As you sought to steal a kingdom for yourself, so must you do again, a thousand times over. For a theft, a true theft, must be practiced to be earned." - The terms of Nyrissa's curse, Pathfinder: Kingmaker

==================

"I am Curiosity, and I've always wondered what would become of you, here at the end of the world." - The Guide/The Curious Other, Othercide

"When you work with water, you have to know and respect it. When you labour to subdue it, you have to understand that one day it may rise up and turn all your labours into nothing. For what is water, which seeks to make all things level, which has no taste or colour of its own, but a liquid form of Nothing?" - Graham Swift, Waterland

"...because they are not Dragons."

 
Re: Void Ray (Starcraft II) Type Damage Possible with Freespace?
Thanks for the quick replies. I am curious about creating better distinctions between race technology: Terran, Vasudan and Shivan. When I play stock freespace race weapons seem too similar. They all have primaries, secondaries and drop the same countermeasures. I saw a few things in the armor tables that I don't see used very often and was curious if anybody uses the tables for more than just regular multiplicative calculations.