Raised This Month: $12 Target: $400
 3% 

Weapon Model Replacement


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands        Approver:   GHW_Chronic (70)
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 08-28-2006 , 00:08   Weapon Model Replacement
Reply With Quote #1

  • This plugin allows you to replace all client's weapon models + sounds to custom skins from your server. In Example: You found a pretty M4A1 model that you want everyone to use cause it's so leet, you can download it and put it onto your server and edit the config file to use the custom M4A1's models. Sounds however only work for melee weapons (IE: knife, crowbar).


Config file Info:
  • Quote:
    file: | amxmodx/configs/new_weapons.ini

    syntax: | "old model/sound file" "new model/sound file" ["Team"]
    example : | "models/model.mdl" "models/newmodel.mdl"
    example : | "sound/weapons/sound.wav" "sound/weapons/newsound.wav" "CT"
    example : | "models/v_knife.mdl" "models/v_knife2.mdl" "T"
    example : | "models/p_rocketlauncher.mdl" "models/p_rocketlauncher2.mdl" "Axis"
  • new_weapons.ini is read for every map if new_weapons_mapname.ini is not found. (IE: new_weapons_de_dust2.ini)
  • Team name that comes after the models/sounds can be both without or with quotes. The team is optional, if no team specified the model/sound will be applied to all players on all teams. If you do specify a team it should be one of the following:
    • T
    • Terrorist
    • Terrorists
    • Blue
    • B
    • Allies
    • 1
    • CT
    • Counter
    • Counter-Terrorist
    • Counter-Terrorists
    • CounterTerrorists
    • CounterTerrorist
    • Red
    • R
    • Axis
    • 2
    • Yellow
    • Y
    • 3
    • Green
    • G
    • 4

Notes:
    • Note 1: The more models + sounds you replace into the config file the less efficient this plugin will become. This doesn't mean that you cannot put a bunch of models + sounds into the config file, nor that it is not recommended, just that if your server experiences higher ping, consider reducing the number of replaced models + sounds.
    • Note 2: By default you can replace a max of 50 v_models + 50 p_models + 50 w_models + 50 sounds. You can change this on lines 5 - 9 of the .sma file then you'll have to recompile+replace the plugin with the new .sma file and you are good2go.
    • Note 3: Remember, the client has to download every model + sound that you are replacing upon entering the server. Don't go overboard please.
    • Note 4: you cannot replace any sound files except for melee weapons.
    • Note 5: Stay away from using symbols in your file and folder names. Example: "sound/weapons/==GHW==/knife_slash1.wav" is a bad name. "sound/weapons/GHW/knife_slash1-2.wav" is also a bad name.
      Note 6: Can't replace shield models.


Recommendations:
FPS Banana (skins)
sv_downloadurl
_
Attached Files
File Type: sma Get Plugin or Get Source (GHW_Weapon_Replacement.sma - 112586 views - 7.1 KB)
File Type: ini new_weapons.ini (41 Bytes, 76625 views)
File Type: ini new_weapons_de_dust2.ini (47 Bytes, 34016 views)

Last edited by GHW_Chronic; 06-12-2008 at 18:50.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
k007
BANNED
Join Date: Mar 2006
Location: bacon?
Old 08-28-2006 , 00:13   Re: Weapon Model + Sound replacement
Reply With Quote #2

lol nice plugin gj
k007 is offline
Send a message via MSN to k007
Bo0m!
Veteran Member
Join Date: Mar 2006
Location: New Jersey
Old 08-28-2006 , 01:50   Re: Weapon Model + Sound replacement
Reply With Quote #3

Ooh.. I had plans to make something exactly like this, but now I don't have to. Nice plugin.
__________________
Bo0m! is offline
Send a message via AIM to Bo0m! Send a message via MSN to Bo0m! Send a message via Yahoo to Bo0m!
j33p
Junior Member
Join Date: Jul 2006
Location: quebec
Old 08-28-2006 , 02:01   Re: Weapon Model + Sound replacement
Reply With Quote #4

it's doesn't work. the sounds are uploads to the players but when they use the ak47, its always the original sound
j33p is offline
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 08-28-2006 , 02:02   Re: Weapon Model + Sound replacement
Reply With Quote #5

paste ur config file.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
j33p
Junior Member
Join Date: Jul 2006
Location: quebec
Old 08-28-2006 , 02:28   Re: Weapon Model + Sound replacement
Reply With Quote #6

"sound/weapons/ak47-1.wav" "sound/actioncombat/weapons/ak47-1.wav"
"sound/weapons/ak47-2.wav" "sound/actioncombat/weapons/ak47-2.wav"
"sound/weapons/ak47_boltpull.wav" "sound/actioncombat/weapons/ak47_boltpull.wav"
"sound/weapons/ak47_clipin.wav" "sound/actioncombat/weapons/ak47_clipin.wav"
"sound/weapons/ak47_clipout.wav" "sound/actioncombat/weapons/ak47_clipout.wav"
j33p is offline
Guenhwyvar
AMX Mod X Beta Tester
Join Date: Jul 2005
Location: Berlin / Germany
Old 08-28-2006 , 06:20   Re: Weapon Model + Sound replacement
Reply With Quote #7

Nice one, like the one by mptijsma. Some questions:

Why no w_models?
Can you explain how this plugin costs system ressources? As you warn not to take too many, I guess this plugin takes more than other more simple plugins?
Guenhwyvar is offline
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 08-28-2006 , 09:38   Re: Weapon Model + Sound replacement
Reply With Quote #8

Yes, I ask too. Why no w_ models?
It isn't that difficult to add that feature.
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
TiMbErLaNd
Senior Member
Join Date: Jan 2005
Location: Detroit, Michigan
Old 08-28-2006 , 10:16   Re: Weapon Model + Sound replacement
Reply With Quote #9

Can the ability to replace the stock player models also be incorporated into this plugin? This would actually cut down my number of existing plugins.
TiMbErLaNd is offline
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 08-28-2006 , 10:28   Re: Weapon Model + Sound replacement
Reply With Quote #10

Quote:
Originally Posted by TiMbErLaNd View Post
Can the ability to replace the stock player models also be incorporated into this plugin? This would actually cut down my number of existing plugins.
Like skins?
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
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 16:46.


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