Author Topic: Mini-Game damage issue  (Read 2801 times)

Hi, i have a problem with mini-games. For some reason when i start one, no matter what profile i use you cant seem to deal any damage unless you use a rocket launcher. Its not just like that with player vs player, its the same with bots and i dont know whats wrong, can anyone help me out here?

Thanks, Paul

By profile you mean playertype? That doesn't have effect on damage...just thought, you mean tooken? It may be the command that does damage

Yeah thats what i meant but it used to do damage like normal a while back. I think it might be a mod i instslled.


I got the same problem, only rockets kill, and headshots don't kill, i installed RBL on the PC downstairs and it was fine, until i got some mods, i think it's either the bot mod, or some other mod



Badspot

  • Administrator
Almost certainly there is an add-on that craps it up.  Probably one that overwrites Projectile::OnCollision or something. 

I found it out, it's my shield, it has the Projectile code that changed all projectiles to do 0 damage, so just either delete the Item_Shield.cs and its .dts and item icon, or just uncheck it in the Add-Ons window

Here's the code that breaks the projectile damage :(
Code: [Select]
function ProjectileData::damage(%this,%obj,%col,%fade,%pos,%normal)
 {
  if(%col.getMountedImage(1) !$= nametoID(shieldfrontimage) || (%col.getClassname() !$= "Player" && %col.getClassname() !$= "AIPlayer")){
  Parent::damage(%this,%obj,%col,%fade,%pos,%normal);return;
  }
  else
  {
   %damLoc = %col.getDamageLocation(%pos);
   if(getword(%pos, 2) > getword(%col.getWorldBoxCenter(), 2) - 3.3 || getword(%pos, 2) < getword(%col.getWorldBoxCenter(),2) - 4.4 || strstr(%damLoc, "left") $= "-1")
   {
    Parent::damage(%this,%obj,%col,%fade,%pos,%normal);return;
   }
   else
   {
    return;
   }
  }
 }
};

Quote
That won't work, you just copypasted it with no fixes or credit whatsoever.

It'll cause errors and stop any weapon from working whether you have a shield or not.
I did say it won't work...


So how do i fix this problem, i thought install blockland somewhere else then drag the folder over your existing bl directory and say yes to all and overwrite the original files but that might forget up other MODs. Is there an easier way?

If you got my shield (Item_Shield.cs), uncheck it from  the Add-Ons window in the Start Server menu

I have done but i dont see any change. Did it overwrite one of the original files?

have you tried shooting at someone to see if it work?