AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Individual Weapon Models (https://forums.alliedmods.net/showthread.php?t=96777)

joaquimandrade 07-08-2009 18:45

Individual Weapon Models
 
2 Attachment(s)
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.





TitANious 07-08-2009 18:53

Re: Individual Weapon Models
 
Nice!, an other new plugin from our chief.
Why you don't get your own "High Traffic" forum? :)(Bailopan, give him it please :P)

joaquimandrade 07-08-2009 19:27

Re: Individual Weapon Models
 
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.

TitANious 07-08-2009 19:29

Re: Individual Weapon Models
 
Quote:

Originally Posted by joaquimandrade (Post 867713)
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? :D

SchlumPF* 07-08-2009 20:06

Re: Individual Weapon Models
 
Quote:

Originally Posted by TitANious (Post 867714)
Yet a time. Good job :) Why do you think Bailopan don't likes you? :D

because joachim is from portugal :grrr:

joaquimandrade 07-08-2009 20:42

Re: Individual Weapon Models
 
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"

KadiR 07-09-2009 01:50

Re: Individual Weapon Models
 
nice plugin again :)

{PHILMAGROIN} 07-09-2009 01:57

Re: Individual Weapon Models
 
very nice! just keep creating these masterpieces! :)

ConnorMcLeod 07-09-2009 07:05

Re: Individual Weapon Models
 
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.

joaquimandrade 07-09-2009 07:44

Re: Individual Weapon Models
 
Ok I will do it. (I haven't thought of that)

DruGzOG 07-09-2009 23:57

Re: Individual Weapon Models
 
Joaquimandrade- Do you have like plugin scripting hacks -_-

Another Amazing Plugin

joaquimandrade 07-10-2009 03:09

Re: Individual Weapon Models
 
Thank you. Is very nice to read that.

KadiR 07-10-2009 06:09

Re: Individual Weapon Models
 
all your plugins are approved i think :)
this will be for sure too :mrgreen:

Hawk552 08-14-2009 15:52

Re: Individual Weapon Models
 
This is redundant and cannot be approved. There are other plugins which do the job equally or better.

http://forums.alliedmods.net/showthread.php?p=374055

If you would like any information regarding possible adjustments you could make or things you could do to make this better, please feel free to post here or PM me.

Unapproved.

joaquimandrade 08-14-2009 16:15

Re: Individual Weapon Models
 
Quote:

Originally Posted by Hawk552 (Post 900029)
This is redundant and cannot be approved. There are other plugins which do the job equally or better.

http://forums.alliedmods.net/showthread.php?p=374055

If you would like any information regarding possible adjustments you could make or things you could do to make this better, please feel free to post here or PM me.

Unapproved.

This plugin doesn't replace weapon models. This plugin make you able to add models to each weapon, let each player chose each model, and has a nice way of changing the model without commands.

So you can better see the difference I could never use his on my server because if I wanted to use another model I would have to change the default. What I can't because I let the users decide instead of forcing them. Plus, I can add the number of models I want to each weapon and each user decides what he wants in an easy way.

If you still think is not worth of approval I would like to have another approver opinion.

As a side note, that plugin is replaced by this one easily http://forums.alliedmods.net/showthread.php?p=514507

Hawk552 08-14-2009 17:02

Re: Individual Weapon Models
 
Okay, noted. I've just been zooming through the new plugins section so I didn't notice the intricacies of most of the stuff I looked at. Since it's different, I'll approve it.

KadiR 08-21-2009 16:35

Re: Individual Weapon Models
 
hey quim, is there are way, for adding mor than 1 custom model. I mean, I want the default + custom skin + custom skin..

like in the cfg then:

knife knife_silver knife_gold

??

joaquimandrade 08-21-2009 16:38

Re: Individual Weapon Models
 
Quote:

Originally Posted by KadiR (Post 908321)
hey quim, is there are way, for adding mor than 1 custom model. I mean, I want the default + custom skin + custom skin..

like in the cfg then:

knife knife_silver knife_gold

??

knife knife_silver
knife knife_gold

pirvu 08-21-2009 16:49

Re: Individual Weapon Models
 
Dude you are awesome ...
No comment .. +karma ..
Also it will be nice if you'll have your own sub-forum..
You really deserve it ...

joaquimandrade 08-21-2009 19:40

Re: Individual Weapon Models
 
Quote:

