RuneStorm
http://www.runestorm.com/forums/

Modding -> Any Idea how to take control of the camera?
http://www.runestorm.com/forums/viewtopic.php?f=109&t=77860
Page 1 of 1

Author:  hide_in_light [ Tue Jul 30, 2013 4:58 pm ]
Post subject:  Modding -> Any Idea how to take control of the camera?

I want to extend the RCPlayerCamera class like so:

class ExPlayerCamera extends RCPlayerCamera;

In order to remove the limitation of the CombatChaseCam

The problem however is after extending the class like above, how do I use it in game?

Author:  hide_in_light [ Wed Jul 31, 2013 2:43 am ]
Post subject:  Re: Modding -> Any Idea how to take control of the camera?

Just re-discovered WinGrep
http://www.wingrep.com/

You can search trough dozen of text documents for specific words. RCPlayerCamera is assigned by the RCPlayerController class.

Luckily I have messed around with that class before:
Code:
// ==========================================================================================
// ExampleMutator:
//
// A basic example of a mutator class file.
// ==========================================================================================
class ExampleMutator extends RCMutator
   config(ExampleMod);

var() config float         MagicValue;

function InitMutator(string Options, out string ErrorMessage)
{
   Super.InitMutator(Options, ErrorMessage);
}

Simulated function PreBeginPlay()
{
   Super.PreBeginPlay();
}


simulated function PostBeginPlay()
{
   local RCGame Game;
   Super.PostBeginPlay();
      Game = RCGame( WorldInfo.Game );
   if ( Game != None )
   {
      Game.PlayerControllerClass=Class'ExampleMod.ExPlayerController';
   }

}

defaultproperties
{
}


It'll do for now.

Author:  Black Eagle [ Wed Jul 31, 2013 4:08 am ]
Post subject:  Re: Modding -> Any Idea how to take control of the camera?

Hah, you found it first.

Have fun. ;)

Author:  gonsi [ Tue Aug 20, 2013 11:24 am ]
Post subject:  Re: Modding -> Any Idea how to take control of the camera?

Any chance you could make camera mod that will allow aiming with mouse?

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/