Author Topic: Hammer doesn't do damage in minigames.  (Read 1710 times)

This seems like an easy script, but, I cannot script worth stuff.

It does do damage...
Either your BL is borked, or something got updated.

It does do damage...
Either your BL is borked, or something got updated.
this is suggestions and requests, not help.

I think Iban's RPG mod disabled the Hammer damage thing.

It does do damage...
Either your BL is borked, or something got updated.

He doesn't want it to, hence why he posted this in suggestions and requests

this is suggestions and requests, not help.
I know, but hammer does do damage in minigames dude.
I've seen it.
Like khain said, Iban's CRP may have something to do with i-


OOOOOH.
You don't want it to do damage.
My bad.

i found a little bit of code that might help.
Quote
   function HammerImage::onHitObject(%this, %obj, %slot, %col, %pos, %normal)
   {
      if(%col.getClassName() $= "Player" && isObject(%col.client) && !%col.client.getWantedLevel())
         commandToClient(%obj.client, 'messageBoxOK', "Hey there!", "You should learn to play the RPG instead of running around hitting people upside the head with a hammer. You will enjoy yourself a lot more that way.\n\n(You have caused no damage to the person you were attacking)");
      else
         parent::onHitObject(%this, %obj, %slot, %col, %pos, %normal);
and if you are able to make it, make it say the same thing that this script does.

Pretty sure that's from city rpg.


hammerImage.directDamage = 0;


where would i edit this?
Either put that into the console every time you start a server or package that with the code in the server.cs

Either put that into the console every time you start a server or package that with the code in the server.cs
so if i packaged it all i would have to do is put that into a server.cs file inside of a .zip?

Simple.
Copy/paste the hammer.
Make it have 0 damage.
forget around with it so it doesn't replace the default hammer.
dun

Simple.
Copy/paste the hammer.
Make it have 0 damage.
forget around with it so it doesn't replace the default hammer.
dun
n-no you could just
hammerImage.directDamage = 0;