quick question

quick question

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderator: Moderators

Post Reply
Dead.Rabit
Posts: 264
Joined: 03 Sep 2005, 04:28

quick question

Post by Dead.Rabit »

heyya, [Leo] has engulfed itself in building XTA CE.

anyway just editing the weapon files.

and accuracy tag has been added to alot of weapons where it wasnt present before... is accuracy a required field in the new spring?

also is there a wikipage or infopage about the weapon.tdf files?
i have searched but come up trumps...

alternatively...
is accuracy expressed as an interger, or percentage?
and higher values indecate more accuracy?
what does it default to?
and
(if its not %) what would emphisise 100% accuracy?

TODO list.
organise wiki.

thanks alot
D.R
0 x

User avatar
FoeOfTheBee
Posts: 557
Joined: 12 May 2005, 18:26

Post by FoeOfTheBee »

0 x

imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Post by imbaczek »

that's, um, outdated. somebody willing to bring that up to date? sources:

http://spring.clan-sy.com/fisheye/brows ... r.h?r=4271
http://spring.clan-sy.com/fisheye/brows ... cpp?r=4316 (concentrate on ParseTAWeapon method.)
0 x

Gnomre
Imperial Winter Developer
Posts: 1754
Joined: 06 Feb 2005, 13:42

Post by Gnomre »

Accuracy is a degree value in terms of 0-65535. It will spray the shell(s) randomly in a cone as defined by this value. Multiply the value in degrees you want by 182 to get the value accuracy uses.

For 100% accuracy (discounting things like gravity, target movement, etc--physical variables) remove the accuracy tag.
0 x

YokoZar
Posts: 883
Joined: 15 Jul 2007, 22:02

Post by YokoZar »

Gnome wrote:Accuracy is a degree value in terms of 0-65535. It will spray the shell(s) randomly in a cone as defined by this value. Multiply the value in degrees you want by 182 to get the value accuracy uses.
What exactly would a 360 degree "cone" entail? The unit possibly shooting in the exact opposite direction?
0 x

Gnomre
Imperial Winter Developer
Posts: 1754
Joined: 06 Feb 2005, 13:42

Post by Gnomre »

Probably, though keep in mind it's random. Think of a shotgun spread (or if you've played Unreal Tournament, the flak cannon) in any FPS game. Raising the accuracy value enlarges the cone, which decreases chances of a perfectly accurate shot. So for a full 360 degree cone with a 5 shell burst, in theory it could fire one in each direction and one straight up, but that'd be an incredibly rare occurance. And I've never tested angles that great, so I'm not entirely sure.
0 x

User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Post by lurker »

Gnome wrote:For 100% accuracy (discounting things like gravity, target movement, etc--physical variables) remove the accuracy tag.
IIRC the default is 3000, not 0. You have to explicitly set it to 0 for perfect accuracy.
0 x

User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

That's tolerance, not accuracy you're thinking of. I think the only thing tolerance does is define the cone in which a turretless weapon will consider the weapon lined up.
0 x

Post Reply

Return to “Game Development”

cron