Skip to content

A11. DEHACKED Extensions

George Kalampokis edited this page Oct 26, 2026 · 1 revision

WeaponImpulse

WeaponImpulse is an extension for DEHACKED that allows you to set and customize the weapon's Impulse Trigger rumble effect.

The Weapon Impulse Trigger rumble effect provide force feedback on either the player's controller's triggers or just the controller's rumble, when the player either fire a weapon or when the weapon is currently in use (Applies on ReadyWeapon CodePointer).

Sample of WeaponImpulse block:

WeaponImpulse 0
Left Trigger = 0.5f
Left Trigger Duration = 500
Right Trigger = 0.3f
Right Trigger Duration = 750
Const Left Trigger = 0.0f
Const Left Trigger Duration = 0
Const Right Trigger = 0.0f
Const Right Trigger Duration = 0

As you can see the values are quite similar to the values of the DOOM 3 BFG Edition's weapon rumble values that can be found in the def/weapon_*.def files inside the _common.resources.

Now let's explain some things about the above block:

  • WeaponImpulse number: Header of the block. It uses the same nuerical values as the Weapon DEHACKED block and can be used multiple times
  • Left/Right Trigger = float: Similar to DOOM 3 BFG Edition those values are float point numbers that determine the magnitude intensity of the rumble effect on each motor
  • Left/Right Trigger Duration = number: Similar to DOOM 3 BFG Edition those values are integer numbers that determine the duration (in milliseconds, max value is 1000) of the rumble effect on each motor
  • Const Left/Right Trigger = float: Similar to DOOM 3 BFG Edition those values are float point numbers that determine the magnitude intensity of the constant rumble effect on each motor (that is used in ReadyWeapon Code pointer)
  • Const Left/Right Trigger Duration = number: Similar to DOOM 3 BFG Edition those values are integer numbers that determine the duration (in milliseconds, max value is 1000) of the constant rumble effect on each motor (that is used in ReadyWeapon Code pointer)

MF2_MOUSELOCK

MF2_MOUSELOCK (0x200000) is an extra thing flag that once is present in any thing on a map, it will force the player to use only the original Horizontal look. The flag overrides the source port's own freelook variable, which means that players can't enable (or re-enable) the freelook feature of the source port. The only way for the player to undo it is either to defeat the thing with the flag or move to another map.

Clone this wiki locally