Hard Light Productions Forums

General FreeSpace => FreeSpace Discussion => Topic started by: SL1 on February 16, 2020, 04:02:31 pm

Title: How does the game determine when to send a "nice shot" message?
Post by: SL1 on February 16, 2020, 04:02:31 pm
This is something I've always been curious about. I don't think it's random. It seems to happen only when I make what I'd consider a fairly skillful shot. I'm just not sure how the game determines that, because it's kind of a subjective thing. But space sims have been doing it since at least the original X-Wing, so there must be some relatively simple mechanism for it.
Title: Re: How does the game determine when to send a "nice shot" message?
Post by: Whitelight on February 17, 2020, 07:49:43 pm
Hi SL1. It seems to happen more with the fighter I`m engaging at that time.
Title: Re: How does the game determine when to send a "nice shot" message?
Post by: niffiwan on February 18, 2020, 05:55:26 am
Well... if I'm reading the code right the main conditions are:
1) you did more than 10% damage to the target
2) you have more than 50% hull

and a bunch of other checks for edge cases, like not praising the player too frequently, or no praise for killing a friendly ship.

So yes, it's a pretty simple mechanism :)
Title: Re: How does the game determine when to send a "nice shot" message?
Post by: Trivial Psychic on February 18, 2020, 07:12:15 am
My favorite is "Show us how its done, sir".
Title: Re: How does the game determine when to send a "nice shot" message?
Post by: X3N0-Life-Form on February 18, 2020, 10:09:09 am
2) you have more than 50% hull
Huh, that's interesting. I wonder what the reasoning behind that "No praise for the wounded" policy was.
Title: Re: How does the game determine when to send a "nice shot" message?
Post by: Nightmare on February 18, 2020, 12:48:48 pm
2) you have more than 50% hull
Huh, that's interesting. I wonder what the reasoning behind that "No praise for the wounded" policy was.

Wingmates presume you'll be dead before their praise reaches you ^^
Title: Re: How does the game determine when to send a "nice shot" message?
Post by: Kiloku on February 18, 2020, 02:02:55 pm
<snip>
Huh, that's interesting. I wonder what the reasoning behind that "No praise for the wounded" policy was.

I'm guessing to make sure the mood is properly negative. If you're struggling to win, even a good kill should not be met with a cheerful response.
Title: Re: How does the game determine when to send a "nice shot" message?
Post by: SL1 on March 04, 2020, 12:26:52 pm
Hi SL1. It seems to happen more with the fighter I`m engaging at that time.

That's true, yeah.


Well... if I'm reading the code right the main conditions are:
1) you did more than 10% damage to the target
2) you have more than 50% hull

and a bunch of other checks for edge cases, like not praising the player too frequently, or no praise for killing a friendly ship.

So yes, it's a pretty simple mechanism :)

That simple, huh? I was thinking there might be some check to see how well you led the target or something. Not that I'd know how you'd calculate that, but I thought there might be a way.


Also, sorry for the late replies.
Title: Re: How does the game determine when to send a "nice shot" message?
Post by: Jadehawk on March 04, 2020, 01:06:21 pm
I always felt it had to do with like a high deflection shot and/or you hit a critical component causing destruction with fewer shots etc.