SetHealth is "slapping" player

Discussion in 'Mapping Questions & Discussion' started by Avaray, Jan 11, 2014.

  1. Avaray

    Avaray L2: Junior Member

    Messages:
    73
    Positive Ratings:
    3
    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: Jan 11, 2014
  2. Lampenpam

    aa Lampenpam

    Messages:
    991
    Positive Ratings:
    328
    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?
     
    • Thanks Thanks x 1
  3. Avaray

    Avaray L2: Junior Member

    Messages:
    73
    Positive Ratings:
    3
    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: Jan 11, 2014