deus-ex-randomizer icon indicating copy to clipboard operation
deus-ex-randomizer copied to clipboard

overwrite the player class for GMDX, Revision, and HX

Open Die4Ever opened this issue 2 years ago • 2 comments

I think we just need to subclass from JCDentonMale, and then edit the User.ini config file, in the [DefaultPlayer] section, change Class from Class=DeusEx.JCDentonMale to something like Class=GMDXRandomizer.JCDentonRando

this should allow us to do A LOT more, like DXRBacktracking, tons of balance changes, more crowd control stuff, telemetry in ClientMessage, DXRLoadouts modes like Stick With the Prod Plus, autosave-only mode, and do HasAnim checks for when we swap player models in DXRFashion

not entirely sure if this will work with HX

How to handle LDD? Maybe I just need to duplicate the LDD code into my own subclass?

Die4Ever avatar Nov 27 '21 09:11 Die4Ever

HX needs this to be able to show randomized passwords properly, ProcessInformationDevicesWindowTag

Die4Ever avatar Feb 01 '22 02:02 Die4Ever

in the GameInfo, can override here

event playerpawn Login
(
	string Portal,
	string Options,
	out string Error,
	class<playerpawn> SpawnClass
)
{
	local DeusExPlayer player;
	local NavigationPoint StartSpot;
	local byte InTeam;
	local DumpLocation dump;

   //DEUS_EX AMSD In non multiplayer games, force JCDenton.
   if (!ApproveClass(SpawnClass))
   {
      SpawnClass=class'JCDentonMale';
   }

need to make the Login function change out the spawn class, and make ApproveClass return true

Die4Ever avatar Mar 04 '22 05:03 Die4Ever