This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Remove punchangle


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
McTavish
Senior Member
Join Date: May 2021
Old 01-15-2023 , 11:21   Re: Remove punchangle
Reply With Quote #1

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

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

public hook_curweapon(id){
    entity_set_vector (id,EV_VEC_punchangle,Float:{0.01,0.01,0.01})
}
this will remove the punch angles will remove the upward movement of the screen when shooting, but it will also affect the recoil of the weapon.
To address this issue, one approach you could take is to reduce the punch angles to a very small value, such as Float: {0.01, 0.01, 0.01} instead of setting it to 0. This will still remove most of the punch animation but will not completely remove the recoil animation.

Another approach is to try to reduce the recoil animation itself, so that it does not jump up abruptly. This can be done by adjusting the recoil parameters of the weapon, such as the recoil magnitude and recovery time.

However, these modifications would require more knowledge of the game engine and the way recoil works in the specific game you're working on. Additionally, it is not recommended to implement no-recoil feature as it would be an unfair advantage for the players who use it and would be considered as cheating by the gaming community.

It's important to note that modifying the game in this way may violate the game's terms of service and may result in your account being banned. It's always best to check the game's rules and guidelines before attempting to make any modifications.
__________________
No Steam = No Support.

Last edited by McTavish; 01-15-2023 at 11:22.
McTavish is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:49.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode