AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=43)
-   -   No recoil on single weapons (https://forums.alliedmods.net/showthread.php?t=119876)

The Art of War 02-26-2010 10:42

No recoil on single weapons
 
NVM Fixed!

Jelle 02-26-2010 13:29

Re: No recoil on single weapons
 
PHP Code:

new weaponid get_user_weapon(id)

if ( 
shModActive() && gHasAgent[id] && is_user_alive(id) && weaponid == CSW_AK47

This checks, well, I am sure you can see what it checks.
Also, did you rip agent zero entirely, or are you using code from it, and edit US Ranger?

The Art of War 02-27-2010 08:26

Re: No recoil on single weapons
 
Just to make it clear for people that would like to make this and dont know how to do it: Do as Jelle says, but change gHasAgent (Agent) to whatever your bool is.

I did not rip agentz entirely, and no, I did not use USRanger (lol it has no No Recoil code Jelle... :D). It didnt worked because I had an old version with public server_frame instead of public PreThink lol :D

Jelle 02-27-2010 14:46

Re: No recoil on single weapons
 
Well. You could have ripped USRanger (I know you like that), and just copied the code from AgentZero to USRanger. You'll never know..

The Art of War 02-27-2010 15:13

Re: No recoil on single weapons
 
:D:D:D:D True, I coded it 1.2 ways, but it was not a rip of USR xD

Jelle 02-27-2010 15:21

Re: No recoil on single weapons
 
As I wrote... You never know..


All times are GMT -4. The time now is 00:38.

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