Set lefthand and righthand weapon skins
Hello everyone! Hope you are coping with the pandemic.
I have this .sma activated on my server and it works fully. However, I want to add some codes that would trigger a weapon skin model (v_model) to be shown for admins if they are on lefthand OR righthand (depending) in-game. ***THE PROBLEM*** My custom weapon skins model work already in-game for admins. The only glitch is that, even I use v_model default on righthand set on my models folder inside cstrike, it still shows righthand view even players are cl_righthand 0 or setinfo lefthand 1 in-game. ***THE REQUESTED SOLUTION*** Can I add some code in my .sma to view my mirrored v_model (.mdl which is lefthanded) in-game for admins when they are on cl_righthand 0 and setinfo lefthand 1? For example: PHP Code:
PHP Code:
|
Re: Set lefthand and righthand weapon skins
Wouldn't be better to flip the model instead?
|
Re: Set lefthand and righthand weapon skins
Are you sure that the skin's isn t already in righthand in the model and when you cl_righthand 1 it goes left?
|
Re: Set lefthand and righthand weapon skins
Quote:
I use as default the "righthand".mdl so that technically when setinfo lefthand 1 or cl_righthand 0 in-game, the weapon skin would display on left hand. (THE PROBLEM is, even weapon is set to lefthand still shows the custom weapon skin in righthand) How do I find a way round to force a code to my .sma to read a different v_model file which is a mirrored or flipped .mdl of my custom weapon skin righthand model to be guaranteed that when a player in-game sets weapon in lefthand, this v_model_lefthand would be triggered for pevview. Thank you and regards! |
Re: Set lefthand and righthand weapon skins
Quote:
- When a player sets weapon to be on lefthand (setinfo lefthand 1 / cl_righthand 0), the custom weapon skin is still showed and appears on the righthand. - I don't know how to add a code to my .sma that triggers to call a different v_model to be forced when players in-game are on lefthand; e.g. IF RIGHTHAND: PHP Code:
PHP Code:
|
Re: Set lefthand and righthand weapon skins
UP :)
|
Re: Set lefthand and righthand weapon skins
Code:
|
Re: Set lefthand and righthand weapon skins
Quote:
Is it okay to ask where to insert this in my existing .sma? Here is the copy of it: PHP Code:
Looking forward! :) |
Re: Set lefthand and righthand weapon skins
If the *_r models are the right hand ones, something like this
Code:
|
Re: Set lefthand and righthand weapon skins
Quote:
|
| All times are GMT -4. The time now is 14:09. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.