[CS] CS 1.5 (Retro) Knife
1 Attachment(s)
Very simple addon to use the CS 1.5 knife model in CS 1.6.
Note that only the p_knife_r.mdl needs to be downloaded from server, since v_knife_r.mdl already exist by default in CS1.6 installation but is unused. The w_knife.mdl is still the same 1.5 model in 1.6, so it doesn't need to be changed. edit: use the code from the post below, as it is more efficient Also note that while it's supposedly better to hook v_ / p_ model using PHP Code:
https://i.imgur.com/kqQIll4.png PHP Code:
|
Re: [CS] CS 1.5 (Retro) Knife
PHP Code:
Have a nice day. |
Re: [CS] CS 1.5 (Retro) Knife
Please do not use CurWeapon to set weapon models. Use Ham_Item_Deploy.
To make it work with bots, look into RegisterHamFromEntity and provide a bot id, or if you are using amxx 1.9+, there are two easier solutions: set the last argument of RegisterHam called specialbot to true or use RegisterHamPlayer. There should be no difference for knife maps, a knife is a knife and it is deployed in the same way no matter the map. |
Re: [CS] CS 1.5 (Retro) Knife
There are some problems that will cause the model not change on item deploy but it’s always a programmer mistake.
If you use multiple model plugins to change the model of the same weapon you may encounter this “bug”. It isn’t really a bug just a bad server management. Also, and derailing topic, i guy once asked me help because on Basebuilder a m4 model would display on Knife model. I guess it’s the fast weapon change that bb plugin causes on build time. At the time I didn’t had the opportunity to help the guy fixing but yeah. Item deploy despite reliable must be used carefully if you run multiple plugins with it. |
Re: [CS] CS 1.5 (Retro) Knife
@WATCH_D0GS UNITED
This version seems to indeed work correctly, even with bots and on knife maps. So the problem was using Ham_Item_Deploy and then entity_set_string, which doesn't work correctly; by using set_pev it works. Thanks. |
Re: [CS] CS 1.5 (Retro) Knife
ReAPI method:
|
All times are GMT -4. The time now is 01:19. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.