[I] area weapons with animated effects have no hitbox(1.08b)

These are old bug reports that have been closed.
User avatar
Fleet Admiral
Fleet Admiral
Posts: 2615
Joined: Mon Oct 29, 2007 9:23 pm
Location: Decoding hieroglyphics on Tan-Ru-Dorem

Fri Jun 08, 2012 3:03 pm

Area weapons that have an animated effect instead of a fixed shockwave are not working in 1.08b.
They were working fine in 1.01

This is the code if the weapon in question:

Code: Select all

<ItemType UNID="&itcirclebeam;"
		name=				"Circle beam"
		level=				"10"
			value=				"780000"
			mass=				"6000"
			frequency=			"rare"
			attributes=			"EnergyWeapon; MajorItem; DigdugWeapons; Ion; Military; Alien; NotForSale"
			unknownType=		"&itUnknownAlienDevice10;"
			description=		"This device is a modified shield generator that creates a circular ion beam around a starship. The lethal burst of ion is defensive and offensive at the same time."
		<Image imageID="&rsItems1;" imageX="96" imageY="0" imageWidth="96" imageHeight="96"/>
			type=				"area"
			damage=				"ion:2d20"
			fireRate=			"15"
			expansionSpeed=		"40"
			missileSpeed=		"0"
			lifetime=			"20"
			powerUse=			"1"
			sound=				"&snLaserCannon;"

			<Image imageID="&rscirclebeam;" 



I attached 2 screenshots,the image effect that the weapon is using and a simple extension that contains a ship and the weapon for quick testing.
(74.23 KiB) Downloaded 117 times
circlebeam.jpg (71.16 KiB) Viewed 2712 times
108b.jpg (45.84 KiB) Viewed 2712 times
101.jpg (71.69 KiB) Viewed 2712 times

Fleet Admiral
Fleet Admiral
Posts: 2506
Joined: Wed Sep 01, 2010 12:54 am

Fri Jun 08, 2012 4:27 pm

EDIT: Nevermind - misunderstood post.
Download and Play in 1.9 beta 1...
Drake Technologies (Alpha): More hardware for combat in parts 1 and 2!
Star Castle Arcade: Play a classic arcade game adventure, with or without more features (like powerups)!
Playership Drones: Buy or restore exotic ships to command!

Other playable mods from 1.8 and 1.7, waiting to be updated...
Godmode v3 (WIP): Dev/cheat tool compatible with D&O parts 1 or 2.

User avatar
Fleet Admiral
Fleet Admiral
Posts: 2615
Joined: Mon Oct 29, 2007 9:23 pm
Location: Decoding hieroglyphics on Tan-Ru-Dorem

Mon Jul 16, 2012 8:03 pm

I completely forgot about this ticket:
Milestone changed from 0.0 Not Scheduled to 1.06

I've changed shockwave weapons to work as follows:

When the shockwave spawns, we pick a set of positions around the circumference of the shockwave to deal damage to targets. Let's call these positions, "damage nodes"

By default there are 32 of these damage nodes distributed around the edge of the shockwave. There is an attribute called areaDamageDensity that controls this. [E.g., areaDamageDensity="60" will use 60 damage nodes instead of 32.]

As the shockwave expands, we check to see if any of these damage nodes intersect with an object. If so, then the object takes damage.

When a damage node intersects with an object, we check the passthrough attribute. If passthrough="0" then the damage node will no longer cause damage as the shockwave expands (to any object). If passthrough="100" then the damage node continues to cause damage no matter how many objects it hits (and could cause damage to the same object multiple times). Any other value is the % chance that the damage node will survive to deal damage in the future.

If you omit the passthrough attribute (as all current shockwave weapons do) then passthrough defaults to 80%. [80% was chosen to not affect game-balance too much.]

I think this algorithm is much more predictable and also affords more possibilities for mods.

User avatar
Militia Captain
Militia Captain
Posts: 779
Joined: Wed Nov 18, 2009 1:01 am
Location: Still looking for the csc Antarctica

Tue Jul 17, 2012 4:11 pm

so, i guess this is invalid, closing...
"Dash_Merc - George is a genius, in that he created this game engine that is infinitely extendable"
"<@sheepluva>Good night everybody, may the source be with you." <-- FOSG dev
"You only need THREE tools in life - WD-40 to make things go, Duct Tape to make things stop And C-4 to make things go away"