AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Problems with reload code (https://forums.alliedmods.net/showthread.php?t=189374)

zhulo 07-06-2012 12:16

Problems with reload code
 
1 Attachment(s)
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

Arkshine 07-06-2012 13:06

Re: Problems with reload code
 
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.

zhulo 07-06-2012 13:32

Re: Problems with reload code
 
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?

Arkshine 07-06-2012 13:51

Re: Problems with reload code
 
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.

zhulo 07-06-2012 13:55

Re: Problems with reload code
 
Its this plugin. I only changed some things, but nothing with offsets, reloads, or so... http://forums.alliedmods.net/showthread.php?t=182407


All times are GMT -4. The time now is 15:08.

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