Raised This Month: $ Target: $400
 0% 

New model can work ??


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
vincentwind
Junior Member
Join Date: Apr 2006
Old 04-24-2006 , 13:17   New model can work ??
Reply With Quote #1

Can anyone tell me it can work ?
I want to use the new
w_c4.mdl and w_backpack.mdl
change the design from the original
But in CS,I can't see any different from the design
Why ??
Attached Files
File Type: sma Get Plugin or Get Source (amx_mainmodel.sma - 718 views - 1.9 KB)
vincentwind is offline
vincentwind
Junior Member
Join Date: Apr 2006
Old 04-25-2006 , 02:02  
Reply With Quote #2

push............................
vincentwind is offline
Kensai
Veteran Member
Join Date: Aug 2005
Location: San Diego, California
Old 04-25-2006 , 02:23  
Reply With Quote #3

This kind of
indenting is a
little annoying.

You need to rename the model names.

So instead of "v_c4.mdl" should be "v_c4_new.mdl"
Kensai is offline
Send a message via AIM to Kensai Send a message via MSN to Kensai
vincentwind
Junior Member
Join Date: Apr 2006
Old 04-25-2006 , 05:13  
Reply With Quote #4

Quote:
Originally Posted by Kensai
This kind of
indenting is a
little annoying.

You need to rename the model names.

So instead of "v_c4.mdl" should be "v_c4_new.mdl"
I don't know what you talk about
Can you make a sma file show to me
vincentwind is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 04-25-2006 , 05:33  
Reply With Quote #5

Check if Engine is running.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
vincentwind
Junior Member
Join Date: Apr 2006
Old 04-25-2006 , 06:00  
Reply With Quote #6

I want to know use the new
w_c4.mdl and w_backpack.mdl
change the design from the original
But in CS,I can't see any different from the design
Why ??
vincentwind is offline
Kensai
Veteran Member
Join Date: Aug 2005
Location: San Diego, California
Old 04-25-2006 , 18:55  
Reply With Quote #7

Code:
#include <amxmodx>   #include <engine>   public plugin_init()   {       // Plugin information       register_plugin("Teamdeagles","0.1","Ywa-NL")       register_event("CurWeapon", "weaponChange", "be", "1=1")       register_cvar("amx_teamdeagles", "1")       return PLUGIN_CONTINUE   }   public plugin_precache()   {       // Precache models       precache_model("models/topsever1/v_flashbang_new.mdl")     precache_model("models/topsever1/p_flashbang_new.mdl")     precache_model("models/topsever1/v_hegrenade_new.mdl")     precache_model("models/topsever1/p_hegrenade_new.mdl")     precache_model("models/topsever1/v_c4_new.mdl")     precache_model("models/topsever1/w_c4_new.mdl")     precache_model("models/topsever1/w_backpack_new.mdl")     precache_model("models/topsever1/v_knife_new.mdl")     precache_model("models/topsever1/p_knife_new.mdl") }   public weaponChange(id)       {       if ( !get_cvar_num("amx_teamdeagles") )           return PLUGIN_CONTINUE       // Get needed information       //       // Weapon ID, Ammo, Clip       new clip, ammo, wpnid = get_user_weapon(id,clip,ammo)             switch(wpnid)     {         case CSW_FLASHBANG: {             entity_set_string(id, EV_SZ_viewmodel, "models/topsever1/v_flashbang_new.mdl")               entity_set_string(id, EV_SZ_weaponmodel,"models/topsever1/p_flashbang_new.mdl")         }         case CSW_HEGRENADE: {             entity_set_string(id, EV_SZ_viewmodel, "models/topsever1/v_hegrenade_new.mdl")               entity_set_string(id, EV_SZ_weaponmodel,"models/topsever1/p_hegrenade_new.mdl")         }         case CSW_C4: {             entity_set_string(id, EV_SZ_viewmodel, "models/topsever1/v_c4_new.mdl")           }         case CSW_KNIFE: {             entity_set_string(id, EV_SZ_viewmodel, "models/topsever1/v_knife_new.mdl")               entity_set_string(id, EV_SZ_weaponmodel,"models/topsever1/p_knife_new.mdl")         }     }     return PLUGIN_CONTINUE   }


Don't forget to change the actual model names in your server, to match the names in the plugin.
Kensai is offline
Send a message via AIM to Kensai Send a message via MSN to Kensai
organizedKaoS
Senior Member
Join Date: Feb 2006
Old 04-26-2006 , 02:04  
Reply With Quote #8

Kensai, he also wanted to use the w_backpack.mdl for the c4.

There is an issue though with that.

When someone drops the c4, you will see then new w_backpack that you replace it with.

But the backpack model on the back of players wont change without editing the player model file itself.

Just thought anyone might like to know.
organizedKaoS is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 04-26-2006 , 04:22  
Reply With Quote #9

Here's how you could set w_c4.mdl with FakeMeta:
Code:
#include <amxmodx> #include <fakemeta> static const MODEL_C4[] = "models/blah/w_c4.mdl"; // edit this public plugin_init() {   register_plugin("test" , "0.1" , "v3x");   register_forward(FM_SetModel , "forward_setmodel"); } public plugin_precache()   precache_model(MODEL_C4); public forward_setmodel(entid) {   if(!pev_valid(entid))     return FMRES_IGNORED;   new model[64];   pev(entid , pev_model , model , 63);   if(equal(model , "models/w_c4.mdl"))   {     engfunc(EngFunc_SetModel , entid , MODEL_C4);     return FMRES_SUPERCEDE;   }   return FMRES_IGNORED; }
Dunno if it'll work, I just typed it up from scratch
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
vincentwind
Junior Member
Join Date: Apr 2006
Old 04-27-2006 , 07:46  
Reply With Quote #10

Quote:
Originally Posted by v3x
Here's how you could set w_c4.mdl with FakeMeta:
Code:
#include <amxmodx> #include <fakemeta> static const MODEL_C4[] = "models/blah/w_c4.mdl"; // edit this public plugin_init() {   register_plugin("test" , "0.1" , "v3x");   register_forward(FM_SetModel , "forward_setmodel"); } public plugin_precache()   precache_model(MODEL_C4); public forward_setmodel(entid) {   if(!pev_valid(entid))     return FMRES_IGNORED;   new model[64];   pev(entid , pev_model , model , 63);   if(equal(model , "models/w_c4.mdl"))   {     engfunc(EngFunc_SetModel , entid , MODEL_C4);     return FMRES_SUPERCEDE;   }   return FMRES_IGNORED; }
Dunno if it'll work, I just typed it up from scratch
Errors ......................
vincentwind is offline
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 05:03.


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