Author Topic: Allow walking, not sprinting?  (Read 2244 times)

Offline mtxrooster

  • Rank: Private
  • *
  • Posts: 37
Allow walking, not sprinting?
« on: September 17, 2009, 05:57:07 pm »
Was wondering if there's any capacity to control what is not allowed.  The mod has an Antirun section.  Problem is, running to me (and many, I know, not all) is when you hold down shift and go as fast as the game will let you.  We run tactical servers where walking IS allowed, but not running (cept from direct fire, etc).  I thought there'd be an option to control whether walking or running is allowed, but I can't find one.  Is there any way we can get the mod to limit running only, not walking?

Thanks,

Roost

Offline Joker{eXtreme}

  • Rank: Private
  • *
  • Posts: 6108
    • http://www.mycallofduty.com
Re: Allow walking, not sprinting?
« Reply #1 on: September 17, 2009, 06:23:25 pm »
You have the following

Sprint -- When you hit the run key
Standing straight up -- this is alittle faster paced then some would consider Walking Up Right
Crouched -- This is probably more of a walking speed
Prone -- we don't have to go there.

So if I under stand you right, you want your player to Stand Up Straight and move at the Crouched speed?

Offline mtxrooster

  • Rank: Private
  • *
  • Posts: 37
Re: Allow walking, not sprinting?
« Reply #2 on: September 17, 2009, 06:34:40 pm »
Quote from: "{PST}*Joker";p="30221"
You have the following

Sprint -- When you hit the run key
Standing straight up -- this is alittle faster paced then some would consider Walking Up Right
Crouched -- This is probably more of a walking speed
Prone -- we don't have to go there.

So if I under stand you right, you want your player to Stand Up Straight and move at the Crouched speed?

Well not so much the movement speed..  I'd like to be able to have the anti-run feature (which causes shellshock after x units of movement) kick in for Sprinting only.  Currently your mod "punishes" for standing up straight.  

As an aside to this, many tactical servers "crouch only" type servers do allow walking straight up with sights up.  Not sure if you can allow for that (not part of what concerns me, just throwing it out there for those who would like it).  

Maybe this will make it easier (I know I suck with wording).

Your mod punishes when walking straight up and/or sprinting over x units.
I'm wondering if there is a way to make it punish ONLY when sprinting x units and allow walking straight up.

Thanks,

Roost

Offline mtxrooster

  • Rank: Private
  • *
  • Posts: 37
Re: Allow walking, not sprinting?
« Reply #3 on: September 26, 2009, 03:12:26 am »
Just wanted to revisit this topic and see if anyone knows the solution?  I've been trying to sort out the files in the folders (the gsc files), ut struggling to make sense of it all!  Thanks,

Roost

Offline PatmanSan

  • Administrator
  • Rank: Private
  • *****
  • Posts: 2527
Re: Allow walking, not sprinting?
« Reply #4 on: September 26, 2009, 07:06:38 am »
extreme\_ex_main.gsc

Look for this line:

if(self.ex_sprinting || (self.ex_stance == 0 && self.ex_moving))

Make it look like this:

if(self.ex_sprinting)

Offline mtxrooster

  • Rank: Private
  • *
  • Posts: 37
Re: Allow walking, not sprinting?
« Reply #5 on: September 26, 2009, 03:16:43 pm »
Awesome - TY so much :) :) :)

Offline DEATHDLR

  • Rank: Private
  • *
  • Posts: 2
    • http://WWW.HEROES-OF-WAR.CO.UK
Re: Allow walking, not sprinting?
« Reply #6 on: October 31, 2010, 10:03:08 am »
Hi know this is an old thread , but I am new to modding servers , Our clan runs a tactical no run server which is running X4v3 , I want to use the above line change for our mod.
What tools do I need to be able to change that line as at moment all i can do is read  gsc not edit. hope you can help.

Offline Joker{eXtreme}

  • Rank: Private
  • *
  • Posts: 6108
    • http://www.mycallofduty.com
Re: Allow walking, not sprinting?
« Reply #7 on: October 31, 2010, 10:48:14 am »
I use Notepad C++ for my gsc files

Offline DoomSlayer

  • Rank: Private
  • *
  • Posts: 506
    • http://www.pmcod.com
Re: Allow walking, not sprinting?
« Reply #8 on: November 01, 2010, 08:02:34 am »
handshake hex editor is great for modding weapon files and making changes to material files you can also use notpad to mod weapon files

i use programmers notepad for modding script =)

http://xvi32-hex-editor.software.informer.com/

http://www.pnotepad.org/