![]() |
Is this idea possible? - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods (https://www.frictionalgames.com/forum/forum-35.html) +--- Thread: Is this idea possible? (/thread-8616.html) Pages:
1
2
|
Is this idea possible? - Russ Money - 06-15-2011 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? RE: Is this idea possible? - nemesis567 - 06-15-2011 Of course, you just need to have the Source code for the engine. RE: Is this idea possible? - laser50 - 06-15-2011 Should be possible with timers.. No idea xD RE: Is this idea possible? - MrBigzy - 06-15-2011 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. RE: Is this idea possible? - nemesis567 - 06-15-2011 Will be buggy. Forget it. That stuff is done via the engine itself, doing it other way is not efficient and terribly buggy. RE: Is this idea possible? - MrBigzy - 06-15-2011 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. RE: Is this idea possible? - Russ Money - 06-15-2011 (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. RE: Is this idea possible? - Apjjm - 06-15-2011 (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. You'd have to do do Code: bool weave = (GetPlayerSpeed() - abs(GetPlayerYSpeed()) > runspeed); ![]() 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. RE: Is this idea possible? - MrBigzy - 06-15-2011 IIRC it's about 2 for crawling forward. RE: Is this idea possible? - Acies - 06-15-2011 (06-15-2011, 02:49 PM)Apjjm Wrote:That makes me think of the first monsters in Duke Nukem 3D. They always twitched their heads like crazy when falling.(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. Good luck on executing the idea though ![]() |