Q:The levels!Where??


(Indloon) #1

Where I can find skill and level ups code at ET SDK?


(ischbinz) #2

i m not sure if i understand what you mean :S
you want to replace the icon?
or do you want to replace the function?


(Indloon) #3

[QUOTE=ischbinz;385134]i m not sure if i understand what you mean :S
you want to replace the icon?
or do you want to replace the function?[/QUOTE]

I would like find the ranking code, which is located somewhere in ET SDK.


(ischbinz) #4

hihi, ok -
now its clear - i cannot help you - i m not a coder :slight_smile:


(Indloon) #5

Okay :wink:
I founded something useful at g_client.c


case WP_FG42:
			if( client->sess.skill[SK_MILITARY_INTELLIGENCE_AND_SCOPED_WEAPONS] >= 1 || client->sess.skill[SK_LIGHT_WEAPONS] >= 1 )
				client->ps.ammo[BG_FindAmmoForWeapon(weaponNum)] += GetAmmoTableData(weaponNum)->maxclip;
			break;

Well this is good,now I can add weapon upgrades for that:)

But still I can’t find the whole code of level system:<


(stealth6) #6

I have little knowledge of C, but open the SDK in Microsoft Visual C++
Select rank
right click and select all references
Look for what you want.

I see code in g_stats.c to increase rank.
and some stuff in g_session.c

Same thing for skills, select skill[skill] (for instance) right click and find all references.
etc etc. (You can also use go to definition or declaration)

using this I quickly find G_AddSkillPoints in g_stats.c which looks interesting.
I was trying to find out exactly where it says when skill > 140 then rank up, but that 140 is a variable that it gets from the server.cfg so somewhere there is some code for that too.

Anyway Good Luck! :tongue:


(Smurfer) #7

Search for “[SK_” and don’t have “match word” filter on.