SetHealth is "slapping" player

Avaray

L2: Junior Member
Oct 14, 2011
72
4
Im using trigger_multiple to reduce player's HP.
When trigger is setting player's HP (with SetHealth command; launched only once; OnStartTouch), player is "thrown" like with sourcemod admin command !slap (you know, player is pushing/throwing/flying when you spam !slap command).

Im reducing player's HP on spawn and it looks really bad.
On every round start at respawn players are "thrown" into air onto 1-3 feets.

I tried with invisible block (clip texture) above heads and it works, but it blocks normal jumping.
Is any other way to solve this problem? Maybe freeze player before SetHealth execution... or something.
 
Last edited:
Mar 23, 2013
1,013
347
Check if nothing else could maybe cause this jump.... pretty sure the command dosn't sent player flying ^^

But how about you place a func_brush (player clip textured) around them so they are stuck and disable the brush after their health got reduced?
 

Avaray

L2: Junior Member
Oct 14, 2011
72
4
This time I tested several different numbers of HP.
And I know answer - that "flying" is because of Power of this command.
If SetHealt is 150+ player is not flying.
If SetHealt is below 150 player is flying. If SetHealt is around 1 player is flying really high :) Thats BIG SLAP!
(maybe it is not exaclty 150, I tested 140, 150, 160 and it starts from 150)

So I will try your idea with func_brush.

Edit: Ok, works good. Thanks, mate :)
 
Last edited: