Weapon choosing


(Cheeezy) #1

Hi i have a problem with my weapons menu. the shape of the old weapon still remains and is showing above the new weapons. how would i go about fixing this?


(Cheeezy) #2

nevermind i fixed it
sorry for the topic spam

but does anyone know how to change the name?
or is that in the dll files not in the pk3s?


(Jaquboss) #3

it is in cg_player.c …


([H4D3S]) #4

cg_players.c line 2741 :wink:


weaponType_t weaponTypes[] = {
	{ WP_MP40,					"MP 40"			},
	{ WP_THOMPSON,				"THOMPSON"		},
	{ WP_STEN,					"STEN",			},
	{ WP_PANZERFAUST,			"PANZERFAUST",	},
	{ WP_FLAMETHROWER,			"FLAMETHROWER",	},
	{ WP_KAR98,					"K43", 			},
	{ WP_CARBINE,				"M1 GARAND", 	},
	{ WP_FG42,					"FG42",			},
	{ WP_GARAND,				"M1 GARAND",	},
	{ WP_MOBILE_MG42,			"MOBILE MG42",	},
	{ WP_K43,					"K43",			},
	{ WP_MORTAR,				"MORTAR",		},
	{ WP_COLT,					"COLT",			},
	{ WP_LUGER,					"LUGER",		},
	{ WP_AKIMBO_COLT,			"AKIMBO COLTS",	},
	{ WP_AKIMBO_LUGER,			"AKIMBO LUGERS",},
	{ WP_SILENCED_COLT,			"COLT",			},
	{ WP_SILENCER,				"LUGER",		},
	{ WP_AKIMBO_SILENCEDCOLT,	"AKIMBO COLTS",	},
	{ WP_AKIMBO_SILENCEDLUGER,	"AKIMBO LUGERS",},
	{ WP_NONE,					NULL,			},
	{ -1,						NULL,			},
};



(fsimul) #5

Hi Cheeezy

I’m actually working on a mod, especially on the menu.

Can you explain how did you resolv your problem? It would be really helpfull for me.


(P4nth3r) #6

I can do that for you.
The images use an Alpha Channel (you can edit/see those in Adobe photo shop.
It’s not so hard. ( you can find plenty of tuts oon thw web for that) :wink:

Good luck.

Greetz Panther aka Way2Evil


(hightension) #7

Where can i find that cg_players.c? And can i change it into my skin pack, so it could have weapons renamed?

Chhers


(P4nth3r) #8

cg_player.c is in the source code and that can’t be used in a skinpack you have to make a mod if you want to change the names.

Greetz Panther aka Way2Evil