Jump to content

No Freelook aiming [GZDoom]


Worst

Recommended Posts

No Freelook aiming
This GZDoom zscript mod disables freelook aiming from all Doom weapons. It is meant to be played with both freelook and autoaim enabled.


It allows you to use freelook, but still restrict your aiming as if you were playing vanilla Doom without freelook. So even if you aim straight down, the weapon will still shoot either according to auto-aim or straight ahead if there are no auto-aim targets.

 

Note: This mod is only compatible with the Doom games, and is not compatible with mods that change the weapons or the player classes.


Download: nofreelookaim.pk3

 

Other versions:


Troubleshooting info:

Spoiler

If you experience any errors or crashes while playing, make sure that your GZDoom version is up to date, and that you are NOT loading or auto-loading any mods or wads that alter either the weapons or the player classes / the player.

 

GIFs:

Spoiler

15N79da.gifMLTCMpd.gif


Technical details:

Spoiler

This mod modifies the doom weapons so that they store the players pitch right before shooting, then resets the players pitch to 0. And then restores it right after shooting. This all happens instantly, so it doesn't make the view jump at all.

 

ZScript weapon example:


class NewPlasmaRifle : PlasmaRifle Replaces PlasmaRifle
{
	mixin PitchSaveResetLoadActions;

	States
	{
	Fire:
		PLSG A 0 A_SaveAndResetPitch;
		PLSG A 0 A_FirePlasma;
		PLSG A 3 A_RestorePitch;
		PLSG B 20 A_ReFire;
		Goto Ready;
	}
}

 

 

Edited by Worst
Added another version

Share this post


Link to post

I thank Worst for showing me this mod in another forum topic where I was specifically trying to find ways to have freelook in GZDoom or other ports, but while still maintaining the original shooting mechanics of the game AKA to not cheat the shooting limitations. Such as not being able to take out snipers from across the map by aiming up. So his mod was exactly what I was looking for. Thanks, Worst.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...