deus-ex-randomizer
deus-ex-randomizer copied to clipboard
overwrite the player class for GMDX, Revision, and HX
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?
HX needs this to be able to show randomized passwords properly, ProcessInformationDevicesWindowTag
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