Display arc for limited arc weapons

Display arc for limited arc weapons

Requests for features in the spring code.

Moderator: Moderators

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

Display arc for limited arc weapons

Post by KDR_11k »

It would be useful for units with weapons that can fire only in a certain arc to have that arc displayed when you display their weapon ranges (e.g. when you press A or hold shift over one of them). That way a player can better see what area his units can shoot at in their current positioning.
User avatar
Peet
Malcontent
Posts: 4384
Joined: 27 Feb 2006, 22:04

Post by Peet »

+1!
tombom
Posts: 1933
Joined: 18 Dec 2005, 20:21

Post by tombom »

This would be really useful.
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

Post by FLOZi »

+1 for sure.

Some way of displaying them for defences when placing them would be nice, too...
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Post by Argh »

+1, this would be really useful for debugging their behavior, too.
bwansy
Posts: 385
Joined: 02 May 2006, 05:21

Post by bwansy »

Argh wrote:+1, this would be really useful for debugging their behavior, too.
Yes, like in some older versions of Nanoblobs, the archer could only fire to its right side (or the left? either one).
+1
manored
Posts: 3179
Joined: 15 Nov 2006, 00:37

Post by manored »

Good idea! If possible the shot dispersion should be show too.
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

Post by trepan »

Enabled with .cheat

Image
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

=( itd be useful if we could play without .cheat and have this otherwise ppl will just do .give 1000 corecom
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

Post by trepan »

My intention was to provide a feature for debugging, not for game play.
If someone wants to tweak it after I've committed the code, then that's
fine by me (probably as a rendering option instead of .cheat).
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Post by smoth »

if it can be done via .cheat.. could you make a code that would toggle it? That way we can call it through luaui?
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

Post by trepan »

.cheat is not a local command (host only, affects all players).
It should never be during normal game play.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Post by smoth »

cool cool, just asking :)
Warlord Zsinj
Imperial Winter Developer
Posts: 3742
Joined: 24 Aug 2004, 08:59

Post by Warlord Zsinj »

Perhaps simplified so that it is only an arc rather then a cone, and then cut it out of the range circle? Or would that be too stressful...
User avatar
yuritch
Spring 1944 Developer
Posts: 1018
Joined: 11 Oct 2005, 07:18

Post by yuritch »

Turning the cone into an arc would be uninformative in some cases (for ex. if the firearc is pointed upwards, like for an AA weapon).
I wonder what the firearc display for a unit with multiple weapons will look like? Won't the different cones overlap so much as being impossible to tell apart?
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

I think maybe arc display should be default with a tag (per unit or per weapon?) to say whether the unit would need cones for proper display. Few units will use cones that aren't designed to restrict the aim in the XZ plane.

While we're at it it would be nice if we could define the horizontal and vertical traverse separately so e.g. artillery with fixed guns that still move up and down don't care about height or tanks with turrets can't aim at things directly above them.
User avatar
yuritch
Spring 1944 Developer
Posts: 1018
Joined: 11 Oct 2005, 07:18

Post by yuritch »

KDR_11k wrote:...tanks with turrets can't aim at things directly above them.
I think this is possible already. Set WeaponMainDir to point down (0 -1 0 AFAIK) and set arc to 240 degrees. That should limit the gun to +30 degree vertical angle.
Since the tank will rarely (if ever) find valid targets under itself (except while flying in a transport or from an explosion), this won't even cause strange looking animations.
manored
Posts: 3179
Joined: 15 Nov 2006, 00:37

Post by manored »

You tough you guys had meant the whole tragetory of the shots... (showing how the shot will fly if you tell the unit to shot that place)
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

After seeing this in action I'm confused. The arcs seem to display the current aiming vector and the tolerance. What does tolerance even do? What we wanted the arcs to do was display the WeaponMainDirX and MaxAngleDifX cone.
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

Post by trepan »

I dropped the ball and went on to greener pastures (got tired of
the nagging I was getting at the time). I'll disable the current code
as it isn't exactly what everybody wants.
Post Reply

Return to “Feature Requests”