Been editing the ET SDK 2.60, fixing some bugs here and there as I go along…
I’ve never had to do this, but how would I go about adding hitsounds when the client hits another client. Exactly like the current mods about now, anyone care to share?
G_Damage is function what gives feedback to game where the shoot was at the hitboxes.
At ET SDK,it should be at 1004 line and starts like: void G_Damage( gentity_t *targ, gentity_t *inflictor, gentity_t *attacker, vec3_t dir, vec3_t point, int damage, int dflags, int mod )
Add G_Hitsound(targ,attacker,mod,headShot) before
if ( targ->flags & FL_GODMODE ) {
return;
}
The struct clientPersistant_t is located at g_local.h after ipXPStorage_t struct.
Yes,you need to add it to struct.
And yes,the structs at cg_local/g_local/ui_local are for storing values/data.
[QUOTE=iDan;392850]
ClientUserinfoChanged part, where does the supplied code go?
[quote]
g_client.c
Just add it somewhere,it doesn’t effect the goal of that one.