Doesn’t seem to be working at all. Hitcompu does though. Is this a known bug already or should I be using something else? …
Example: The Knife of Judgement:
^-- this obviously hits baddies fine but, in the same NPC,
^-- does absolutely nothing to a player.
Worked by index and only works within about, 10 tiles of the player.
else if(haveswordlvl2) this.dmg++;
hitplayer sucks. Use hitobject
Ah yes… hitobjects -_-… the fuck is hitplayer for then.
On a sidenote: Knife of Judgement2 definitely outranking lvl3 mace now _.
On another sidenote: It seems like it’s always doing one heart of damage. Even with variables like
So if your swordpower is 3, It’l always hit for one heart instead of 1.5.
playerswordpower/2 > playerswordpower*0.5
BUMP THIS: Why is hitobjects always hitting for one heart?
Use a custom damage system?
I can write you one in like a minute.
That’d be straight _, but easily fittable into every NPC that damages people? Or just something utilizing hitobjects already :B
Uses default HP, just instead of using hitobjects you’d use something like:
And then the hurt system weapon would send out a shoot at -10, -10 with a life time of 0.05 with the specified X Y and power as parameters and hurt players within the width and height or radius parameters.