AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How Do You Replace Models (https://forums.alliedmods.net/showthread.php?t=57997)

Passion's Killing Floor 07-16-2007 17:33

How Do You Replace Models
 
I want People to be able use my custom models so
a Script Or Something Would Be Nice

Vet 07-17-2007 00:28

Re: How Do You Replace Models
 
What kind of models are you talking about? Player models, weapon models, map models or what?

Greenberet 07-17-2007 01:33

Re: How Do You Replace Models
 
and which mod?

Passion's Killing Floor 07-17-2007 10:17

Re: How Do You Replace Models
 
Weapons On Counterstrike 1.6

Rolnaaba 07-17-2007 13:05

Re: How Do You Replace Models
 
Code:
set_pev(player, pev_weaponmodel, engfunc(EngFunc_AllocString, "MyModel.mdl"));

Passion's Killing Floor 07-17-2007 15:17

Re: How Do You Replace Models
 
does that precache it?

P34nut 07-17-2007 15:24

Re: How Do You Replace Models
 
no

Rolnaaba 07-17-2007 15:50

Re: How Do You Replace Models
 
Code:
public plugin_precache() {     precache_model("models/folder/MyModel.mdl"); }   //...   set_model_function(id) {     set_pev(id, pev_viewmodel, engfunc(EngFunc_AllocString, "models/folder/MyModel.mdl")); }

OR

Code:
public plugin_precache() {     engfunc(EngFunc_PrecacheModel, "models/folder/MyModel.mdl"); } //... set_model_function(id) {     set_pev(id, pev_viewmodel, engfunc(EngFunc_AllocString, "models/folder/MyModel.mdl")); }

where "folder" is optional...

Passion's Killing Floor 07-18-2007 15:02

Re: How Do You Replace Models
 
it didnt work
/home/groups/amxmodx/tmp3/phpSVeuCq.sma(1) : error 001: expected token: ")", but found "("
/home/groups/amxmodx/tmp3/phpSVeuCq.sma(1) : error 010: invalid function or declaration
/home/groups/amxmodx/tmp3/phpSVeuCq.sma(3) : error 017: undefined symbol "precache_model"
/home/groups/amxmodx/tmp3/phpSVeuCq.sma(11) : warning 203: symbol is never used: "set_model_function"
/home/groups/amxmodx/tmp3/phpSVeuCq.sma(11) : warning 203: symbol is never used: "set_pev"

Passion's Killing Floor 07-18-2007 15:17

Re: How Do You Replace Models
 
Can You JUst Completely Do It I want My Model models\v_p90.mdl
too run on my server Plz Write the script


All times are GMT -4. The time now is 21:27.

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