View Single Post
Senior Member
Join Date: May 2021
Location: Uruguay
Old 06-25-2022 , 00:27   Re: Flying Scoutsman Mod
Reply With Quote #2

I have this code provided by TribalBlood
#include <amxmodx>
#include <fakemeta>
#include <xs>

#define PLUGIN "Flying Scoutsman"
#define VERSION "1.0"
#define AUTHOR "TribalBlood"

public plugin_init()
		register_plugin(PLUGIN, VERSION, AUTHOR)
		register_forward(FM_TraceLine, "TraceLine_accuracy", 1);

public TraceLine_accuracy(const Float: start[3], Float: dest[3], HIT_PARAM, id, ptr)
	if(get_user_weapon(id) == CSW_SCOUT && get_user_flags(id) & FL_FLY)
		velocity_by_aim(id, 9999, dest);
		xs_vec_add(start, dest, dest);
		engfunc(EngFunc_TraceLine, start, dest, HIT_PARAM, id, ptr);
What it's trying to emulate is the increased accuracy the Scout has in the CSGO game mode while in the air.
But it gives me a lot of lag, what is the error?
HTML Code:
L 06/25/2022 - 00:18:12: [AMXX] Run time error 10 (plugin "Flying_Scoutsman.amxx") (native "get_user_weapon") - debug not enabled!
L 06/25/2022 - 00:18:12: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
Attached Files
File Type: sma Get Plugin or Get Source (Flying_Scoutsman.sma - 13 views - 584 Bytes)
SoulWeaver16 is offline