This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Weapon Model Replacement


Post New Thread Reply   
 
Thread Tools Display Modes
hjalle
Junior Member
Join Date: Sep 2006
Old 03-02-2007 , 10:05   Re: Weapon Model + Sound replacement
Reply With Quote #141

tanks karma+
hjalle is offline
Old 03-02-2007, 14:09
hjalle
This message has been deleted by hjalle.
Old 03-02-2007, 14:10
hjalle
This message has been deleted by hjalle.
ceryeceon
Member
Join Date: May 2004
Old 03-03-2007 , 15:55   Re: Weapon Model + Sound replacement
Reply With Quote #142

hmmm

i just tried this myself.. and... it downloads the model.. but nothing shows up on the screen for the gun..

the ini is
Code:
"models/v_usp.mdl" "models/usp/v_usp.mdl"
the plugin is running as well.... so.. I don't know


i forgot... the log files... show nothing. no errors

Last edited by ceryeceon; 03-03-2007 at 16:21.
ceryeceon is offline
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 03-03-2007 , 17:27   Re: Weapon Model + Sound replacement
Reply With Quote #143

very strange. make sure you didn't accidentally put the normal USP model in the usp folder instead of the new one is my advise..
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
ceryeceon
Member
Join Date: May 2004
Old 03-03-2007 , 20:51   Re: Weapon Model + Sound replacement
Reply With Quote #144

I didn't. I made sure of it. The file is there in my models directory, but on the screen in game it's nothing at all which is weird... so it's like i'm firing bullets from air.. o.O

basically... no model is shown.
ceryeceon is offline
Voi
Veteran Member
Join Date: Sep 2006
Location: Gdansk, Poland
Old 03-03-2007 , 23:36   Re: Weapon Model + Sound replacement
Reply With Quote #145

anybody know what i must change in the qc file to change weapon firing sounds?

edit:

ive added the sound to the animation qc file and it now place original and modified sounds ad once o_O
__________________

Last edited by Voi; 03-03-2007 at 23:45.
Voi is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-05-2007 , 11:51   Re: Weapon Model + Sound replacement
Reply With Quote #146

