View topic - WeaponTypes



All times are UTC + 1 hour


Post new topic Reply to topic  [ 90 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next
Author Message
 Post subject: Re: WeaponTypes
PostPosted: 01 Jan 2008, 07:00 
BT: Legacy & Spring 1944 Developer

Joined: 21 Sep 2004, 07:25
Location: Needlessly hostile.
Wouldn't it be possible to do that via a missile with a rather low speed, immense lifetime, and such? I seem to remember WD in OTA having these types of missiles which would chase my fucking planes all around the god damned map.


Top
 Offline Profile  
 
 Post subject: Re: WeaponTypes
PostPosted: 01 Jan 2008, 17:41 
User avatar

Joined: 16 Sep 2004, 22:20
Location: I FUCK IN SKY
I tried to do that long ago but the missile wouldn't get past it's range no matter how long it's life. You might be able to do it with an infinite range missile slaved to a limited range dummy weapon.


Top
 Offline Profile  
 
 Post subject: Re: WeaponTypes
PostPosted: 01 Jan 2008, 18:50 
Game Developer
User avatar

Joined: 25 Jun 2006, 07:44
Location: Germany
Have you tried SVN?


Top
 Offline Profile  
 
 Post subject: Re: WeaponTypes
PostPosted: 21 Jan 2008, 07:49 

Joined: 09 Jan 2008, 23:16
Location: IL
quick question here... I know that beam weapons' damage decreases over distances. Is it possible to put this effect on, say, a ballistic weapon?


Top
 Offline Profile  
 
 Post subject: Re: WeaponTypes
PostPosted: 21 Jan 2008, 13:31 

Joined: 18 Dec 2005, 20:21
Location: kent, uk
Ba- wrote:
quick question here... I know that beam weapons' damage decreases over distances. Is it possible to put this effect on, say, a ballistic weapon?


There are dynamic damage tags for range but I'm not 100% on how to use them. The changelog says:
Quote:
- Added float weapon TDF tag DynDamageExp: exponent of the damage formula, 0
(the default) disables dynamic damage. 1 means linear scaling.
- Added float weapon TDF tag DynDamageMin: minimum damage value. (default: 0)
- Added boolean weapon TDF tag DynDamageInverted: inverts the damage curve.
- Added float weapon TDF tag DynDamageRange: if set it will use this value instead of the range value from the weapon in the calculation.


Top
 Offline Profile  
 
 Post subject: Re: WeaponTypes
PostPosted: 21 Jan 2008, 18:28 

Joined: 09 Jan 2008, 23:16
Location: IL
My understanding of these tags is:
1. you can have the damage ratio be exponential, rather than linear
2. minimum value so it does not decrease to 0
3. make it so it does more damage at range rather than less (inverted)
4. perhaps you can use this last tag to define the degree or amplitude of the curve (or line)? By making the dynamic damage range double what the actual range is, the weapon will only have decreased half-way by the time it hits its max range.


Top
 Offline Profile  
 
 Post subject: Re: WeaponTypes
PostPosted: 29 Feb 2008, 07:27 
User avatar

Joined: 23 Oct 2004, 00:43
Bug or feature, but should be known: beamlasers are stuck in sphere-land. No cylindertargetting... and I doubt they work with the heightmod stuff either, but haven't bothered to test.


Top
 Offline Profile  
 
 Post subject: Re: WeaponTypes
PostPosted: 02 Mar 2008, 11:27 
Moderator

Joined: 22 Aug 2006, 15:19
hm, that's interesting since I was testing cylindertargeting on beamlasers when I developed it. more details please?


Top
 Offline Profile  
 
 Post subject: Re: WeaponTypes
PostPosted: 02 Mar 2008, 16:41 
User avatar

Joined: 23 Oct 2004, 00:43
imbaczek wrote:
hm, that's interesting since I was testing cylindertargeting on beamlasers when I developed it. more details please?


I'm working on an OTA-purist mod, forked from Classic TA - as part of the mod, I'm using Beamlasers on Zeus because lighting fails to support collidefriendly.

Here's the weapon code from weapons.TDF

Code:
[LIGHTNING]
   {
   ID=26;
   name=Lightning Gun;
   rendertype=0;
   lineofsight=1;
   turret=1;

   range=180;
   reloadtime=1.45;
   weaponvelocity=400;
   areaofeffect=8;
   duration=10;
   soundtrigger=1;

   soundstart=lghthvy1;
   soundhit=lashit;

   firestarter=50;

   beamweapon=1;
   color=208;   /* Yellow */
   color2=196;

   beamlaser=1;
   minIntensity=1;
   thickness=2;
   corethickness=0.5;
   laserflaresize=10;
   targetmoveerror=0.2;
   beamtime=0;
   beamttl=15;
   beamdecay =0.75;
   rgbcolor=0.75 0.25 1;

   explosiongaf=fx;
   explosionart=explode5;

   waterexplosiongaf=fx;
   waterexplosionart=h2oboom1;

   startsmoke=1;

   AvoidFriendly=0;
   CollideFriendly=0;

   [DAMAGE]
      {
      default=180;
      }
   CraterMult=0;
   CraterBoost=0;
   ImpulseFactor=0;
   ImpulseBoost=0;
   LeadLimit=0;
   CylinderTargetting=10;
   LeadBonus=2;
   HeightBoostFactor=0;
}

(yes, I know the lead attributes aren't necessary for a beamweapon - they were applied en-mass by batch-script)

And here's a screenshot, taken on castles (click thumb to examine):
Image

You can see the range circle failing to reach lower. When I turned off the beamlaser and made it into a pew-pew, it worked fine. Really, I probably do that anyways, since OTA lightnings weren't hitscan. But I thought you'd want to know.


Top
 Offline Profile  
 
 Post subject: Re: WeaponTypes
PostPosted: 02 Mar 2008, 17:48 
Game Developer
User avatar

Joined: 25 Jun 2006, 07:44
Location: Germany
Wait, shouldn't the Zeus use a regular LaserCannon because lightning wasn't instahit in OTA?


Top
 Offline Profile  
 
 Post subject: Re: WeaponTypes
PostPosted: 02 Mar 2008, 20:15 
User avatar

Joined: 23 Oct 2004, 00:43
KDR_11k wrote:
Wait, shouldn't the Zeus use a regular LaserCannon because lightning wasn't instahit in OTA?


Yeah, I realized that soon after I discovered the bug. The beamlaser hack was a quick fix for the lightning collidefriendly bug to play CTA with some friends. Now that I'm trying to clean up CTA further into my new mod and found the aforementioned cylindrical bug and remembered the Zeus wasn't instahit in OTA, so the bug is moot for me - but I thought other players might want to know.


Top
 Offline Profile  
 
 Post subject: Re: WeaponTypes
PostPosted: 02 Mar 2008, 23:32 
Lua Coder
User avatar

Joined: 16 May 2007, 05:34
Location: [W]Evil4Zerggin, [W]DaLicheMob, [W]Mechaveli
tombom wrote:
There are dynamic damage tags for range but I'm not 100% on how to use them. The changelog says:
Quote:
- Added float weapon TDF tag DynDamageExp: exponent of the damage formula, 0
(the default) disables dynamic damage. 1 means linear scaling.
- Added float weapon TDF tag DynDamageMin: minimum damage value. (default: 0)
- Added boolean weapon TDF tag DynDamageInverted: inverts the damage curve.
- Added float weapon TDF tag DynDamageRange: if set it will use this value instead of the range value from the weapon in the calculation.


The damage of the weapon is multiplied by (1 - (distance/max range)^DynDamageExp), but not below DynDamageMin. If DynDamageRange is set it will use this value instead of the max range. DynDamageInverted subtracts the standard damage curve from the damage.

Diagram:

Image


Top
 Offline Profile  
 
 Post subject: Re: WeaponTypes
PostPosted: 03 Mar 2008, 01:10 
Damned Developer
User avatar

Joined: 01 Jun 2006, 12:15
Location: Banned user for reason “Do not post pictures of people fucking cars”
Exactly. Much better diagrams than I made. There is a thread about it hidden in uh... some forum. Here.


Top
 Offline Profile  
 
 Post subject: Re: WeaponTypes
PostPosted: 03 Mar 2008, 15:25 
User avatar

Joined: 23 Oct 2004, 00:43
f33d th3 w1k1


Top
 Offline Profile  
 
 Post subject: Re: WeaponTypes
PostPosted: 13 Apr 2008, 15:14 

Joined: 17 Mar 2008, 07:35
Are there plans for more weapontypes? Not really sure where this goes, though.


Top
 Offline Profile  
 
 Post subject: Re: WeaponTypes
PostPosted: 13 Apr 2008, 22:07 
Game Developer
User avatar

Joined: 25 Jun 2006, 07:44
Location: Germany
Not really, it'd be better if we had LESS because most weapontypes just annoy us by making some features only work in one type and others in another.


Top
 Offline Profile  
 
 Post subject: Re: WeaponTypes
PostPosted: 28 May 2008, 11:08 

Joined: 03 Feb 2007, 13:15
Guys, you really need to learn draw diagrams ;-)

Add X, Y and Z coordinates so it's easier to see right away what you are drawing, just for a tip ;-)


Top
 Offline Profile  
 
 Post subject: Re: WeaponTypes
PostPosted: 28 May 2008, 18:30 
Game Developer
User avatar

Joined: 25 Jun 2006, 07:44
Location: Germany
What? Those diagrams are perfectly clear. Do you lack the mental facilities to fill in the blanks?


Top
 Offline Profile  
 
 Post subject: Re: WeaponTypes
PostPosted: 01 Jun 2008, 16:54 

Joined: 30 May 2008, 23:27
hahahahaha starburstbomber :P


Top
 Offline Profile  
 
 Post subject: Re: WeaponTypes
PostPosted: 13 Aug 2010, 22:06 
Spring Developer

Joined: 01 Jun 2005, 10:36
Location: The Netherlands
Changed lightingcannon->lightningcannon in the original post.


Top
 Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 90 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Site layout created by Roflcopter et al.