Hey guys, I searched the forums but couldn't find much:
Is there any background on weapon accuracy? I.e. hit to fire ratios, and long range weapons?
-Shade
Unit Accuracy?
Moderator: Moderators
- [K.B.] Napalm Cobra
- Posts: 1222
- Joined: 16 Aug 2004, 06:15
- PauloMorfeo
- Posts: 2004
- Joined: 15 Dec 2004, 20:53
Re: Unit Accuracy?
The Spring engine has the ability for diferent weapon ranges, diferent fire ratios, diferent accuracies, etc. (i'm mostly sure...)Shade wrote:Is there any background on weapon accuracy? I.e. hit to fire ratios, and long range weapons?
Those are all defined in the unit definition. So, that is generally defined in the unit pack. The unit pack to be used seems it will be a variation of XTA that is itself a variation of TA, that is, a rebalanced set of TA's units.
Yes. Every weapon has a weaponname.tdf (or being included in a common .tdf) where the stats are mentioned. Here, for example, I have brought you the Big Bertha weapon file:
[code][ARM_BERTHACANNON]
{
ID=72;
name=Bertha Cannon;
rendertype=4;
ballistic=1;
turret=1;
range=4096; // The range
reloadtime=7; // Reloading time
weaponvelocity=800;
energypershot=1500;
areaofeffect=80;
soundstart=xplonuk4;
soundhit=xplonuk1;
firestarter=50; // Percent chance to set trees on fire
accuracy=500; // Accuracy. The greater the value, the worse is the aim
aimrate=2500;
tolerance=300;
holdtime=1;
explosiongaf=fx;
explosionart=NUKE1;
waterexplosiongaf=fx;
waterexplosionart=h2oboom2;
lavaexplosiongaf=fx;
lavaexplosionart=lavasplashlg;
startsmoke=1;
[DAMAGE]
{
default=2000;
}
}[/code]
These are the settings for the Bertha weapon. From this file, the TA (and spring) engine calculates the physics behind the shot by rating what kind of animation the bullet/missle/projectile uses, at what speed it goes, what trajectory it follows and so on.
If you want to check out some weapons yourself, download the HPI Viewer and open totala1.hpi in your TA folder (C:\Cavedog\TOTALA\ by default).
[code][ARM_BERTHACANNON]
{
ID=72;
name=Bertha Cannon;
rendertype=4;
ballistic=1;
turret=1;
range=4096; // The range
reloadtime=7; // Reloading time
weaponvelocity=800;
energypershot=1500;
areaofeffect=80;
soundstart=xplonuk4;
soundhit=xplonuk1;
firestarter=50; // Percent chance to set trees on fire
accuracy=500; // Accuracy. The greater the value, the worse is the aim
aimrate=2500;
tolerance=300;
holdtime=1;
explosiongaf=fx;
explosionart=NUKE1;
waterexplosiongaf=fx;
waterexplosionart=h2oboom2;
lavaexplosiongaf=fx;
lavaexplosionart=lavasplashlg;
startsmoke=1;
[DAMAGE]
{
default=2000;
}
}[/code]
These are the settings for the Bertha weapon. From this file, the TA (and spring) engine calculates the physics behind the shot by rating what kind of animation the bullet/missle/projectile uses, at what speed it goes, what trajectory it follows and so on.
If you want to check out some weapons yourself, download the HPI Viewer and open totala1.hpi in your TA folder (C:\Cavedog\TOTALA\ by default).