WeaponTypes - Page 5

WeaponTypes

Resources to get you going on your new project, or to help you over some emergent problems during your development cycle.

Moderators: Moderators, Moderators

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

Re: WeaponTypes

Post by KDR_11k »

Tobi wrote:Changed lightingcannon->lightningcannon in the original post.
In the code too?
0 x

User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: WeaponTypes

Post by jK »

read changelog.txt?
0 x

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

Re: WeaponTypes

Post by KDR_11k »

Not recently.
0 x

raaar
Metal Factions Developer
Posts: 843
Joined: 20 Feb 2010, 12:17

Re: WeaponTypes

Post by raaar »

Howdy

I wanted to disable dynamic damage for beam lasers

I tampered with the following weapon attributes
dynDamageExp
DynDamageMin
DynDamageInverted
DynDamageRange

as indicated in
http://springrts.com/wiki/Weapon_Variables

but it did nothing. The wiki says it should be disabled by default (dynDamageExp=0;), but on the game they do about half the damage at max range... And nothing i do seems to change this.

Am i doing something wrong, or is it a bug?
0 x

User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6140
Joined: 29 Apr 2005, 01:14

Re: WeaponTypes

Post by FLOZi »

Random guess;

are BeamDecay or FallOffRate tags being used?
0 x

raaar
Metal Factions Developer
Posts: 843
Joined: 20 Feb 2010, 12:17

Re: WeaponTypes

Post by raaar »

Beamdecay=0.9 on some, but using the default on others. Falloffrate is using the default.

EDIT: tampered with those and it seems to have no effect whatsoever (tried to set them to 0, to 10.0, and to 0.001)


EDIT2: also tampered with duration and beamtime tags, but no effect (the beam fades quicker or slower, but still does roughly half damage at max range)
0 x

raaar
Metal Factions Developer
Posts: 843
Joined: 20 Feb 2010, 12:17

Re: WeaponTypes

Post by raaar »

so..?

Is it a bug? Is the wiki missing some variables? who has the answer to my questions?
0 x

User avatar
KingRaptor
Zero-K Developer
Posts: 838
Joined: 14 Mar 2007, 03:44

Re: WeaponTypes

Post by KingRaptor »

minIntensity = 1, as noted in the BeamLaser description

S44 may not use beamlasers, but I'm still surprised you didn't remember that tag FLOZi <_<
0 x

User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6140
Joined: 29 Apr 2005, 01:14

Re: WeaponTypes

Post by FLOZi »

KingRaptor wrote:minIntensity = 1, as noted in the BeamLaser description

S44 may not use beamlasers, but I'm still surprised you didn't remember that tag FLOZi <_<
Can't win 'em all, even I'm not perfect. :wink: :mrgreen:

(But yeah, I dunno how I missed that in the wiki :()
0 x

raaar
Metal Factions Developer
Posts: 843
Joined: 20 Feb 2010, 12:17

Re: WeaponTypes

Post by raaar »

I'm not perfect either. Also read the wiki several times and missed it...dah

anyway, setting it to 1 makes the beam do 90% dmg at all ranges, not 100%, which is weird. I got it to deal approximately 100% by setting minintensity to 1.1.


EDIT:
with minintensity=1.0 i tried beamdecay=0, 1 and something in between, and it still did 90% dmg at max range instead of 100%

Btw, are weapon attribute names and values case-sensitive?
(i think most are not)
0 x

8611
XTA Developer
Posts: 242
Joined: 29 Dec 2014, 08:22

Re: WeaponTypes

Post by 8611 »

0 x

Post Reply

Return to “Game Development Tutorials & Resources”