Altering player movement

Any aspects of level design for the Source engine.

Altering player movement

Postby afurmanjhu on Tue Jun 05, 2012 10:34 pm

Don't know if this belongs here or in programming section...

Anyhow, I am currently building a map that is trying to recreate some aspects of the game chess. Specically, I am trying to make it such that each time a person is allowed to move, and presses the forward key for example, the game will move that player forward exactly one square/unit (which of course will be defined by the size of the source map that I build). Similarly, if a person were to want to move to the right, then the program would both rotate 90 degrees and translate the requisite unit length.

In short, is there anyway to alter the game code such that player translation always moves a stereotyped amount and that player rotation is always 90 degrees in the specified direction (preferably this would appear as a smooth rotation rather than an instantaneous one).

Thanks for all help in advance!
afurmanjhu
Dumpling
Dumpling
 
Joined: Wed Nov 09, 2011 6:53 pm

Re: Altering player movement

Postby joe_rogers_11155 on Wed Jun 06, 2012 4:10 pm

it sounds like a game_ui may help you. watch this tutorial and then read up on the Source SDK article. If you truly want a code-based solution, I cannot help you but some others might be able to assist.

"Day breaks, but decay soon follows." - Ava Winona
Image
Currently developing in radio silence... 99 Bolts
Here's another project of mine... Assault on Overwatch
Are you new to Source SDK? VDC
User avatar
joe_rogers_11155
Veteran
Veteran
 
Joined: Wed Oct 08, 2008 11:11 pm
Location: United States

Return to Hammer Editor Help

Who is online

Users browsing this forum: Dmx6, Google [Bot]