Author Topic: "hit" effect on player ship  (Read 9188 times)

0 Members and 1 Guest are viewing this topic.

Offline J3Vr6

  • 28
"hit" effect on player ship
Someone please come in here and just take out all the *****ing that doesn't have to do with the thread?

Or just lock it, who cares now?
"I wanna drink til I'm drunk, and smoke til I'm senseless..."
-Tricky

"Hey barkeep, who's leg do I have to hump to get a dry martini around here?"
-Brian, Family Guy

 

Offline phreak

  • Gun Phreak
  • 211
  • -1
"hit" effect on player ship
Thunder is going to be pissed.  I had some ideas, so dont blame me.  Incase you're wondering, here's the function.  If anyone knows how to add a command line arg and use an if statement it would save me about 30 seconds of coding.  not that i can commit anything since im working on 32bit texture support for opengl

Code: [Select]

// player pain
void ship_hit_pain(float damage)
{
game_flash( damage/15.0f, -damage/30.0f, -damage/30.0f );

// kill any active popups when you get hit.
if ( Game_mode & GM_MULTIPLAYER ){
popup_kill_any_active();
}
}
Offically approved by Ebola Virus Man :wtf:
phreakscp - gtalk
phreak317#7583 - discord

 

Offline Fineus

  • ...But you *have* heard of me.
  • Administrator
  • 212
    • Hard Light Productions
"hit" effect on player ship
Thunder would rather there wasn't all this flame war business... especially on a thread he has an interest in himself :doubt:

If you guys must abuse eachother, use the PM feature or email or something. The SCP forum is a place where things actually get done, I'll be really peeved if you damage that.

Anyhow, a simple flag "-nopainflash" or something would suffice for turning the red off. We could investigate replacement effects etc. later.