Page 4 of 5
Re: WeaponTypes
Posted: 01 Jan 2008, 07:00
by SpikedHelmet
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.
Re: WeaponTypes
Posted: 01 Jan 2008, 17:41
by Zpock
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.
Re: WeaponTypes
Posted: 01 Jan 2008, 18:50
by KDR_11k
Have you tried SVN?
Re: WeaponTypes
Posted: 21 Jan 2008, 07:49
by Ba-
quick question here... I know that beam weapons' damage decreases over distances. Is it possible to put this effect on, say, a ballistic weapon?
Re: WeaponTypes
Posted: 21 Jan 2008, 13:31
by tombom
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:
- 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.
Re: WeaponTypes
Posted: 21 Jan 2008, 18:28
by Ba-
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.
Re: WeaponTypes
Posted: 29 Feb 2008, 07:27
by Pxtl
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.
Re: WeaponTypes
Posted: 02 Mar 2008, 11:27
by imbaczek
hm, that's interesting since I was testing cylindertargeting on beamlasers when I developed it. more details please?
Re: WeaponTypes
Posted: 02 Mar 2008, 16:41
by Pxtl
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: Select all
[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):
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.
Re: WeaponTypes
Posted: 02 Mar 2008, 17:48
by KDR_11k
Wait, shouldn't the Zeus use a regular LaserCannon because lightning wasn't instahit in OTA?
Re: WeaponTypes
Posted: 02 Mar 2008, 20:15
by Pxtl
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.
Re: WeaponTypes
Posted: 02 Mar 2008, 23:32
by Evil4Zerggin
tombom wrote:There are dynamic damage tags for range but I'm not 100% on how to use them. The changelog says:
- 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:

Re: WeaponTypes
Posted: 03 Mar 2008, 01:10
by rattle
Exactly. Much better diagrams than I made. There is a thread about it hidden in uh... some forum.
Here.
Re: WeaponTypes
Posted: 03 Mar 2008, 15:25
by Pxtl
f33d th3 w1k1
Re: WeaponTypes
Posted: 13 Apr 2008, 16:14
by GenStryker
Are there plans for more weapontypes? Not really sure where this goes, though.
Re: WeaponTypes
Posted: 13 Apr 2008, 23:07
by KDR_11k
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.
Re: WeaponTypes
Posted: 28 May 2008, 12:08
by Fri13
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

Re: WeaponTypes
Posted: 28 May 2008, 19:30
by KDR_11k
What? Those diagrams are perfectly clear. Do you lack the mental facilities to fill in the blanks?
Re: WeaponTypes
Posted: 01 Jun 2008, 17:54
by twinfaith
hahahahaha starburstbomber

Re: WeaponTypes
Posted: 13 Aug 2010, 23:06
by Tobi
Changed lightingcannon->lightningcannon in the original post.