Thread: Weapon Throwing
View Single Post
yuusuke
Junior Member
Join Date: Jul 2020
Old 02-02-2022 , 21:25   Re: Weapon Throwing
Reply With Quote #59

Quote:
Originally Posted by Snafu.at View Post
The Plugin is made by shine771, not by me. I just fixed a few bugs and added the wall-bounce.

Version 1.0.1

  • Added a new cvar:
    Code:
     amx_wp_hurt_self < 0 / 1 > < If 1, players can hurt themselves with a thrown weapon. > < Default: 0 >
  • If friendly fire is enabled it will inflict damage on teammates if you hit them.
  • Added a sound when the weapon bounces off vertical surfaces or overhangs.
  • Stats behave normally since I changed it to call Ham_Killed. Set the damage inflictor to worldspawn, however, to prevent conflicts with plugins checking what weapon the killer is currently holding.
Anyone can help to repair this plugin?
It sometimes has some error like this↓↓

L 01/31/2022 - 15:21:26: [HAMSANDWICH] Entity has null private data (2)
L 01/31/2022 - 15:21:26: [AMXX] Displaying debug trace (plugin "throw_weapons101.amxx", version "1.0.1")
L 01/31/2022 - 15:21:26: [AMXX] Run time error 10: native error (native "ExecuteHamB")
L 01/31/2022 - 15:21:26: [AMXX] [0] throw_weapons101.sma::HookTouch (line 294)
L 01/31/2022 - 15:21:26: [HAMSANDWICH] Entity has null private data (2)
L 01/31/2022 - 15:21:26: [AMXX] Displaying debug trace (plugin "throw_weapons101.amxx", version "1.0.1")
L 01/31/2022 - 15:21:26: [AMXX] Run time error 10: native error (native "ExecuteHamB")
L 01/31/2022 - 15:21:26: [AMXX] [0] throw_weapons101.sma::HookTouch (line 294)

L 02/04/2022 - 1720: Invalid player 11 (not ingame)
L 02/04/2022 - 1720: [AMXX] Displaying debug trace (plugin "throw_weapons101.amxx", version "1.0.1")
L 02/04/2022 - 1720: [AMXX] Run time error 10: native error (native "velocity_by_aim")
L 02/04/2022 - 1720: [AMXX] [0] float.inc:perator*(Float:,_ (line 291)
L 02/04/2022 - 1720: [AMXX] [1] throw_weapons101.sma::HandlerThink (line 449)

Last edited by yuusuke; 02-04-2022 at 07:10.
yuusuke is offline