Author Topic: How does the game determine when to send a "nice shot" message?  (Read 1450 times)

0 Members and 1 Guest are viewing this topic.

Offline SL1

  • 26
How does the game determine when to send a "nice shot" message?
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.

 

Offline Whitelight

  • 29
  • Thing, man like
Re: How does the game determine when to send a "nice shot" message?
Hi SL1. It seems to happen more with the fighter I`m engaging at that time.
Simpicity of character is the natural resualt of profound thought

 

Offline niffiwan

  • 211
  • Eluder Class
Re: How does the game determine when to send a "nice shot" message?
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 :)
Creating a fs2_open.log | Red Alert Bug = Hex Edit | MediaVPs 2014: Bigger HUD gauges | 32bit libs for 64bit Ubuntu
----
Debian Packages (testing/unstable): Freespace2 | wxLauncher
----
m|m: I think I'm suffering from Stockholm syndrome. Bmpman is starting to make sense and it's actually written reasonably well...

 

Offline Trivial Psychic

  • 212
  • Snoop Junkie
Re: How does the game determine when to send a "nice shot" message?
My favorite is "Show us how its done, sir".
The Trivial Psychic Strikes Again!

 
Re: How does the game determine when to send a "nice shot" message?
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.

 
Re: How does the game determine when to send a "nice shot" message?
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 ^^

 

Offline Kiloku

  • 27
  • Buzzbuzz!
    • Minecraft
Re: How does the game determine when to send a "nice shot" message?
<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.
Potato!

 

Offline SL1

  • 26
Re: How does the game determine when to send a "nice shot" message?
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.

 
Re: How does the game determine when to send a "nice shot" message?
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.
Got Shivans? The SOC Ezechiel is the schnitzel! Don't leave base without it.