The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Inverted Controls
Neelke Offline
Senior Member

Posts: 668
Threads: 82
Joined: Apr 2013
Reputation: 26
#1
Inverted Controls

So, I've wanted to create a script where the player gets his controls inverted. I tried doing it like this:

void CollideReverseControls(string &in asParent, string &in asChild, int alState)
{
    SetPlayerMoveSpeedMul(-1);
    SetPlayerRunSpeedMul(-1);
    SetPlayerLookSpeedMul(-1);
    
    FadePlayerFOVMulTo(1.75f, 5.0f);
    PlayGuiSound("27_thump", 1.0f);
    
    AddTimer(asParent, 0.5f, "TimerReverseControls");
}

void TimerReverseControls(string &in asTimer)
{
    FadePlayerFOVMulTo(1.0f, 2.0f);
}

This works for the look speed, but not the move and run speed. Instead it locks itself to just down and left. It refuses to go up or right no matter what I press. Could there be a way to do inverted controls another way?

Derp.
10-06-2014, 09:55 PM
Find


Messages In This Thread
Inverted Controls - by Neelke - 10-06-2014, 09:55 PM
RE: Inverted Controls - by Viper85626 - 10-06-2014, 10:31 PM
RE: Inverted Controls - by MrBehemoth - 10-07-2014, 01:17 AM
RE: Inverted Controls - by Neelke - 10-07-2014, 07:54 AM
RE: Inverted Controls - by Neelke - 10-07-2014, 07:51 PM
RE: Inverted Controls - by Mudbill - 10-07-2014, 10:44 PM
RE: Inverted Controls - by MrBehemoth - 10-08-2014, 07:33 AM
RE: Inverted Controls - by Neelke - 10-08-2014, 07:39 AM
RE: Inverted Controls - by Viper85626 - 10-08-2014, 03:44 PM
RE: Inverted Controls - by Neelke - 10-08-2014, 03:55 PM
RE: Inverted Controls - by FlawlessHappiness - 10-08-2014, 04:31 PM
RE: Inverted Controls - by MrBehemoth - 10-08-2014, 06:53 PM
RE: Inverted Controls - by Neelke - 10-08-2014, 09:12 PM



Users browsing this thread: 2 Guest(s)