Forum

> > CS2D > Scripts > No damage not working
Forums overviewCS2D overview Scripts overviewLog in to reply

English No damage not working

5 replies
To the start Previous 1 Next To the start

old No damage not working

PbBOKAN
User Off Offline

Quote
This segment of my script is still making things do damage
1
2
3
4
addhook("hit","can")
function can(id,source,weapon,hpdmg,apdmg)
	return 1
end
The only thing that may have affected it was the
1
parse('mp_wpndmg "claw" 15')
on start of the script. All else works fine.
Thank you all.

old fix

PbBOKAN
User Off Offline

Quote
FIXED!
Post should be deleted in 5 minutes since it is useless now.

old Re: No damage not working

Avo
User Off Offline

Quote
It surely will.
There are to ways to fix it:
• Using priority parameter for addhook:
addhook("hit","sawe", -1)
note >

• Paste everything into one function:
1
2
3
4
5
addhook("hit","can")
function can(id,source,weapon,hpdmg,apdmg)
	parse("shake "..id.." 5")
	return 1
end

Remember that using many functions with the same hook isn't good. Write your scripts using way no. 2.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview