Re: Knife Models [XP System Support]
I got a bug, if you are CT then choose a custom knife and then you switch to TT, it will reset to your default CS knife but with your custom knife selected on menu
Edit: This does only happen because on Deathrun mode you only have a Knife as TT, it wont refresh, but if you give a TT a weapon it will give you your desired model. Another suggestion is that Save selection has to be via Nick too, its useless if you are using your Rank System with Nick save. |
Re: Knife Models [XP System Support]
Quote:
|
Re: Knife Models [XP System Support]
Quote:
Ya, also SteamID is so easy to spoof on 2k18, IP is also risky, so yeah, it depends A LOT on each server, on my side, I have a pretty decent register system so yeah, Nick is secure for everyone. |
Re: Knife Models [XP System Support]
Quote:
Quote:
@HamletEagle - I'm switching back to using CurWeapon instead of Ham_Deploy because of this problem. I experienced something simillar in another plugin. I'll need to use a task in order to prevent it, but that doesn't feel right, so I prefer CurWeapon. Quote:
|
Re: Knife Models [XP System Support]
Quote:
|
Re: Knife Models [XP System Support]
Quote:
Also know that hamsandwich module can't have bugs, it just hooks functions from the game dll. |
Re: Knife Models [XP System Support]
Actually, I just tested it again and I think the problem is from fakemeta, not hamsandwich. Here's the code that won't work:
PHP Code:
The same code will work without problems if we use the CurWeapon event instead. With the testing I just did, I found that using pev(iEnt, pev_owner) to get the player's id returns 0 which is why the models isn't set. It returns the correct id however if the weapons aren't removed on spawn. Getting the id with get_pdata_cbase(iEnt, 41, 5) returns the correct value and the model is set. |
Re: Knife Models [XP System Support]
Then there is no bug. pev_owner is not set at that point, this is why you must use m_pPlayer offset to retrieve the player index.
So please switch back to ItemDeploy and use m_pPlayer instead of pev_owner. |
Re: Knife Models [XP System Support]
Quote:
PS: if you want to have a look and approve this one as well, since it uses pretty much the same code. |
Re: Knife Models [XP System Support]
Code:
"L 07/11/2018 - 18:15:16: [AMXX] Run time error 10: native error (native "clamp") |
| All times are GMT -4. The time now is 07:37. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.