Raised This Month: $ Target: $400
 0% 

Problems with reload code


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
zhulo
Senior Member
Join Date: Jun 2010
Location: Slovakia
Old 07-06-2012 , 12:16   Problems with reload code
Reply With Quote #1

I have this problem with reload xm1014 on Linux. On Windows it works great, but on Linux, it can fire about 1 second after it start to reload...

http://www.youtube.com/watch?v=uOy9NBHKW9o
Attached Files
File Type: zip zp_extra_stvorhlavnovka.zip (4.5 KB, 45 views)
zhulo is offline
Send a message via ICQ to zhulo Send a message via Skype™ to zhulo
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-06-2012 , 13:06   Re: Problems with reload code
Reply With Quote #2

Most likely you have added the wrong extra offset to an offset.

Like, for example 83, it's m_flNextAttack and it's a player's offset, so +5.

You should use the name for offsets, btw.
__________________
Arkshine is offline
zhulo
Senior Member
Join Date: Jun 2010
Location: Slovakia
Old 07-06-2012 , 13:32   Re: Problems with reload code
Reply With Quote #3

So, m_flNextAttack should be 88?

I tried it and it is still poor
Can you please look at the plugin and tell me where is the problem?

Last edited by zhulo; 07-06-2012 at 13:37.
zhulo is offline
Send a message via ICQ to zhulo Send a message via Skype™ to zhulo
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-06-2012 , 13:51   Re: Problems with reload code
Reply With Quote #4

Like this one : set_pdata_float(id, 83, get_pcvar_float(cvar_reloadtime), 4).

Don't know why you don't use the name which is defined m_flNextAttack, but anyway it should be 5.
It seems someone has added some code without knowing really what he's doing.
__________________
Arkshine is offline
zhulo
Senior Member
Join Date: Jun 2010
Location: Slovakia
Old 07-06-2012 , 13:55   Re: Problems with reload code
Reply With Quote #5

Its this plugin. I only changed some things, but nothing with offsets, reloads, or so... http://forums.alliedmods.net/showthread.php?t=182407
zhulo is offline
Send a message via ICQ to zhulo Send a message via Skype™ to zhulo
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 14:52.


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