Env_shake and Trigger_Hurt on RoundEnd

  • If you're asking a question make sure to set the thread type to be a question!

00000000000000000000000

L4: Comfortable Member
Jul 9, 2008
175
23
I want to make the screen shake and the players to slowly get hurt when the timer runs out. I'm using an env_shake and a trigger_hurt but I don't really understand how I can get this to work.

This is what I have at the moment, but the screen doesn't shake, and it doesn't even say stalemate and end the round. The timer runs out to 0, the trigger_hurt is enabled, but that's it. What do I do?

roundend.jpg
 

A Boojum Snark

Toraipoddodezain Mazahabado
aa
Nov 2, 2007
4,775
7,669
Is the effect radius of the shake big enough? I see you raised it, but try the "global shake" flag.

Another note, SetStalemateOnTimelimit needs a parameter of 1 to work. (0 = off, 1 = on). This does not make the game stalemate when the timer runs out however, which it seems you might have thought based on your post. It causes the map to end when the mp_timelimit setting of the server is reached.

If you want the game to stalemate when the timer finishes, you need an OnFished to trigger a game_round_win that has the appropriate settings.
 

00000000000000000000000

L4: Comfortable Member
Jul 9, 2008
175
23
Is the effect radius of the shake big enough? I see you raised it, but try the "global shake" flag.

Another note, SetStalemateOnTimelimit needs a parameter of 1 to work. (0 = off, 1 = on). This does not make the game stalemate when the timer runs out however, which it seems you might have thought based on your post. It causes the map to end when the mp_timelimit setting of the server is reached.

If you want the game to stalemate when the timer finishes, you need an OnFished to trigger a game_round_win that has the appropriate settings.

Thanks for the timer thing. I will have to test the shake though.

Edit: I can't find a game_round_win...
 
Last edited:

zornor

L4: Comfortable Member
Jan 14, 2009
195
23
it's a point entity

just send an output to it

I forget how exactly you set it up but it should be easy.
 

00000000000000000000000

L4: Comfortable Member
Jul 9, 2008
175
23
Thanks I got everything to work. There's another thing though. Is there a way I can make the screen fade to white, like a nuke just went off?