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
Is this idea possible?
Russ Money Offline
Senior Member

Posts: 360
Threads: 25
Joined: Dec 2010
Reputation: 4
#1
Is this idea possible?

I always wanted to include some more realism to my mod. So I'll keep this short.

Is it possible to make the player's view weave back and forth from left to right when running? Kind of like, leaning left to right when holding Shift+W?

06-15-2011, 02:29 PM
Find
nemesis567 Offline
Posting Freak

Posts: 874
Threads: 65
Joined: May 2011
Reputation: 10
#2
RE: Is this idea possible?

Of course, you just need to have the Source code for the engine.

Today I dreamt the life I could live forever. You only know that when you feel it for you know not what you like until you've experienced it.
06-15-2011, 02:32 PM
Find
laser50 Offline
Member

Posts: 242
Threads: 22
Joined: Apr 2011
Reputation: 0
#3
RE: Is this idea possible?

Should be possible with timers.. No idea xD

Current Project: [WIP] Lost Memories
Progress: 15%
CLICK FOR MY MODDB PAGE
06-15-2011, 02:32 PM
Find
MrBigzy Offline
Senior Member

Posts: 616
Threads: 18
Joined: Mar 2011
Reputation: 8
#4
RE: Is this idea possible?

You'd have to have a function get a constant GetPlayerSpeed, and then make it so if it's true, have MovePlayerHeadPos move left to right and keep repeating.
06-15-2011, 02:32 PM
Find
nemesis567 Offline
Posting Freak

Posts: 874
Threads: 65
Joined: May 2011
Reputation: 10
#5
RE: Is this idea possible?

Will be buggy. Forget it. That stuff is done via the engine itself, doing it other way is not efficient and terribly buggy.

Today I dreamt the life I could live forever. You only know that when you feel it for you know not what you like until you've experienced it.
(This post was last modified: 06-15-2011, 02:34 PM by nemesis567.)
06-15-2011, 02:34 PM
Find
MrBigzy Offline
Senior Member

Posts: 616
Threads: 18
Joined: Mar 2011
Reputation: 8
#6
RE: Is this idea possible?

I don't see why it'd be buggy if you keep tweaking it until it works right. You can include head rotation as well, and some blur effects.
06-15-2011, 02:36 PM
Find
Russ Money Offline
Senior Member

Posts: 360
Threads: 25
Joined: Dec 2010
Reputation: 4
#7
RE: Is this idea possible?

(06-15-2011, 02:32 PM)MrBigzy Wrote: You'd have to have a function get a constant GetPlayerSpeed, and then make it so if it's true, have MovePlayerHeadPos move left to right and keep repeating.

Yeah, I could see that working. Just need to figure out the numbers for max speed vs. walking speed.

06-15-2011, 02:37 PM
Find
Apjjm Offline
Is easy to say

Posts: 496
Threads: 18
Joined: Apr 2011
Reputation: 52
#8
RE: Is this idea possible?

(06-15-2011, 02:37 PM)Russ Money Wrote:
(06-15-2011, 02:32 PM)MrBigzy Wrote: You'd have to have a function get a constant GetPlayerSpeed, and then make it so if it's true, have MovePlayerHeadPos move left to right and keep repeating.

Yeah, I could see that working. Just need to figure out the numbers for max speed vs. walking speed.

You'd have to do do
bool weave = (GetPlayerSpeed() - abs(GetPlayerYSpeed()) > runspeed);
Otherwise his head would do stuff if you jumped / went down stairs Tongue.
I think in this case runspeed would be about 4 ish. Just check the "player info" option in debug mode and run; one of the pieces of info it gives will be all the different movement speeds.
(This post was last modified: 06-15-2011, 02:50 PM by Apjjm.)
06-15-2011, 02:49 PM
Find
MrBigzy Offline
Senior Member

Posts: 616
Threads: 18
Joined: Mar 2011
Reputation: 8
#9
RE: Is this idea possible?

IIRC it's about 2 for crawling forward.

06-15-2011, 02:53 PM
Find
Acies Offline
Posting Freak

Posts: 1,643
Threads: 60
Joined: Feb 2011
Reputation: 73
#10
RE: Is this idea possible?

(06-15-2011, 02:49 PM)Apjjm Wrote:
(06-15-2011, 02:37 PM)Russ Money Wrote:
(06-15-2011, 02:32 PM)MrBigzy Wrote: You'd have to have a function get a constant GetPlayerSpeed, and then make it so if it's true, have MovePlayerHeadPos move left to right and keep repeating.

Yeah, I could see that working. Just need to figure out the numbers for max speed vs. walking speed.

You'd have to do do
bool weave = (GetPlayerSpeed() - abs(GetPlayerYSpeed()) > runspeed);
Otherwise his head would do stuff if you jumped / went down stairs Tongue.
I think in this case runspeed would be about 4 ish. Just check the "player info" option in debug mode and run; one of the pieces of info it gives will be all the different movement speeds.
That makes me think of the first monsters in Duke Nukem 3D. They always twitched their heads like crazy when falling.

Good luck on executing the idea though Smile


[Image: mZiYnxe.png]


06-15-2011, 03:14 PM
Find




Users browsing this thread: 2 Guest(s)