Guest User

Untitled

a guest
Oct 26th, 2016
51
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

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×