Raised This Month: $ Target: $400
 0% 

Request: UpdateClientData


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ts2do
Senior Member
Join Date: Mar 2004
Old 10-02-2004 , 17:45   Request: UpdateClientData
Reply With Quote #1

Id like a DLLFunc_UpdateClientData // void ( const struct edict_s *ent, int sendweapons, struct clientdata_s *cd );
which is like
entindex, <sendweapons>
__________________
ts2do is offline
Send a message via AIM to ts2do
ts2do
Senior Member
Join Date: Mar 2004
Old 10-25-2004 , 15:40  
Reply With Quote #2

#bump^%$
__________________
ts2do is offline
Send a message via AIM to ts2do
BAILOPAN
Join Date: Jan 2004
Old 10-25-2004 , 19:26  
Reply With Quote #3

Why? What would you put in place of the non-standard struct?
__________________
egg
BAILOPAN is offline
DS
SourceMod Developer
Join Date: Sep 2004
Location: WI, USA
Old 10-25-2004 , 19:56  
Reply With Quote #4

Someone must have a use for this, as he does. As for converting that struct though, you could split it up into separate arguments; one for each variable in the struct.

Although, that is a pretty big struct... :-\ So, maybe no, heh.
Code:
typedef struct clientdata_s
{
	vec3_t				origin;
	vec3_t				velocity;

	int					viewmodel;
	vec3_t				punchangle;
	int					flags;
	int					waterlevel;
	int					watertype;
	vec3_t				view_ofs;
	float				 health;

	int					bInDuck;

	int					weapons; // remove?
	
	int					flTimeStepSound;
	int					flDuckTime;
	int					flSwimTime;
	int					waterjumptime;

	float				maxspeed;

	float				fov;
	int				  weaponanim;

	int					m_iId;
	int					ammo_shells;
	int					ammo_nails;
	int					ammo_cells;
	int					ammo_rockets;
	float				m_flNextAttack;
	
	int					tfstate;

	int					pushmsec;

	int					deadflag;

	char				physinfo[ MAX_PHYSINFO_STRING ];

	// For mods
	int					iuser1;
	int					iuser2;
	int					iuser3;
	int					iuser4;
	float				fuser1;
	float				fuser2;
	float				fuser3;
	float				fuser4;
	vec3_t				vuser1;
	vec3_t				vuser2;
	vec3_t				vuser3;
	vec3_t				vuser4;
} clientdata_t;
DS 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 12:44.


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