Duke4.net Forums: Player movement question - Duke4.net Forums

Jump to content

Hide message Show message
Welcome to the Duke4.net Forums!

Register an account now to get access to all board features. After you've registered and logged in, you'll be able to create topics, post replies, send and receive private messages, disable the viewing of ads and more!

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Player movement question

User is offline   Anvil 

#1

Is it possible to make the player stop faster than he currently does?
0

User is offline   Trooper Dan 

  • Duke Plus Developer

#2

Yes.
1

User is offline   Anvil 

#3

How?
0

User is offline   Trooper Dan 

  • Duke Plus Developer

#4

View PostAnvil, on 27 April 2017 - 12:33 AM, said:

How?


Edit GAME.CON, find the line that says

actor APLAYER MAXPLAYERHEALTH PSTAND 0 0



Right under that line, enter these 2 lines:

ife input[].fvel 0 setp[].posxv 0
ife input[].svel 0 setp[].posyv 0


Done.
4

User is offline   Anvil 

#5

Thanks.
This code works well for running/walking but bobbing still continues a bit.
Also, how can bobbing be reduced when running/walking?
0

User is offline   Trooper Dan 

  • Duke Plus Developer

#6

View PostAnvil, on 29 April 2017 - 04:06 PM, said:

Thanks.
This code works well for running/walking but bobbing still continues a bit.
Also, how can bobbing be reduced when running/walking?


onevent EVENT_DISPLAYROOMS

set cameraz player[].posz

endevent


That will prevent the camera bobbing, but of course the weapon sprites in the HUD will still sway and bob.
1

User is offline   Anvil 

#7

By bobbing I meant weapon sway, not camera bobbing.
I guess the way to have no weapon sway after stopping is to disable it completely (cl_weaponsway 0), which I'm not a big fan of.

This post has been edited by Anvil: 01 May 2017 - 10:56 PM

0

User is offline   Trooper Dan 

  • Duke Plus Developer

#8

View PostAnvil, on 01 May 2017 - 10:15 PM, said:

the way to make the weapon sway stop


setp[].weapon_sway 0
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic


All copyrights and trademarks are property of their respective owners. Instead of reading this text, you could be playing Ion Fury! ;) © 2019 Voidpoint, LLC

Enter your sign in name and password


Sign in options