Forum

> > CS2D > Scripts > Hit command
Forums overviewCS2D overview Scripts overviewLog in to reply

English Hit command

5 replies
To the start Previous 1 Next To the start

old Hit command

Alistaire
User Off Offline

Quote
Is there anything like a hitcommand? Not like slap but just a hitsound and your healthbar lighting up. Like a hit entity with 0 damage.

old Re: Hit command

iCe4147
User Off Offline

Quote
There is an sv_sound and sv_sound2 command so I suggest you use that since it doesn't deal any damage.

Play the sound to everyone:
1
parse("sv_sound <hit sound>")

Play the sound to only one person:
1
parse("sv_sound2 <hit sound>")

old Re: Hit command

Avo
User Off Offline

Quote
1
2
3
function hit(id)
	parse("sv_sound2 "..id.." <hit sound>")
end

something like that?

but I don't have any idea how to light up healthbar
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview