May 23, 2012, 03:31:48 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Please report any bugs or issues that you might be encountering with the Beta in the Support System so that we can better keep track of any oustanding issues that may come up.

GameCore Support System
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Strafe Only???  (Read 520 times)
Architex
Full Member
***
Posts: 113


View Profile
« on: March 27, 2010, 03:50:06 PM »

Hello all, I dont have much time, so I'm going to try and post this quickly.  First off, bit of a disclaimer here, I dont know jack about scripting...Eh a little bit here and there.  I'm trying to use the default character to not move forward and backward, only left to right ( I really really thought I could do this myself, just take out the action mapping keys in the config file, but boy was I wrong...I think anyways. )  I'm trying to make a simply arcade shooter ( we used to have a template for that, but it looks like it was taken out ).  Any thoughts? 
Logged
Architex
Full Member
***
Posts: 113


View Profile
« Reply #1 on: March 27, 2010, 10:10:32 PM »

Alright, now I need to get the player to shoot up.  I got the strafing down, after hours and hours of tinkering.  The player only shoots in front of him. 
Logged
Architex
Full Member
***
Posts: 113


View Profile
« Reply #2 on: March 27, 2010, 11:00:39 PM »

Dang it, this seems sooo easy to fix yet I cant figure it out.  I feel like a dumbass. 
Logged
BigDaz
Sr. Member
****
Posts: 345


HardCore


View Profile
« Reply #3 on: March 28, 2010, 07:07:10 AM »

What happens when you remove the forward and back keymappings?
Logged
pixel_legolas
Hero Member
*****
Posts: 786


View Profile
« Reply #4 on: March 28, 2010, 08:31:09 AM »

In character.gsl you have this section:

Quote
if (event == "Input")
   {
      if (params.stringValue == "Forward")
      {
         forwardPressed = params.floatValue;
         return true;
      }
      if (params.stringValue == "Backward")
      {
         backwardPressed = params.floatValue;
         return true;
      }
      if (params.stringValue == "Left")
      {
         leftPressed = params.floatValue;
         return true;
      }
      if (params.stringValue == "Right")
      {
         rightPressed = params.floatValue;
         return true;
      }
      if (params.stringValue == "Run")
      {
         runPressed = params.floatValue;
         return true;
      }
      if (params.stringValue == "Jump")
      {
         if (params.floatValue >= 0.5f && lastJumpPressed < 0.5f)
            jumpPressed = true;
         lastJumpPressed = params.floatValue;
         return true;
      }
      if (params.stringValue == "MouseRelativeX")
      {
         lookLeftRight += params.floatValue;
         return true;
      }
      if (params.stringValue == "MouseRelativeY")
      {
         lookUpDown -= params.floatValue;
         if (lookUpDown < -1.5)
            lookUpDown = -1.5;
         if (lookUpDown > 1.5)
            lookUpDown = 1.5;
         return true;
      }

Just comment out the forward and backward and you should be good to go
Logged
Architex
Full Member
***
Posts: 113


View Profile
« Reply #5 on: March 28, 2010, 04:55:20 PM »

Wow that saved me a headache, thank you so much pixel.  Now I just have to figure out how to make the character shoot directly up.  Hopefully I can figure that out.

I'm assuming there's something I have to change in weapon_handheld.gsl....
« Last Edit: March 28, 2010, 05:13:32 PM by Architex » Logged
gekido
Guest
« Reply #6 on: March 29, 2010, 10:44:17 AM »

the max look up and max look down are in the controller settings for your character.

AimingVerticalMin
AimingVerticalMax
Logged
Pages: [1]
  Print  
 
Jump to:  

 
Powered by MySQL Powered by PHP bluBlur Skin © 2006, hbSkins
Powered by SMF 1.1.14 | SMF © 2006-2011, Simple Machines LLC
Valid XHTML 1.0! Valid CSS!