By changing the definition of the actor APLAYER in Duke3D v1.5's GAME.CON to start with the following code, the player's ang and horiz fields are updated with constant rates, as long as you're pressing on the "Use" key.
This code is EDuke 2.0 and EDuke32-OldMP compatible.
With Raze, this can lead to problems, like making it difficult to free the player from looking down. Even with the "ang" field, there can be a sudden large change in the angle, which might be a side-effect of a wraparound.
Code: Select all
gamevar MYNEWTEMP 0 1 // TEST VAR
actor APLAYER MAXPLAYERHEALTH PSTAND 0 0
// TEST BEGIN
ifhitspace
{
getplayer[THISACTOR].horiz MYNEWTEMP
addvar MYNEWTEMP -8
setplayer[THISACTOR].horiz MYNEWTEMP
getplayer[THISACTOR].ang MYNEWTEMP
addvar MYNEWTEMP 8
setplayer[THISACTOR].ang MYNEWTEMP
}
// TEST END
The TeamDuke v0.62 patch has a CTFSAMP.CON file within a GRP, in which there's ladder climbing code that covers a read of the horiz field. There's also commented out teleportation code, which can modify the ang and horiz fields.