View Single Post
Author Message
ChillerX
Member
Join Date: Dec 2022
Old 01-15-2023 , 10:21   Remove punchangle
Reply With Quote #1

I am trying to remove punch angles but the screen animation is jumping up abruptly and forces no-recoil.

Code:
#include<amxmodx>
#include<engine>

public plugin_init(){
	register_event("CurWeapon","hook_curweapon","be","1=1","3>0") 
	register_plugin("No Punch","0.1beta","Chillblaze")
	register_cvar("no_punch", "1")
}

public hook_curweapon(id){
	if(get_cvar_num("no_punch"))
	{
		entity_set_vector (id,EV_VEC_punchangle,Float:{0.0,0.0,0.0})
	}
}
Can anybody fix it or offer similar plugin which won`t affect recoil or the animations?
ChillerX is offline