AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Bugged models. (https://forums.alliedmods.net/showthread.php?t=126698)

kaspet 05-12-2010 12:26

Bugged models.
 
Hello. I have plugin Zombie swarm, ant there is alot off models.
And somehow CT wearing T models, and sometimes T wearing CT models for change delay.

How make instant model change ? without delay..

new currentmodel[32];
fm_get_user_model(id, currentmodel, sizeof currentmodel - 1);

if(!equal(currentmodel, player_model[id]))
{
set_task(0.1 + g_counter, "Task_Model", id + TASKID_MODEL)
g_counter += TASK_DELAY;
}

Sorry for bad english.

Exolent[jNr] 05-12-2010 16:15

Re: Bugged models.
 
The purpose of that is to delay model setting.
Therefore, it isn't "bugged".

The delay between setting multiple player models at once is used to help prevent the SVC_BAD error.

Arkshine 05-13-2010 05:38

Re: Bugged models.
 
This method sucks, see the method provided in PlayerModel ( connor) which is the method used by CS and should be the only one to use.


All times are GMT -4. The time now is 03:38.

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