Need some help.


([RW]Tiger) #1

Well, i am making a mod, with the most interessting ideas (which i think there are) and mine of course.

But i am a noob in coding, and i would like to have some help or someone who could help me, because the simple modifications, like add more mine, more amo etc… i can do, but adding new lines codes is very difficult, all i would like is some help and someone who could write these.

Not a full time help, but that will be really great :slight_smile:

PM me
Thanks.

Regards.


([RW]Tiger) #2

So, have some questions, i want to modify the win XP when we give amo, medic pack, build and kill. Someone can tell me where i can find this please?

Regards.


(bacon) #3

Search for G_AddSkillPoints() in the qagame code.


([RW]Tiger) #4

Thanks for help bacon.

By exemple, i wished it was more simple to modify, because i find 7 files with this expression, but by exemple here :

				G_AddSkillPoints( ent, SK_FIRST_AID, 4.f );
				G_DebugAddSkillPoints( ent, SK_FIRST_AID, 4.f, "reviving a player" );
			}

There no XP ponts that is give, i mean, it is not simple as i think, like this expression but here is 4 f, is 4 f means 4 in XP?

Or,

if (level.time - ent->client->ps.classWeaponTime > level.lieutenantChargeTime[ent->client->sess.sessionTeam-1])
	ent->client->ps.classWeaponTime = level.time - level.lieutenantChargeTime[ent->client->sess.sessionTeam-1];

if( ent->client->sess.skill[SK_SIGNALS] >= 1 ) {
	ent->client->ps.classWeaponTime += level.lieutenantChargeTime[ent->client->sess.sessionTeam-1]*0.15;
} else {
	ent->client->ps.classWeaponTime += level.lieutenantChargeTime[ent->client->sess.sessionTeam-1]*0.25;
}

item = BG_FindItem( ent->client->sess.skill[SK_SIGNALS] >= 1 ? "Mega Ammo Pack" : "Ammo Pack" );	
VectorCopy( ent->client->ps.viewangles, angles );

Is "->sess.skill[SK_SIGNALS] >= 1 " means give Mega or ammo pack give 1 XP ?


(bacon) #5

4.f means 4XP.
sess.skill[SK_SIGNALS] >= 1 means if the player’s signals is level1 or higher.


([RW]Tiger) #6

Many thanks.

bacon, do you think it is possible to limit the number of class in ET?

By exemple, per maps 1 field, one cover, one medic, 2 eng and unlumit soldier?

I think, with this way, each classes from ET will become important because, in a map a field ops will have more to do.


(Demolama) #7

yes Ive done it


([RW]Tiger) #8

Another question, how to make possible that the cover ops could take all weapons?