Upvote Upvoted 18 Downvote Downvoted
hurtme broken?
posted in Q/A Help
1
#1
0 Frags +

The hurtme command works fine with positive values but does nothing when you put in a negative value (ex. hurtme 100 works but hurtme -100 does nothing). Is there any way to fix it?

The hurtme command works fine with positive values but does nothing when you put in a negative value (ex. hurtme 100 works but hurtme -100 does nothing). Is there any way to fix it?
2
#2
-22 Frags +

https://wiki.teamfortress.com/w/images/thumb/5/53/RED_Medigun.png/250px-RED_Medigun.png

[img]https://wiki.teamfortress.com/w/images/thumb/5/53/RED_Medigun.png/250px-RED_Medigun.png[/img]
3
#3
18 Frags +

ent_create logic_timer targetname !self RefireTime 0.015; ent_fire !self addoutput "OnTimer Player:addoutput:health 900:0:-1"
ent_fire !self addoutput "health 99999"

ent_create logic_timer targetname !self RefireTime 0.015; ent_fire !self addoutput "OnTimer Player:addoutput:health 900:0:-1"
ent_fire !self addoutput "health 99999"
4
#4
18 Frags +
Reeroent_create logic_timer targetname !self RefireTime 0.015; ent_fire !self addoutput "OnTimer Player:addoutput:health 900:0:-1"
ent_fire !self addoutput "health 99999"

Shoutout To Gorge004.

[quote=Reero]ent_create logic_timer targetname !self RefireTime 0.015; ent_fire !self addoutput "OnTimer Player:addoutput:health 900:0:-1"
ent_fire !self addoutput "health 99999"[/quote]

Shoutout To Gorge004.
5
#5
-14 Frags +

i wish she would stop beating me

i wish she would stop beating me
6
#6
-7 Frags +
Reeroent_create logic_timer targetname !self RefireTime 0.015; ent_fire !self addoutput "OnTimer Player:addoutput:health 900:0:-1"
ent_fire !self addoutput "health 99999"

if this is the kind of alien code gorge somehow writes to do overheal i am genuinely curious what kind of cursed shit goes on in maps like xhappy lmao

[quote=Reero]ent_create logic_timer targetname !self RefireTime 0.015; ent_fire !self addoutput "OnTimer Player:addoutput:health 900:0:-1"
ent_fire !self addoutput "health 99999"[/quote]
if this is the kind of alien code gorge somehow writes to do overheal i am genuinely curious what kind of cursed shit goes on in maps like xhappy lmao
7
#7
-31 Frags +
bearodactylReeroent_create logic_timer targetname !self RefireTime 0.015; ent_fire !self addoutput "OnTimer Player:addoutput:health 900:0:-1"
ent_fire !self addoutput "health 99999"
if this is the kind of alien code gorge somehow writes to do overheal i am genuinely curious what kind of cursed shit goes on in maps like xhappy lmao

What's wrong with the code?

ent_fire !self addoutput "health 99999"

Is likely the only line needed; the logic_timer is redundant.

[quote=bearodactyl][quote=Reero]ent_create logic_timer targetname !self RefireTime 0.015; ent_fire !self addoutput "OnTimer Player:addoutput:health 900:0:-1"
ent_fire !self addoutput "health 99999"[/quote]
if this is the kind of alien code gorge somehow writes to do overheal i am genuinely curious what kind of cursed shit goes on in maps like xhappy lmao[/quote]
[s]What's wrong with the code?[/s] [code]ent_fire !self addoutput "health 99999"[/code] Is likely the only line needed; the logic_timer is redundant.
8
#8
35 Frags +
AimIsADickthe logic_timer is redundant.

no tf it is not. those are 2 different things. the one with timer is a tempus style regen, where it sets your health to 900 every server tick. the second one has the same effect as hurtme with negative values

[quote=AimIsADick]the logic_timer is redundant.[/quote]
no tf it is not. those are 2 different things. the one with timer is a tempus style regen, where it sets your health to 900 every server tick. the second one has the same effect as hurtme with negative values
9
#9
15 Frags +

Smissmas update from today fixed this bug

https://www.teamfortress.com/post.php?id=101867

Smissmas update from today fixed this bug

https://www.teamfortress.com/post.php?id=101867
10
#10
-7 Frags +
RockzAimIsADickthe logic_timer is redundant.no tf it is not. those are 2 different things. the one with timer is a tempus style regen, where it sets your health to 900 every server tick. the second one has the same effect as hurtme with negative values

Oh.

Why is the logic_timer using the "!self" target name? Why not just add the healing, looping outputs directly to the player (entities)?

[quote=Rockz][quote=AimIsADick]the logic_timer is redundant.[/quote]
no tf it is not. those are 2 different things. the one with timer is a tempus style regen, where it sets your health to 900 every server tick. the second one has the same effect as hurtme with negative values[/quote]
Oh.

Why is the logic_timer using the "!self" target name? Why not just add the healing, looping outputs directly to the player (entities)?
11
#11
8 Frags +
AimIsADickOh.

Why is the logic_timer using the "!self" target name? Why not just add the healing, looping outputs directly to the player (entities)?

welcome to my code review for a command for a 15 year old game

[quote=AimIsADick]
Oh.

Why is the logic_timer using the "!self" target name? Why not just add the healing, looping outputs directly to the player (entities)?[/quote]

welcome to my code review for a command for a 15 year old game
12
#12
6 Frags +
AimIsADickWhy is the logic_timer using the "!self" target name? Why not just add the healing, looping outputs directly to the player (entities)?

that's how you do it, with !self

[quote=AimIsADick]Why is the logic_timer using the "!self" target name? Why not just add the healing, looping outputs directly to the player (entities)?[/quote]
that's how you do it, with !self
Please sign in through STEAM to post a comment.