Originally Posted by pirvu (Post 908341)
Dude you are awesome ...
No comment .. +karma ..
Also it will be nice if you'll have your own sub-forum..
You really deserve it ...

Thanks :twisted:

But i'm sure there are more people with multiple plugins before me on the queue :wink:

KadiR 08-22-2009 06:01

Re: Individual Weapon Models
 
oohh, thanks quim =)

kobri 09-19-2009 12:05

Re: Individual Weapon Models
 
Great idea! Can you please make an option for the change to be available only for users with certain access flags?

P.S. Just tested it, works like a charm, however only for the POV models, any chance for the 3rd person view?

Wasteland 01-15-2010 09:11

Re: Individual Weapon Models
 
Uhm...I have done everything when adding the plugin and models but is not working! I mean, I get the default models even is it's set to 1 or 0! Here is my individualWeaponModels.ini
Code:

knife knife_whip
glock 18 glock18_silver
usp usp_silver
p228 p228_silver
m3 m3_silver
xm1014 xm1014_silver
tmp tmp_silver
mac10 mac10_silver
mp5 mp5_silver
ump45 ump45_silver
p90 p90_silver
galil galil_silver
famas famas_silver
ak47 ak47_silver
m4a1 m4a1_silver
aug aug_silver
sg552 sg552_silver
sg550 sg550_silver
g3sg1 g3sg1_silver
scout scout_silver
awp awp_silver
m249 m249_silver
hegrenade hegrenade_silver

Have I done something wrong? P.S.I have a Biohazard Server! Latest version! :) Please help cause I would love to change the models from my server but don't know how! Tried so many plugins....but still...nothing! PLEASE!


P.S. [ 71] unknown unknown unknown individualWeapo bad load

crazyeffect 01-15-2010 17:24

Re: Individual Weapon Models
 
Quote:

knife knife_whip
glock18 glock18_silver
usp usp_silver
p228 p228_silver
m3 m3_silver
xm1014 xm1014_silver
tmp tmp_silver
mac10 mac10_silver
mp5 mp5_silver
ump45 ump45_silver
p90 p90_silver
galil galil_silver
famas famas_silver
ak47 ak47_silver
m4a1 m4a1_silver
aug aug_silver
sg552 sg552_silver
sg550 sg550_silver
g3sg1 g3sg1_silver
scout scout_silver
awp awp_silver
m249 m249_silver
hegrenade hegrenade_silver
You had a space between 'glock' & '18'

ditmesteam 01-16-2010 03:35

Re: Individual Weapon Models
 
I do not understand.
For example I use orginal v_m4a1, now I have new model m4a1_sliver. I seted G button for drop guns
How can I change orginal m4a1 into new v_m4a1_sliver (Am I right if I press G button). Can I use orginal v_m4a1 gun again?

Wasteland 01-16-2010 11:24

Re: Individual Weapon Models
 
Quote:

Originally Posted by crazyeffect (Post 1056116)
You had a space between 'glock' & '18'

Ok. But none of the skins work!

crazyeffect 01-16-2010 11:41

Re: Individual Weapon Models
 
well, that space can fuck everything up

Wasteland 01-16-2010 11:52

Re: Individual Weapon Models
 
Nope. Still not working! And i get these 2 errors when I type amx_plugins in the console! [ 72] unknown unknown unknown individualWeapo bad load

( 72) Load fails: Plugin uses an unknown function (name "TrieGetCell") - check your modules.ini.

And my modules.ini looks like this:
Code:

;;;
; To enable a module, remove the semi-colon (;) in front of its name.
; If it's not here, simply add it its name, one per line.
; You don't need to write the _amxx part or the file extension.
;;;

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; SQL Modules usually need to be enabled manually ;;
;; You can have any number on at a time.  Use      ;;
;;  amx_sql_type in sql.cfg to specify the default ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

;mysql
;sqlite

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Put third party modules below here.              ;;
;; You can just list their names, without the _amxx ;;
;;  or file extension.                              ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;



;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; These modules will be auto-detected and loaded  ;;
;;  as needed.  You do not need to enable them here ;;
;;  unless you have problems.                      ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

fun
;engine
;fakemeta
geoip
;sockets
regex
;nvault
cstrike
csx
hamsandwich


DarkGod 01-16-2010 16:53

Re: Individual Weapon Models
 
Quote:

