Opened 18 years ago

Last modified 12 years ago

#18 closed enhancement

[PATCH] Entity - Attack - Area Ranged — at Version 3

Reported by: Stuart Walpole Owned by: Jonathan Waller
Priority: Must Have Milestone: Alpha 11
Component: Core engine Keywords: patch
Cc: Patch:

Description (last modified by Jonathan Waller)

  • Archers should have inaccurate area (non-focused-fire) attacks (not guaranteed to hit target).
  • Splash damage should be implemented

Change History (5)

comment:1 by (none), 14 years ago

Milestone: Advanced Playability Demo

Milestone Advanced Playability Demo deleted

comment:2 by Andrew, 14 years ago

Milestone: Backlog

comment:3 by Jonathan Waller, 12 years ago

Description: modified (diff)
Keywords: review added
Milestone: BacklogAlpha 9
Owner: set to Jonathan Waller
Status: newassigned
Summary: Entity - Attack - Area Ranged[PATCH] Entity - Attack - Area Ranged

I have attached a patch. The graphical arrow collision is not a perfect match for the gameplay one but it should be close enough.

The code uses a Gaussian distribution and defines spread which determines the scaling of the gaussian. The Gaussian will have width Spread at distance 40m from the archer. This means about 2/3 of the missiles will hit a target of size spread at 40m. The spread is linearly proportional to distance.

Issues: If the entity being attacked dies before the missile arrives then the missile has no effect.

I consider these to be minor

by Jonathan Waller, 12 years ago

Attachment: advanced_attack.diff added

by Jonathan Waller, 12 years ago

Attachment: advanced_attack-220212.diff added
Note: See TracTickets for help on using tickets.