WeaponTypes
Moderator: Moderators
-
- MC: Legacy & Spring 1944 Developer
- Posts: 1948
- Joined: 21 Sep 2004, 08:25
Re: WeaponTypes
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
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
Have you tried SVN?
Re: WeaponTypes
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
There are dynamic damage tags for range but I'm not 100% on how to use them. The changelog says: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?
- 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
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.
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
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
hm, that's interesting since I was testing cylindertargeting on beamlasers when I developed it. more details please?
Re: WeaponTypes
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.imbaczek wrote:hm, that's interesting since I was testing cylindertargeting on beamlasers when I developed it. more details please?
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;
}
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
Wait, shouldn't the Zeus use a regular LaserCannon because lightning wasn't instahit in OTA?
Re: WeaponTypes
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.KDR_11k wrote:Wait, shouldn't the Zeus use a regular LaserCannon because lightning wasn't instahit in OTA?
- Evil4Zerggin
- Posts: 557
- Joined: 16 May 2007, 06:34
Re: WeaponTypes
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.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.
Diagram:
Re: WeaponTypes
Exactly. Much better diagrams than I made. There is a thread about it hidden in uh... some forum. Here.
-
- Posts: 6
- Joined: 17 Mar 2008, 07:35
Re: WeaponTypes
Are there plans for more weapontypes? Not really sure where this goes, though.
Re: WeaponTypes
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
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
Add X, Y and Z coordinates so it's easier to see right away what you are drawing, just for a tip
Re: WeaponTypes
What? Those diagrams are perfectly clear. Do you lack the mental facilities to fill in the blanks?
Re: WeaponTypes
Changed lightingcannon->lightningcannon in the original post.