SHARE
TWEET

Untitled

a guest Oct 26th, 2016 42 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Im trying to extend the "AAPlayerControllerClass"
  2.  
  3. So... the Map files are set to load the gametype "AAGameVeteran" which is extended a few times from "AAGameInfo".
  4.  
  5. In "AAGameInfo" we have PlayerControllerClass=class'AAPlayerController' defined in the default properties.
  6.  
  7. If i change that with a mutator in PreBeginPlay() it changes but then reverts to its orginal value.
  8.  
  9. Function AAPGMODV11.AAPGMOD:PreBeginPlay:0175
  10. [0014.95] ScriptLog:  PlayerController: AAPlayerController_mod
  11. [0014.95] ScriptLog: #### LOADING MUTATOR AAPGMOD ####
  12.  
  13. Then when players are spawn they still have the original "AAPlayerController" and a check of the PlayerControllerClass value is back to "AAPlayerController" after it changed in PreBeginPlay().
  14.  
  15. I think its because in function AuthenticationLogin in "AAGameInfo" it references default.PlayerControllerClass and not just "PlayerControllerClass" like how the engine "GameInfo" references "return Spawn(PlayerControllerClass,,, SpawnLocation, SpawnRotation)"
  16.  
  17.  
  18. This is where im stuck at the moment. Im wondering if "default.PlayerControllerClass" calls the default default property of it and not the value thats been changed afterwards.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top