[HELP] Problem with Putting Recoil on Glock
I thought putting some recoil (camera shake) on the Glock was simple enough. And it actually works. But when I switch to burst mode I get bullet holes directly above me. Not sure why it's doing that. =/
PHP Code:
|
Re: [HELP] Problem with Putting Recoil on Glock
I've never witnessed Ham_PrimaryAttack written in this way...
Use this. Code:
Returning values in a forward-type post will not result in anything, so I guess you don't need it. Another observation, if you want to block the attack if the weapon does not have ammunition, you must register ham attack again but pre (0), run the Ammo check and return HAM_SUPERCEDE if the value is less than 1. |
Re: [HELP] Problem with Putting Recoil on Glock
Hey Crazy.! Thanks for the reply. I did what you said but now some of the bullet holes are scattered behind me. I must've made a mistake but I can't find it. Here's what I did:
PHP Code:
PHP Code:
|
Re: [HELP] Problem with Putting Recoil on Glock
If entity really exists...
|
Re: [HELP] Problem with Putting Recoil on Glock
It's the same of is_valid_ent of engine. As an Hamlet said, he check if this entity exists.
About the problem with bullet, I think you can try do this with xs (include). |
Re: [HELP] Problem with Putting Recoil on Glock
Okay, I'll try. But I'm not familiar with XS. I'll have to read up on it first. Thanks again!...
|
Re: [HELP] Problem with Putting Recoil on Glock
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 |
Re: [HELP] Problem with Putting Recoil on Glock
Code:
set_pev(id, pev_punchangle, get_pcvar_float(cvar_glock_recoil));Code:
new Float:vAngle[3]; |
| All times are GMT -4. The time now is 23:09. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.