PDA

View Full Version : Targetname for player classes?


{{AoA}}Axeman
08-03-2007, 03:15 AM
I am not a great coder but I have altered the hl2mp player classes and changed all the names so they aren't referred to as rebel/combine (filters also) for my mod I am doing. I want to have the info_player_team_azure and info_player_team_crimson to have Targetname variables so I can seperate/identify them without having to make new player classes (unless I have to).

I assume I would have to define the variable in the client and server h/cpp files, but I am a bit stuck on which files would have precedence and which ones I should add the variable to, or even if I could inherit from a class that has the Targetname variable anyway (baseEntity??).

I know it's a bit of a noob question but is there an easy way to do this?

Marine
08-03-2007, 08:20 AM
What you can do is a simple find/replace for (Case-insensitive), find

COMBINE replace with whatever

find REBEL replace with whatever. Simple :P

{{AoA}}Axeman
08-03-2007, 03:05 PM
I have already changed all the references to combine/rebel names so they are my custom names, but I want to have a target name (keyvalue) in the info_player entity so I can call a group of them one thing and another group something else using the same entity. I also want to try to attach markers to the players so they can be identified without me having to make several different player classes.