Raised This Month: $105 Target: $400
 26% 

Individual Weapon Models


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff        Approver:   Hawk552 (427)
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 07-08-2009 , 19:45   Individual Weapon Models
Reply With Quote #1

Individual Weapon Models

description
This plugin makes you able to add more view models (Those you see when you are holding the weapon. Spectators also see it) for each weapon and let each user use what he wants.

To change the model of a non droppable weapon (knife,grenades) the user must press DROP
To change the model of a droppable weapon the user must press USE+DROP

how to add models
The default model for each weapon is named accordingly the weapon name.
Knife model, as an example, is "v_knife.mdl".
If you want to add another knife model you would name the new model to a name similar to the original (but different) like "v_knife_silver.mdl" and put it in the folder "models".
Then, in the config file, you would add the line:
knife knife_silver

cvars
weaponModels_default 1 - If the default model should be still used for all weapons that you added a new skin. If you set it to 0 the default model will not be used unless you added it to the config file. Let's say you don't wont to use the default models for any weapon other than the usp. You would set this to 0 and in the config file you would add
usp usp

changelog
1.1 - Fixed shield animation related stuff
1.2 - Added shield model option


This plugin doesn't handle weapons sounds and I don't plan to change it in that way.
By default, the config file adds a skin to the knife that comes with CS so clients won't need to download it

Thanks to Connor for the idea of changing the knife model this way, xPaw that remembered me of this, and Stupok that helped me testing it.


If a considerable number of people wants to I will add the option of save the preferred model permanently in a database.

Lastly, the plugin misses a thing that is, when you change a model before the weapon being fully deployed the visual weapon animation doesn't play, but the model changes. It doesn't affect the plugin behaviour at all, it isn't needed, but it will be nice. Will fix this when i have a good solution without having to hardcode the weapon deploy animations numbers.




Attached Files
File Type: ini individualWeaponModels.ini (13 Bytes, 3602 views)
File Type: sma Get Plugin or Get Source (individualWeaponModels.sma - 5628 views - 7.8 KB)
__________________

Last edited by joaquimandrade; 07-09-2009 at 01:10.
joaquimandrade is offline
TitANious
Veteran Member
Join Date: Feb 2009
Location: Denmark
Old 07-08-2009 , 19:53   Re: Individual Weapon Models
Reply With Quote #2

Nice!, an other new plugin from our chief.
Why you don't get your own "High Traffic" forum? (Bailopan, give him it please )
__________________
I dislike this.

"A sneeze never comes alone!" <-- Important to remember.

Last edited by TitANious; 07-08-2009 at 20:02.
TitANious is offline
Send a message via MSN to TitANious
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 07-08-2009 , 20:27   Re: Individual Weapon Models
Reply With Quote #3

Bailopan doesn't like me.

Updated the plugin. It wasn't taking account of the possibility of the user having shield. Still, shield different models aren't yet a possibility.
__________________
joaquimandrade is offline
TitANious
Veteran Member
Join Date: Feb 2009
Location: Denmark
Old 07-08-2009 , 20:29   Re: Individual Weapon Models
Reply With Quote #4

Quote:
Originally Posted by joaquimandrade View Post
Bailopan doesn't like me.

Updated the plugin. It wasn't taking account of the possibility of the user having shield. Still, shield different models aren't yet a possibility.
Yet a time. Good job Why do you think Bailopan don't likes you?
__________________
I dislike this.

"A sneeze never comes alone!" <-- Important to remember.
TitANious is offline
Send a message via MSN to TitANious
SchlumPF*
Veteran Member
Join Date: Mar 2007
Old 07-08-2009 , 21:06   Re: Individual Weapon Models
Reply With Quote #5

Quote:
Originally Posted by TitANious View Post
Yet a time. Good job Why do you think Bailopan don't likes you?
because joachim is from portugal
__________________
SchlumPF* is offline
Send a message via ICQ to SchlumPF*
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 07-08-2009 , 21:42   Re: Individual Weapon Models
Reply With Quote #6

Update. Version 1.2. If you add a model it searches for its associated shield model. That is:

If you add to the config file

usp usp_dark

it will search for "models/shield/v_shield_usp_dark.mdl"
__________________

Last edited by joaquimandrade; 07-09-2009 at 01:10.
joaquimandrade is offline
KadiR
Unnecessary Member
Join Date: Aug 2008
Location: Zürich / Switzerland
Old 07-09-2009 , 02:50   Re: Individual Weapon Models
Reply With Quote #7

nice plugin again
KadiR is offline
{PHILMAGROIN}
Senior Member
Join Date: Aug 2007
Location: In the middle of the des
Old 07-09-2009 , 02:57   Re: Individual Weapon Models
Reply With Quote #8

very nice! just keep creating these masterpieces!
__________________
[B]
{PHILMAGROIN} is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-09-2009 , 08:05   Re: Individual Weapon Models
Reply With Quote #9

Why don't you use register/unregister message for that drop TextMsg ? this way TextMsg wouldn't be registered all the time, and original msgs would be sent instead of being resend every time.
__________________
- tired and retired -
ConnorMcLeod is offline
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 07-09-2009 , 08:44   Re: Individual Weapon Models
Reply With Quote #10

Ok I will do it. (I haven't thought of that)
__________________

Last edited by joaquimandrade; 07-09-2009 at 08:50.
joaquimandrade is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:19.


Powered by vBulletin®
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Theme made by Freecode