ETpub integer values


(TNR360) #1

I just started working with etpub, so um question…
where would I change integer values :?

thanks

coding newb


(jaybird) #2

The question is so vague that it doesn’t make sense. Please elaborate.


(TNR360) #3

hmm sorry

Well I was going to chane some weapon damage values and others and instead return it said

etmain example:


case WP_THOMPSON: 
			return XX;

etpub example:

G_GetWeaponDamage ( int weapon )
{
	int rval;
	switch ( weapon )
	{
		default:
			rval = 1;
			break;

case WP_THOMPSON:
			rval = g_dmgSMG.integer;


Sorry was in a hurry


(kamikazee) #4

In this case, etpub grabs the damage data from CVars. If you don’t know how to work with Cvars, read somewhat more about the topic. I once did at Code 3 Arena. (Yes, it’s for Q3 but W:ET is derived from it anyway.)