View source for How to Make the Player Swim Like Modern FPS - EDukeWiki

# View source for How to Make the Player Swim Like Modern FPS

← How to Make the Player Swim Like Modern FPS

You do not have permission to edit this page, for the following reasons:

- The action you have requested is limited to users in the group: Users.
- You must confirm your email address before editing pages. Please set and validate your email address through your user preferences.

You can view and copy the source of this page.

This code was originaly posted by James AKA JBlade on AMC. Find the APLAYER actor line in GAME.CON and add the folling code just under it. <pre> gamevar TEMP 0 0 // Unless you have this defined somewhere else you will need it gamevar TEMP2 0 0 // Unless you have this defined somewhere else you will need it ifinwater ifp prunning { getinput[THISACTOR].extbits TEMP2 ifvarand TEMP2 1 { getplayer[THISACTOR].horiz TEMP subvar TEMP 100 // 100 horiz equals straight ahead, so take away 100 and make 0 'straight ahead' for this mulvar TEMP -20 setplayer[THISACTOR].poszv TEMP } } </pre> If you think you move up/down too fast simply change the -20 to a slightly lower value. Thanks to James for this code. [[Category: Tutorials]]

Return to How to Make the Player Swim Like Modern FPS.

Retrieved from "http://wiki.eduke32.com/wiki/How_to_Make_the_Player_Swim_Like_Modern_FPS"