Raised This Month: $32 Target: $400
 8% 

[L4D2]SetEntityModel doesn't work


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
King_OXO
Senior Member
Join Date: Dec 2020
Location: Brazil
Old 07-06-2021 , 15:21   [L4D2]SetEntityModel doesn't work
Reply With Quote #1

Can someone help me? I'm having model problems on l4d2, I'm trying to create a plugin when a surviving player types a certain command he changes his original model to another custom model, this custom model is from Alice https://www.gamemaps.com/details/3281 , but the model doesn't appear and this error appears in the console

Erros


Scripting

Last edited by King_OXO; 07-06-2021 at 18:02.
King_OXO is offline
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Old 07-06-2021 , 21:14   Re: [L4D2]SetEntityModel doesn't work
Reply With Quote #2

This happens when the model in use was altered or modified manually (i.e hex-edited) instead of recompiling it to use a new animation or become a standalone survivor like Lux's Ada Wong, etc etc.

Last edited by cravenge; 07-06-2021 at 21:16.
cravenge is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 07-15-2021 , 06:52   Re: [L4D2]SetEntityModel doesn't work
Reply With Quote #3

Quote:
Originally Posted by King_OXO View Post
Code:
AddFileToDownloadsTable("models/custom_skink/alice/survivor_producer.mdl");

SetEntityModel(client, "models/custom_skin/alice/survivor_producer.mdl");
Why paths are different?

You can run list_files.cmd bat-file from topic: [TUT] How to make model to be compact
to batch auto-prepare DownloadTables code without mistakes.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

Last edited by Dragokas; 07-15-2021 at 06:52.
Dragokas 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 00:27.


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