Author Topic: Weapon causing console spam  (Read 818 times)

I recently got a boxxing gloves add on but it is causing console spam when a player hits another player with it.

Code: [Select]
Add-Ons/Weapon_Boxxinggloves/Weapon_Boxing Gloves.cs (420): Unknown command GetDamageLocation.
  Object (51319 Player  -> Player -> Player -> Player -> ShapeBase -> ShapeBase -> ShapeBase -> Gamebase -> SceneObject ->NetObject -> SimObject

hao2fix

A general rule of thumb with console errors is to post the entire faulty script or at least several lines before and after the error. In this case lines 410-430.

Should i just attach the script?




It's pretty simple. The script is trying to call a function that doesn't exist (getDamageLocation).

Obviously you aren't allowed to do this

It's pretty simple. The script is trying to call a function that doesn't exist (getDamageLocation).

Obviously you aren't allowed to do this
and how would i fix that?

By not calling the function, or calling an existing one instead.

By not calling the function, or calling an existing one instead.
If i remove the code for Getdamagelocation will that fix it? Or where would i find another function to replace that?

Why are the sounds .ogg? :s

It tries to check if you're hitting the player's face "front".

Try looking into SpaceGuy's TF2 Butterfly Knife, it contains an script that does the same thing, but inversed, "backstabs".

Why are the sounds .ogg? :s

It tries to check if you're hitting the player's face "front".

Try looking into SpaceGuy's TF2 Butterfly Knife, it contains an script that does the same thing, but inversed, "backstabs".
Sorry I forgot to fix that. :/
Ill try looking into that later. I just need a fixed version right now lol.