AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Changing model in esf (https://forums.alliedmods.net/showthread.php?t=64883)

hip_hop_x 12-26-2007 17:00

Changing model in esf
 
1 Attachment(s)
Untill now I tried with all the methods that I know, and with none worked :(
//tested untill now
entity_set_model(id, "models/transform/bebivegeta/bebivegeta.mdl")
engfunc(EngFunc_SetModel, index, "models/transform/bebivegeta/bebivegeta.mdl")
set_pev(id,pev_model,"models/transform/bebivegeta/bebivegeta.mdl")

Plugin attached.
Please, if anyone has a solution post it here.

Problem solved, using the esf model changer module.

M249-M4A1 12-26-2007 23:16

Re: Changing model in esf
 
http://forums.alliedmods.net/showthread.php?t=64883

esf_set_avatar_model(id, const szModel[])?

hip_hop_x 12-27-2007 06:57

Re: Changing model in esf
 
yea but how to use that function if there's no file to include that one :). In esf.inc are others functions than those on the website.
Now I'm using a module, but the model isn't animated right :(.

ConnorMcLeod 12-27-2007 08:45

Re: Changing model in esf
 
2 Attachment(s)
Try this plugin (works for cs1.6).
This plugin makes fake natives that you can use in other plugins.

Just put this with plugins includes :

PHP Code:

#include <setusermodel> 

Then you can use those natives :

set_user_model(player_index, model), where model is only the name fo file with the extansion (newvegeta for $mod/models/player/newvegeta/newvegeta.mdl)

ex : set_user_model(id, "newvegeta")

And to reset the player model :

reset_user_model(id).


This plugin is based on amxmod_compat.amxx.

hip_hop_x 12-27-2007 09:29

Re: Changing model in esf
 
doesn't work with esf

ConnorMcLeod 12-27-2007 09:47

Re: Changing model in esf
 
Did you do all what i wrote ?
Doesn't seem you have DLed the .inc file that is needed to compile your plugin.

Please past result of 'amxx list' command.

hip_hop_x 12-27-2007 10:55

Re: Changing model in esf
 
I've downloaded that, and tried. I'm using now esf model changer module, but the animations of the models aren't right. Anyway, atleast I found a working solution.

M249-M4A1 12-27-2007 11:22

Re: Changing model in esf
 
Yeah I'd say you did, considering you posted in new submissions

hip_hop_x 12-27-2007 11:36

Re: Changing model in esf
 
well if anyone will have a better solution that works, and does the right animation on player model, post it here.

ConnorMcLeod 12-27-2007 11:46

Re: Changing model in esf
 
I'm pretty sure that the plugin i gave you works, i just can't test.
Please post the plugin you test with mine


All times are GMT -4. The time now is 11:12.

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