Re: Knife Models [XP System Support]
Ugh, why would you want to do that? It's much easier for people to know the required level number instead of remembering all of the the rank names. I'll add an option in the next update though.
|
Re: Knife Models [XP System Support]
Well, I mean its more beauty to look at Ranks instead of a flat number.. Waiting for that, thank you
|
Re: Knife Models [XP System Support]
https://img.shields.io/badge/update-...2018-green.svg
|
Re: Knife Models [XP System Support]
Quote:
Thank you for your work. This is incredible! :) |
Re: Knife Models [XP System Support]
Still shows LEVEL = 2
Quote:
|
Re: Knife Models [XP System Support]
@Supergirl - you're right. I'll make separate parameters for both teams and you'll be able to have a different knife depending on which team you are.
@xeloxdex - you probably didn't fully update the plugin. Make sure you download and recompile the .sma file and replace the .amxx one. I tested it multiple times and it works perfectly. |
Re: Knife Models [XP System Support]
Yeah, I did everything, not sure what I did wrong...
Not sure what I did but managed to make it work, now it fully works. |
Re: Knife Models [XP System Support]
When I switch to another weapon, it wont save my knife...
|
Re: Knife Models [XP System Support]
Oops! Fixed, sorry about that. Update only crx_knife_models.sma/amxx.
|
Re: Knife Models [XP System Support]
Quote:
Edit - Having some thoughts... why not having more than custom knives for both teams: why not having default knives for both teams (for this I mean when you enter the server instead of the "Default" knife, it will have 2 "Default" knives, one for TE and one for CT)? Is it possible to manage the plugin to do so? |
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") |
Re: Knife Models [XP System Support]
Quote:
|
Re: Knife Models [XP System Support]
Quote:
|
Re: Knife Models [XP System Support]
https://img.shields.io/badge/update-...2018-green.svg
|
Re: Knife Models [XP System Support]
L 07/18/2018 - 02:38:24: [AMXX] Displaying debug trace (plugin "crx_knife_models.amxx", version "2.5")
L 07/18/2018 - 02:38:24: [AMXX] Run time error 4: index out of bounds L 07/18/2018 - 02:38:24: [AMXX] [0] crx_knife_models.sma::RefreshKnifeModel (line 410) L 07/18/2018 - 02:38:24: [AMXX] [1] crx_knife_models.sma::OnSelectKnife (line 406) |
Re: Knife Models [XP System Support]
Quote:
|
Re: Knife Models [XP System Support]
The knife model turns back to default one when i switch weapons, why? This was not happening in older versions. Thx btw.
|
Re: Knife Models [XP System Support]
It works fine for me, just tested it. Make sure you downloaded the latest version (2.5.1), because there was such a bug in the previous version. If the bug still occurs, see if it works like this:
PHP Code:
|
Re: Knife Models [XP System Support]
Worked thanks! I'm using it on Xash3D, idk but maybe that's why the newest version wasn't working? Anyway it's working now!
EDIT I found out that when i reconnect to the server, my selected knife model is shown as SELECTED on the menu but the model and sounds is reverted to default one. Btw, it would be cool if you can add a draw animation on knife selection. Just an suggestion! |
Re: Knife Models [XP System Support]
I fixed both issues now, download the plugin again (only the .sma file) and recompile. I also added a protection for the server not to crash if a model set in the .ini file doesn't exist.
About the animation - I like the idea, but I'm not sure if all models have the same animation ids. I'll have a look and add it if it's possible. @HamletEagle - sorry, but yet again I switched back to CurWeapon. The guy above is a clear example that the hamsandwich method simply doesn't work properly. I had 2 other people say the same thing in another forum and it worked for them when I sent them a CurWeapon version. I don't know when and why this is happening, but it's clearly a problem. I'm pretty sure it's happening only on Linux. |
Re: Knife Models [XP System Support]
Quote:
Ham_Item_Deploy is just a hook for Deploy(), which is where game sets models. That's literally how it's done inside game, there is no reason for it not to work, except really outdated game binaries. Using Ham_Item_Deploy to set models it's really not a new or fancy thing. Example: https://github.com/s1lentq/ReGameDLL...n_ak47.cpp#L55 If you insist that there is an issue find a way to reproduce it and get some debug logs, which should tell if the forward is even called, if the owner is retrieved sucessfully and so on. I'm sorry but I'll have to unapprove if you wish to stick with CurWeapon, as this is not optimal. Edit: I looked at your old code and it is wrong. PHP Code:
PHP Code:
|
Re: Knife Models [XP System Support]
Blah, silly me, totally forgot that the offset argument even exists. :mrgreen:
I'll switch it back *again* in a few hours. |
Re: Knife Models [XP System Support]
i have a problem with knife models. when i enter on my server i don't have selected item, is default but in menu is selected.
|
Re: Knife Models [XP System Support]
Quote:
|
Re: Knife Models [XP System Support]
Quote:
He put default skin in menu. ( Knife / awp plugins skins flag problem ) |
Re: Knife Models [XP System Support]
Did you enable the skin saving option?
|
Re: Knife Models [XP System Support]
yes, but only skins with flag is not saving.
|
Re: Knife Models [XP System Support]
the sounds didn't work for me
|
Re: Knife Models [XP System Support]
Quote:
|
Re: Knife Models [XP System Support]
GJ :)
|
Re: Knife Models [XP System Support]
1. Does everybody else in the server sees what skin(p_model) you currently using?
2. Is the model change update in realtime? Sorry if been asked before. |
| All times are GMT -4. The time now is 07:37. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.