Forum

> > CS2D > General > Negative Wpndmg?
Forums overviewCS2D overviewGeneral overviewLog in to reply

English Negative Wpndmg?

6 replies
To the start Previous 1 Next To the start

old Negative Wpndmg?

PeopleOrderOurPattys
User Off Offline

Quote
I've been lurkin' on the forums for quite a while now and I couldn't find anything about setting negative wpndmg or healing damage for weapons. I've seen it before so I know it's possible, but I'm not sure if it's a script or a different command I didn't try..If you could help me, then it'd be much appreciated!

old Re: Negative Wpndmg?

Lee
Moderator Off Offline

Quote
The weapon damage itself can not be negative. However the heal guns uses lua to over-ride the defaults of cs2d. So you'll most likely have to get down and dirty with the complexities of Lua to be able to do what you wanted.

old Re: Negative Wpndmg?

Zune5
COMMUNITY BANNED Off Offline

Quote
I believe someone made a script for making the TMP heal 5 damage to it's teammates. I think it was one of those TF mods.

old Re: Negative Wpndmg?

Lee
Moderator Off Offline

Quote
Flacko has written
So, does weapon damage use an unsigned int? (I'm just being curious)


No, wpn dmg is serialized as a short, and the way that Blitz implemented short ctypes, they're unsigned as far as I know.

old Re: Negative Wpndmg?

playa slaya
COMMUNITY BANNED Off Offline

Quote
here you go:

addhook("hit","TMP_heal")
function TMP_heal(id,source,weapon,hpdmg,apdmg)
if(weapon == 21) then
parse ("sethealth "..id.." "..player(id,"health")+15)
return 1
end
end
To the start Previous 1 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview