NightFright2k19 / duke3d_voxelpack

Duke3D Voxel Pack for EDuke32

Home Page:https://forums.duke4.net/topic/3322-duke-3d-voxel-pack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Maphack language for voxels

CommonLoon102 opened this issue · comments

Hello,

I saw that you (@NightFright2k19 ) have issues with voxel maphacks in the duke4 forums. I'm not a member there, but I'm the one who added maphack support for voxels into eduke32 (to be precise, only the mdpos(x|y|z)off commands). Sadly, the official documentation lags behind the new features and these are not documented yet.

You can use the following commands for voxels in mhk files:
mdposxoff: Moves the voxel or md3.
mdposxoff: Moves the voxel or md3.
mdposzoff: Moves the voxel or md3. Use -5000 to have the voxel or md3 floating above the ground for example.
angoff: Rotates the voxel or md3.
notmd: Use sprite instead of voxel or md3.

There is nothing new about angoff and notmd. The official documentation tells a little more about them.

(I don't know if these work for md2 too; or if md2 is still supported at all.)

mdxoff is a legacy command, left there for compatibility, it has a new name: mdpivxoff. So these two does the same, but we renamed it to have a visible difference between mdposxoff and mdpivxoff. The piv one is for moving the pivot, and it only makes sense to use with pitch and roll.

There is no pitch or roll support for voxels, it is not implemented and it is not planned to implement it in the future. Therefore mdpivxoff (or mdxoff) does nothing to voxels.

Just some interesting facts: if you like to type, you can use mdpositionxoff instead of mdposxoff and mdpivotxoff instead of mdpivxoff.

I hope it helped.

Thanks for the awesome voxel pack!