Raised This Month: $51 Target: $400
 12% 

Players Models 1.3.1 ( 13 nov 2010 )


Post New Thread Reply   
 
Thread Tools Display Modes
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 11-01-2009 , 06:48   Re: Players Models
Reply With Quote #111

LOL when I set to 0, then player floats, something like noclip :]
Setting it to 1 and higher = server crash
__________________

Last edited by xbatista; 11-01-2009 at 06:51.
xbatista is offline
Send a message via Skype™ to xbatista
Old 11-01-2009, 09:44
ConnorMcLeod
This message has been deleted by ConnorMcLeod. Reason: dble post
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-03-2009 , 07:19   Re: Players Models
Reply With Quote #112

Well, default players pev_model are urban.mdl and terror.mdl, precache both of them and store their index, so you can restore them whenever you want.


Updated to v1.2.2
Now the plugin doesn't change modelindex unless you uncomment the define and recompile the plugin.

Updated to v1.3.0
Models bugs due to cs_set_user_team and internal model should be fixed.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
DiMeNos
Junior Member
Join Date: Jun 2009
Location: Rio Grande do Sul, Brasi
Old 11-07-2009 , 18:37   Re: Players Models 1.3.0 ( 3 nov 2009 )
Reply With Quote #113

on my server gave many message "svc_bad"

This has been fixed?
DiMeNos is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-07-2009 , 19:08   Re: Players Models 1.3.0 ( 3 nov 2009 )
Reply With Quote #114

Which version do you run ?
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Old 11-08-2009, 14:25
DiMeNos
This message has been deleted by DiMeNos. Reason: ? \/
DiMeNos
Junior Member
Join Date: Jun 2009
Location: Rio Grande do Sul, Brasi
Old 11-08-2009 , 14:25   Re: Players Models 1.3.0 ( 3 nov 2009 )
Reply With Quote #115

Quote:
Originally Posted by ConnorMcLeod View Post
Which version do you run ?

I used this

