how to disable automatic reloading in cs guns?
how to disable automatic reloading in cs guns?
|
Re: how to disable automatic reloading in cs guns?
I can't think of a clean way to do it at the moment, but does anyone know if FM_CmdStart is called on automatic reloading along with manual reloading?
|
Re: how to disable automatic reloading in cs guns?
Well i was rather thinking about weapon entity variable than doing it with hooks, blocks etc.
I remember there was an offset telling the weapon is autoreloadable, but im not sure if it can be set by server. |
Re: how to disable automatic reloading in cs guns?
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 |
Re: how to disable automatic reloading in cs guns?
Setting nextattack would work, but it would be messy. Could you provide the whole concept using orpheu, its black magic for me and theres no way I would alone do it in orpheu :<
|
Re: how to disable automatic reloading in cs guns?
Quote:
|
Re: how to disable automatic reloading in cs guns?
if you use memory hack, just erase the function "Reload(); " in that if statement, that's the simple way.
just write 0x90 (NOP) instead of the original function call instructions Code:
jmp XXXX or |
Re: how to disable automatic reloading in cs guns?
Quote:
@Voi Have no single idea on the memory thing, it's more black for me than for you, i don't use orpheu at all (except 1 or 2 plugins done by other persons for my bhop server). @jim He only wants to disable automatic reload, not manual one. THE JOB IS FOR ARKSHINE (mais d'abord faut qu'il aille débroussailler !!) |
Re: how to disable automatic reloading in cs guns?
You are right, what I mean is if your code sample is the auto one, then just disable the reload function call, not the reload function itself, that way is easy than hack other memory part. and I believe auto reload call and manual reload call are not the same one.
cause I'm not on my computer, so I can't confirm that. |
Re: how to disable automatic reloading in cs guns?
Quote:
|
| All times are GMT -4. The time now is 05:17. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.