Originally Posted by Wasteland (Post 1057093)
Nope. Still not working! And i get these 2 errors when I type amx_plugins in the console! [ 72] unknown unknown unknown individualWeapo bad load

( 72) Load fails: Plugin uses an unknown function (name "TrieGetCell") - check your modules.ini.

Get the latest version of AMXX NAOW!

Wasteland 01-17-2010 00:47

Re: Individual Weapon Models
 
Quote:

Originally Posted by DarkGod (Post 1057435)
Get the latest version of AMXX NAOW!

Uhm...Same errors! Still not working! Even with the latest version of AMXX! Oh well....I will erase the plugin from my server then! Tnx anyways guys! ;) Maybe one day there will be a plugin that will work for me as well! Cheers! :)

KadiR 01-17-2010 09:17

Re: Individual Weapon Models
 
I've got the newest version of amxx, protocol 48 blabla. But today, my server crashed after a roundstart:

Quote:

FATAL ERROR (shutting down): SV_ModelIndex: model models/v_knife_bloodysilver_beta not precached
Why did that occur? :o

joaquimandrade 01-17-2010 09:22

Re: Individual Weapon Models
 
Quote:

Originally Posted by KadiR (Post 1058031)
I've got the newest version of amxx, protocol 48 blabla. But today, my server crashed after a roundstart:



Why did that occur? :o

It should be the length of the name. Try a smaller name.

KadiR 01-17-2010 09:24

Re: Individual Weapon Models
 
Quote:

Originally Posted by joaquimandrade (Post 1058034)
It should be the length of the name. Try a smaller name.

Thanks for your answer!
I am going todo it now, will report soon again! :up:

EDIT:

Do you know the max length that can be inserted?

joaquimandrade 01-17-2010 09:27

Re: Individual Weapon Models
 
Quote:

Originally Posted by KadiR (Post 1058039)
Thanks for your answer!
I am going todo it now, will report soon again! :up:

EDIT:

Do you know the max length that can be inserted?

The limit on the plugin is on the line

PHP Code:

const ModelMaxLen 50 


KadiR 01-17-2010 11:42

Re: Individual Weapon Models
 
Quote:

Originally Posted by joaquimandrade (Post 1058040)
The limit on the plugin is on the line

PHP Code:

const ModelMaxLen 50 


Ah well, thanks, didn't see it. What will be counted:

cstrike/models/v_knife_new.mdl

Everything from the cstrike folder up to the endfile format? Or just model name? Cause my modelname hasn't got 50 letters in it.

joaquimandrade 01-17-2010 12:59

Re: Individual Weapon Models
 
Quote:

Originally Posted by KadiR (Post 1058120)
Ah well, thanks, didn't see it. What will be counted:

cstrike/models/v_knife_new.mdl

Everything from the cstrike folder up to the endfile format? Or just model name? Cause my modelname hasn't got 50 letters in it.

Maybe I used it differently in the code but the "cstrike/" part doesn't count. Make the name smaller and tell me if it works.

KadiR 01-17-2010 17:04

Re: Individual Weapon Models
 
Quote:

Originally Posted by joaquimandrade (Post 1058183)
Maybe I used it differently in the code but the "cstrike/" part doesn't count. Make the name smaller and tell me if it works.

Has this something todo with your plugin?

Quote:

Host_Error: no precache: *96

FATAL ERROR (shutting down): Host_Error: no precache: *96

joaquimandrade 01-18-2010 15:10

Re: Individual Weapon Models
 
Quote:

Originally Posted by KadiR (Post 1058411)
Has this something todo with your plugin?

Don't think so.

ditmesteam 01-19-2010 22:07

Re: Individual Weapon Models
 
Quote:

Originally Posted by ditmesteam (Post 1056720)
I do not understand.
For example I use orginal v_m4a1, now I have new model m4a1_sliver. I seted G button for drop guns
How can I change orginal m4a1 into new v_m4a1_sliver (Am I right if I press G button). Can I use orginal v_m4a1 gun again?

Mr joaquimandrade, please check private messgae, and fix bugs for us at: peeingtom2

KadiR 01-20-2010 10:25

Re: Individual Weapon Models
 
Quote:

Originally Posted by ditmesteam (Post 1060755)
Mr joaquimandrade, please check private messgae, and fix bugs for us at: peeingtom2

I would say that he would not respond you, cause of :rtfm:


All times are GMT -4. The time now is 05:38.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.