Raised This Month: $ Target: $400
 0% 

[HELP] Problem with Putting Recoil on Glock


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 07-04-2017 , 22:59   Re: [HELP] Problem with Putting Recoil on Glock
Reply With Quote #1

I've seen many weapons using XS, maybe it's can help you, try to pick up some parts of the code.

https://forums.alliedmods.net/showthread.php?t=155583
__________________








CrazY. is offline
SpannerSpammer
Member
Join Date: Mar 2006
Old 07-04-2017 , 23:54   Re: [HELP] Problem with Putting Recoil on Glock
Reply With Quote #2

Code:
set_pev(id, pev_punchangle, get_pcvar_float(cvar_glock_recoil));

Code:
new Float:vAngle[3];
vAngle[0] = get_pcvar_float(cvar_glock_recoil); // punch up/down (pitch)
vAngle[1] = 0.0; // punch left/right (yaw)
vAngle[2] = 0.0; // punch clockwise/anticlockwise (roll)
set_pev( id, pev_punchangle, vAngle );
Try putting some debug code in your functions to see exactly what is being executed.
__________________
[NeoTF|DEV]SpannerSpammer-[AoE]-
NeoTF Development Team.
http://steamcommunity.com/groups/neotf
SpannerSpammer 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 23:09.


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