Tremulous Forum

General => Feedback => Topic started by: {7}wrath on July 05, 2009, 07:57:55 pm

Title: Massdriver range announcement
Post by: {7}wrath on July 05, 2009, 07:57:55 pm
My brother had the idea that whenever somebody was shot with a massdriver, the announcement would include the range, like this: "wr4th was massdriven by Cadmium at 13 metres."

What do you guys think of implementing this in the next release?
Title: Re: Massdriver range announcement
Post by: Nux on July 05, 2009, 08:14:17 pm
Or maybe even for those lucky long-range shotty kills.  ;)
Title: Re: Massdriver range announcement
Post by: mooseberry on July 05, 2009, 08:19:46 pm
Just like those CoD mods. I don't really see the point of this though, not least because there aren't many places in normal maps where you can actually see for a loong distance.
Title: Re: Massdriver range announcement
Post by: Ellohir on July 05, 2009, 08:21:53 pm
Meters? Why metric system?

I think the best would be to notice the distance when is longer than a certain threshold.
Title: Re: Massdriver range announcement
Post by: {7}wrath on July 05, 2009, 08:38:02 pm
Metric or whatever, it doesn't matter. And probably having a threshold would be a good idea.
Title: Re: Massdriver range announcement
Post by: Ellohir on July 05, 2009, 08:41:35 pm
I use metric system (Europe r00lz) but I just though that it should be configurable, either Metric or... What was the other thing? Imperial or something like that, isn't it?
Title: Re: Massdriver range announcement
Post by: PureNoob on July 05, 2009, 09:00:54 pm
I use metric system (Europe r00lz) but I just though that it should be configurable, either Metric or... What was the other thing? Imperial or something like that, isn't it?
And also option to not to show the range at all. It would be cool idea for a mod but I wouldn't mind to have it in 1.2, too.
Title: Re: Massdriver range announcement
Post by: kevlarman on July 05, 2009, 09:06:52 pm
there isn't really a conversion from game units to metric (or imperial, or anything else).
Title: Re: Massdriver range announcement
Post by: Knowitall66 on July 06, 2009, 02:47:08 am
I'm pretty sure this came from Soubok, but I'm too not sure; "8 game units equals 1 foot".
Title: Re: Massdriver range announcement
Post by: Defiance on July 06, 2009, 04:18:01 am
nvm
Title: Re: Massdriver range announcement
Post by: danmal on July 06, 2009, 05:11:27 am
there isn't really a conversion from game units to metric (or imperial, or anything else).

Doesn't matter too much. It can be pretty much arbitery tbh as long as the distance seems believable.
Title: Re: Massdriver range announcement
Post by: + OPTIMUS + on July 06, 2009, 07:25:55 am
from the grave:

From the GtkRadiant manual:
Code: [Select]
In the game world, eight units roughly equal one foot (30.5 cm).This means that around 26 units equals the meter you say is absent in Tremulous.

So according to that the average height of the trem human is about 210 cm.

"The metre is the length of the path traveled by light in vacuum during a time interval of 1⁄299,792,458 of a second. It follows that the speed of light in vacuum is exactly 299,792,458 metres per second. (17th CGPM, 1983, Resolution 1)[2]"

Light doesn't move in Tremulous, therefore there are no metres.
Title: Re: Massdriver range announcement
Post by: UniqPhoeniX on July 06, 2009, 07:54:30 am
Should be 32 units to a meter (human = 56/32=1.75m).
Title: Re: Massdriver range announcement
Post by: googles on July 06, 2009, 03:46:21 pm
Code: [Select]
vec3_t    diff;
float    dist;

VectorSubtract( tr.endpos, ent->client->ps.origin, diff );
dist = VectorLength( diff );

trap_SendServerCommand(-1, va("print \"Your distance is %f\n\"", dist ) );


<.<