mini mod: gibbable


(nUllSkillZ) #1

Hi,

a little client side mini mod:


There are icons above players that can be revived or can be gibbed.
Depends on the point of view :smiley: .
Medics of the same team still the revive icon.

Only problem at the moment:
i don’t want the spectators to see the icons.
But can’t find the ā€œbugā€ :frowning: .


(kamikazee) #2

What was the code again?


(nUllSkillZ) #3

It’s tested on an unpure server with et-pub client installed.
So this might be the problem
Haven’t tested it on a local server.
It’s in cgame/cg_players.c ~line 1310:


	team = cgs.clientinfo[ cent->currentState.clientNum ].team;

	// DHM - Nerve :: If this client is a medic, draw a 'revive' icon over
	//					dead players that are not in limbo yet.
	if( (cent->currentState.eFlags & EF_DEAD)
		&& cent->currentState.number == cent->currentState.clientNum
		/* && cg.snap->ps.stats[ STAT_PLAYER_CLASS ] == PC_MEDIC */			// nUllSkillZ COMMENT ADDED
		&& cg.snap->ps.stats[ STAT_HEALTH ] > 0
		/* && cg.snap->ps.persistant[PERS_TEAM] == team */ ) {				// nUllSkillZ COMMENT ADDED
		// ***** nUllSkillZ START *****
		if ( team == TEAM_AXIS || team == TEAM_ALLIES ) {
			if ( cg.snap->ps.persistant[PERS_TEAM] == team ) {
				if ( cg.snap->ps.stats[ STAT_PLAYER_CLASS ] == PC_MEDIC ) {
					CG_PlayerFloatSprite( cent, cgs.media.medicReviveShader, 8 );
				}
			} else {
				CG_PlayerFloatSprite( cent, cgs.media.gibbableShader, 8 );
			}
		}
		// CG_PlayerFloatSprite( cent, cgs.media.medicReviveShader, 8 );	// nUllSkillZ ORIGINAL
		// ***** nUllSkillZ END *****
		return;
	}

Another idea.
I’m thinking about to show teammates a blue revive icon.


(kamikazee) #4

Ah! I think I have found it…

The ā€œteamā€ variable is the team of the player laying on the ground, so

if( team == TEAM_AXIS || team == TEAM_ALLIES ) {

allways evalutes true. (The player waiting for a revive can’t be a spectator, obviously)

Just change that check to

if( cg.snap->ps.persistant[PERS_TEAM] == TEAM_AXIS 
    || cg.snap->ps.persistant[PERS_TEAM] == TEAM_ALLIES ) {

EDIT: As for showing teammates a blue icon:
Modify the code like this:

         if ( cg.snap->ps.persistant[PERS_TEAM] == team ) {
            if ( cg.snap->ps.stats[ STAT_PLAYER_CLASS ] == PC_MEDIC ) {
               CG_PlayerFloatSprite( cent, cgs.media.medicReviveShader, 8 );
            } else {
               CG_PlayerFloatSprite( cent, cgs.media.needReviveShader, 8 );
            }
         } else {
            CG_PlayerFloatSprite( cent, cgs.media.gibbableShader, 8 );
         }

(Given that the blue icon variable is called ā€œneedReviveShaderā€.


(YourFather_CZ) #5

It looks very nice…
Will it work under ETPro?


(kamikazee) #6

I guess not, unless bani would add it.


(Calzonzin) #7

nullskillz: Care to make a contribution to etpub? :slight_smile: I’ll add it if it’s ok with you…


(nUllSkillZ) #8

It’s OK for me.
At least it’s only my idea.
Code is from kamikazee.

If you’re intrested I’ve also got a red colored skull and bones that could be used to show medics poisened players (no code only the texture in this case).

http://www.nullskillz.de/et/mods/cpr/poison_var.tga


(=SC=Beef) #9

would be neat, then you can add the powerup visulisations with possible CVARS for each visulisation?


(nUllSkillZ) #10

Thnx to kamikazee it’s working.
Only thing to do now is to make the blue syringe texture (have to make a basic program to work in Linux first).
At the moment the red syringe (medicrevive) is taken as a placeholder.

It isn’t that bad.
Even on a server with 40 players I only see these icons a few time.
So no visual spamming.

Edit:

And one with the blue syringe:

Not sure at the moment.
A little bit irritating on crowded server.
May be I have to look for some differently shaped icon.


(Shanks) #11

You’ve updated the compass icon too, right?


(nUllSkillZ) #12

Nope.
It’s an unpure server.
And the compass is included in a graphical mod that is used on another server.


(Shanks) #13

…
I meant the revive icon that medics can see.


(nUllSkillZ) #14

No, the medics see the normal red syringe medicrevive icon.

Edit:

Oh, you mean the red skull and bones icon I’ve posted?
That’s a suggestion for mods where players can be poisened.
So the medics can see which player is poisened.


(Calzonzin) #15

Thanks a lot nullskillz!


(carnage) #16

a pretty nice mod with a nice idea to get more information across quickly. if any surgestions then perhaps a differnt colour for teamates who are wounded to enemy players. perhaps a the red syringe would be better since red markers in ET generaly means a teamate who needs medical attention


(nUllSkillZ) #17

Red is the signal color for medics to act.
I had the red syringe as placeholder.
And wanted to revive even if I was a non medic.
Blue is the color for information.
I played some test rounds today.
And it isn’t that bad as I first thought.


(Meyerinchains) #18

We have made a poisoned icon for the No Quarter mod using the skull and cross bones graphic you sent me nullskillz. Similar to yours, but with a green background. :slight_smile:


(nUllSkillZ) #19

I don’t think it’s a good idea to make it green.
Green is the color of the objective.

I’ve mentioned the following in another thread:

[ul]
[li]green = objective
[/li][li]yellow/gold = FOP
[/li][li]red = medic
[/li][li]blue = general information (not class related)
[/li][/ul]
It’s not my invention it’s what the game tells us.
Not that much colors left.
Purple (mixture of red and blue) and orange.


(carnage) #20

red tells that a player needs a medic for whatever reason and its not only medics that can see the ā€œneed a medicā€ sign. red means a player needs medical help and thats why i surgest red for wounded teamates, but would need a differnt symbol to stop you wanting to revive them when ur not a medic

i think you would benefit from having two diferent colours for friendly and enemy wounded. say you ran round a corner right intoa big firefight with wounded player easily. you can quickly make the desion on what team is winning because you see a lot of one colour on the wounded players telling you thats its mosts team X that has lost a lot of players where you only see one wounded marker for the other team

also you might develop some kind of reaction to start gibbing enemys and at a distance if you see a blue icon you start mistakably gibbing teamates without thinking