Raised This Month: $ Target: $400
 0% 

how to disable automatic reloading in cs guns?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-31-2010 , 16:19   Re: how to disable automatic reloading in cs guns?
Reply With Quote #4

You would need to access memory (with orpheu) and change :

int iFlags( void ) { return ItemInfoArray[ m_iId ].iFlags; }

and set ITEM_FLAG_NOAUTORELOAD flag off

From weapons.cpp :
Code:
			// weapon is useable. Reload if empty and weapon has waited as long as it has to after firing
			if ( m_iClip == 0 && !(iFlags() & ITEM_FLAG_NOAUTORELOAD) && m_flNextPrimaryAttack < ( UseDecrement() ? 0.0 : gpGlobals->time ) )
			{
				Reload();
				return;
			}
Or you may do it filtering Ham_Reload if you use Ham, you could for example check if player reload button is pressed or not, not sure it would work though.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
 



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 05:17.


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