English Hit Return 1

6 replies
Goto Page
To the start Previous 1 Next To the start
21.07.17 11:43:50 pm
Up
TheVillager
User
Offline Off
This code not working ?
Code:
1
2
3
4
addhook("hit","HIT")
function HIT(id,source)
 return 1
end
21.07.17 11:52:04 pm
Up
Masea
Super User
Offline Off
Is there any cs2d lua hook hit hook else? If so, remove that. Or for the last chance use this:
Code:
1
2
3
4
addhook("hit","_hit")
function _hit(id,source)
 return 1
end
Shit your pants: file cs2d Outlast II Mod (29) | Create your UI faster: CS2D UI Framework
21.07.17 11:59:18 pm
Up
Yates
Reviewer
Offline Off
@user TheVillager: What do you want it to do?
22.07.17 12:00:47 am
Up
TheVillager
User
Offline Off
Returns value not working ?

1: ignore this hit (no damage)

@user Yates: I want no damage
22.07.17 12:32:01 am
Up
Masea
Super User
Offline Off
Answer my question please
Shit your pants: file cs2d Outlast II Mod (29) | Create your UI faster: CS2D UI Framework
22.07.17 12:39:47 am
Up
Hajt
User
Offline Off
@user TheVillager: Your script should work but I bet you are using another script which also uses hit hook that's why it doesn't work. Try to add priority.

addhook("hit","HIT",999)
22.07.17 12:43:39 am
Up
TheVillager
User
Offline Off
Thank you @user Hajt: this working
To the start Previous 1 Next To the start