REGISTER_PLUGIN ( "Player Model", "2.13c", "commonbullet)
DiMeNos is offline
KWo
AMX Mod X Beta Tester
Join Date: Jul 2004
Location: Poland
Old 11-08-2009 , 14:46   Re: Players Models 1.3.0 ( 3 nov 2009 )
Reply With Quote #116

Then You are using different plugin. Try to use Connor's plugin (from the first post of this topic) - and then complain if it doesn't work. Otherwise You are offtopic.
__________________
The Fullpack of podbot mm V3B22 - 24 apr 2012!!! is available here.
The All-In-One 3.2a package - 02 jun 2013 (AMX X 1.8.2 [with ATAC 3.0.1b , CSDM2.1.3c beta, CM OE 0.6.5, podbot mm V3B22c and mm 1.20) is available here.
The newest Beta V3B23a (rel. 28 august 2018!!!) is available here.
KWo is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-08-2009 , 14:47   Re: Players Models 1.3.0 ( 3 nov 2009 )
Reply With Quote #117

...
Try my plugin, would like to know if those kicks are gone.
Also tell me how many slots your server is.

Hi KWo
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
KWo
AMX Mod X Beta Tester
Join Date: Jul 2004
Location: Poland
Old 11-08-2009 , 17:00   Re: Players Models 1.3.0 ( 3 nov 2009 )
Reply With Quote #118

Hi.
If You want to be sure the kicks are gone, just try this plugin with my bots.
Put there 32 bots on the server and change the model of all of them at once. At each round start they should get the model from Your plugin. I believe You don't know one small thing - the players cannot chnage the model all at once (in one frame). That causes the crash or at least svc_bad. It's CS engine limitation. In the old AMX modelling was done so, that 14 players (or some amount near that value could change the model at once, the rest of players were changing the model with set_task function (implemented in VEXD_UM module or somewhere there).
In chickenmod_oe You can see how this problem is solved here:
Code:
public SetClientKeyValue( id, infobuffer[], key[], value[] )
{
	if ( !is_user_alive( id ) || !chicken[ id ] || !equal( key, "model" ) )
		return FMRES_IGNORED

	if ( !equal( value, chicken_model[ id ] ) )
	{
		switch( id )
		{
			case 1..8: set_task( 0.1, "SetInfoModel", id )
			case 9..16: set_task( 0.2, "SetInfoModel", id )
			case 17..24: set_task( 0.3, "SetInfoModel", id )
			case 25..32: set_task( 0.4, "SetInfoModel", id )
		}
		return FMRES_SUPERCEDE
	}
	return FMRES_SUPERCEDE
}

public SetInfoModel( id )
{
	if ( is_user_connected( id ) )
		set_user_info( id, "model", chicken_model[ id ] )
}

public Event_ResetHud( id )
{
	new team
	if ( id )
	{
		team = get_user_team2( id )
		if ( (is_user_alive( id )) 
			&& (( chicken[ id ] ) || ( g_ChickenAll )
					|| (( team == 1 ) && ( g_ChickenTeamT ))
					|| (( team == 2 ) && ( g_ChickenTeamCT )) 
					|| (( is_user_vip( id )) && ( g_ChickenVIP ))))
		{
			Set_Chicken_Timer( id )
		}
		else if (is_user_alive( id ))
		{
			switch ( id )
			{
				case 1 .. 8: set_task2( 0.1, "Set_Chicken_Name", id )
				case 9 .. 16: set_task2( 0.2, "Set_Chicken_Name", id )
				case 17 .. 24: set_task2( 0.3, "Set_Chicken_Name", id )
				case 25 .. 32: set_task2( 0.4, "Set_Chicken_Name", id )
			}
		}
	}
}
Set_Chicken_Timer( id, reset = 0, real = 0 )
{
	switch ( id )
	{
		case 1 .. 8: set_task2( 0.1, reset ? "Reset_Chicken_Model" : "Set_Chicken_Model", real ? id + REAL_RESET : id )
		case 9 .. 16: set_task2( 0.2, reset ? "Reset_Chicken_Model" : "Set_Chicken_Model", real ? id + REAL_RESET : id )
		case 17 .. 24: set_task2( 0.3, reset ? "Reset_Chicken_Model" : "Set_Chicken_Model", real ? id + REAL_RESET : id )
		case 25 .. 32: set_task2( 0.4, reset ? "Reset_Chicken_Model" : "Set_Chicken_Model", real ? id + REAL_RESET : id )
	}
}

/* SPECIAL TASKS CALLING FOR MODELLING */
public set_task2( Float:time, const function[], taskid )
{
	if ((taskid < 65) && (taskid > 0))
	{
		TASK_START_TIME[taskid] = get_gametime() + time
		format(TASK_FUNC_NAME[taskid], 31, function)
		TASKID_EXEC[taskid] = 1
	}
}

public StartFrame()
{
	static taskid
	static Float: game_time
	static tasknr
	tasknr = 0
	game_time = get_gametime()

	if (!g_cs_running)
		return

	for (taskid = 1; taskid < 65; taskid++)
	{
		if (!TASKID_EXEC[taskid])
			continue
		if (TASK_START_TIME[taskid] > game_time)
			continue
		if (TASK_FUNC_NAME[taskid][0] == '^0')
			continue

		TASKID_EXEC[taskid] = 0
		TASK_START_TIME[taskid] = 0.0

		if (callfunc_begin(TASK_FUNC_NAME[ taskid ]) == 1)
		{
			callfunc_push_int(taskid)
			callfunc_end()
		}

		tasknr++
		if (tasknr > 7)
			break
	}
}
As You can see the function set_task / set_task2 used in code above prevents to change at once models of all players, which prevents crash / svc_bad.
__________________
The Fullpack of podbot mm V3B22 - 24 apr 2012!!! is available here.
The All-In-One 3.2a package - 02 jun 2013 (AMX X 1.8.2 [with ATAC 3.0.1b , CSDM2.1.3c beta, CM OE 0.6.5, podbot mm V3B22c and mm 1.20) is available here.
The newest Beta V3B23a (rel. 28 august 2018!!!) is available here.

Last edited by KWo; 11-08-2009 at 17:03.
KWo is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-08-2009 , 17:06   Re: Players Models 1.3.0 ( 3 nov 2009 )
Reply With Quote #119

The plugin shouldn't change all model at the same time, but if kicks still happen, i gonna make a debug version to log gametime at witch models are changed.
I already saw vexdum code, models were change with random float delay.
Thanks for explaination though.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
DiMeNos
Junior Member
Join Date: Jun 2009
Location: Rio Grande do Sul, Brasi
Old 11-08-2009 , 21:36   Re: Players Models 1.3.0 ( 3 nov 2009 )
Reply With Quote #120

Quote:
Originally Posted by ConnorMcLeod View Post
...
Try my plugin, would like to know if those kicks are gone.
Also tell me how many slots your server is.

Hi KWo


Well I tested your plugin in a server of 13 slots and had no problems , already on another server of 24 slots had problems (svc_bad)




www.lospipoko.com
DiMeNos 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:46.


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