As you don't answer my questions, i tried by myself to code the per map feature.
Unfortunatly it doesn't work.
Please someone help me to make it work :
Code:
public plugin_precache()
{
    new mapname[32]
    get_mapname(mapname, 31)
    
    new configfile[200]
    new configsdir[200]
    get_configsdir(configsdir,199)
    new pm_file[200]
    format(pm_file,199,"%s/new_weapons/new_weapons_%s.ini",configsdir,mapname)
    if(file_exists(pm_file))
        format(configfile,199,"%s/new_weapons/new_weapons_%s.ini",configsdir,mapname)
    else
        format(configfile,199,"%s/new_weapons.ini",configsdir)

    new read[96], left[48], right[48], trash
@GHW_Chronic
It would be very usefull to change some weapon models according to some maps, or to precache less models on some maps.
ConnorMcLeod is offline
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 03-05-2007 , 17:56   Re: Weapon Model + Sound replacement
Reply With Quote #147

IMing me and PMing me and bumping 3000000 times isn't really nice. I read what you had to say the first time (even if the 57th time made me actually do it).

Read the main post.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
polakpolak
Senior Member
Join Date: Mar 2005
Location: Montreal, Canada
Old 03-05-2007 , 20:02   Re: Weapon Model + Sound replacement
Reply With Quote #148

Amazing plugin, Ive been using it for quite some time.

Just a quick question/remark, I get errors, put the plugin seems to work well.

Code:
L 03/05/2007 - 18:42:50: [GHW_Weapon_Replacement.amxx] File Inexistent: "" (Line 28 of new_weapons.ini)
L 03/05/2007 - 18:42:50: [GHW_Weapon_Replacement.amxx] File Inexistent: "" (Line 28 of new_weapons.ini). File still loaded because this error may be caused if you are running a server off of steam. (Ded/Listen)
L 03/05/2007 - 18:42:50: [GHW_Weapon_Replacement.amxx] File Inexistent: "" (Line 29 of new_weapons.ini)
L 03/05/2007 - 18:42:50: [GHW_Weapon_Replacement.amxx] File Inexistent: "" (Line 29 of new_weapons.ini). File still loaded because this error may be caused if you are running a server off of steam. (Ded/Listen)
L 03/05/2007 - 18:42:50: [GHW_Weapon_Replacement.amxx] File Inexistent: "" (Line 30 of new_weapons.ini)
L 03/05/2007 - 18:42:50: [GHW_Weapon_Replacement.amxx] File Inexistent: "" (Line 30 of new_weapons.ini). File still loaded because this error may be caused if you are running a server off of steam. (Ded/Listen)
__________________
------------------------------------
Server Location: New York
WC3FT Server IP: 69.9.42.144:27015
500Fps www.PolakServers.com
------------------------------------
polakpolak is offline
Send a message via MSN to polakpolak
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-05-2007 , 21:00   Re: Weapon Model + Sound replacement
Reply With Quote #149

Thanks to finally do it.
I have posted with a 15 days delay, but i didn't see any answer saying you would do it or no, so i PMed you (as you suggest people to do it) and i asked scripting support in that thread.

Thanks

edit : seems that models from new_weapons.ini are still precached when a per map file exist :
map fun_matrix_revolutions.bsp
configs/new_weapons.ini :
Code:
"models/v_ak47.mdl" "models/css/v_ak47.mdl"
"models/v_aug.mdl" "models/css/v_aug.mdl"
"models/v_awp.mdl" "models/css/v_awp.mdl"
"models/v_c4.mdl" "models/css/v_c4.mdl"
"models/v_deagle.mdl" "models/css/v_deagle.mdl"
"models/v_elite.mdl" "models/css/v_elite.mdl"
"models/v_famas.mdl" "models/css/v_famas.mdl"
"models/v_fiveseven.mdl" "models/css/v_fiveseven.mdl"
"models/v_flashbang.mdl" "models/css/v_flashbang.mdl"
"models/v_g3sg1.mdl" "models/css/v_g3sg1.mdl"
"models/v_galil.mdl" "models/css/v_galil.mdl"
"models/v_glock18.mdl" "models/css/v_glock18.mdl"
"models/v_hegrenade.mdl" "models/css/v_hegrenade.mdl"
"models/v_knife.mdl" "models/css/v_knife.mdl"
"models/v_m3.mdl" "models/css/v_m3.mdl"
"models/v_m4a1.mdl" "models/css/v_m4a1.mdl"
"models/v_m249.mdl" "models/css/v_m249.mdl"
"models/v_mac10.mdl" "models/css/v_mac10.mdl"
"models/v_mp5.mdl" "models/css/v_mp5.mdl"
"models/v_p90.mdl" "models/css/v_p90.mdl"
"models/v_p228.mdl" "models/css/v_p228.mdl"
"models/v_scout.mdl" "models/css/v_scout.mdl"
"models/v_sg550.mdl" "models/css/v_sg550.mdl"
"models/v_sg552.mdl" "models/css/v_sg552.mdl"
"models/v_smokegrenade.mdl" "models/css/v_smokegrenade.mdl"
"models/v_tmp.mdl" "models/css/v_tmp.mdl"
"models/v_ump45.mdl" "models/css/v_ump45.mdl"
"models/v_usp.mdl" "models/css/v_usp.mdl"
"models/v_xm1014.mdl" "models/css/v_xm1014.mdl"
configs/fun_matrix_revolutions_new_weapons.ini = empty file to test




old file configs/maps/plugins-fun_matrix_revolutions.ini
Code:
GHW_Weapon_Replacement.amxx disabled
GHW_Uslays.amxx disabled
The map work good.




new file configs/maps/plugins-fun_matrix_revolutions.ini
Code:
;GHW_Weapon_Replacement.amxx disabled
GHW_Uslays.amxx disabled
Server crash on changemap

Last edited by ConnorMcLeod; 03-05-2007 at 21:20.
ConnorMcLeod is offline
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 03-06-2007 , 08:47   Re: Weapon Model + Sound replacement
Reply With Quote #150

wait a day till school is over
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
Reply



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 22:50.


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