Page 1 of 1
Best Way to Make a Patch that Changes Actor Angles in Vanilla Hexen maps?
Posted: Mon Mar 03, 2025 12:12 am
by Razumen
I've been working on voxel models for Hexen props, and would like to know what the best way to create a patch that I could distribute with it that would allow me to change the default angles of certain props since a lot of them now have clear fronts and backs. As far as I know no one else has made a similar patch, and since it's primarily for GZDoom, and Hexen doesn't have good dehacked tooles, someone mentioned using Zscript's LevelPostProcessor. Seems like it might work, but was basically wondering if there was an easier way, or if someone knew of an existing patch.
Re: Best Way to Make a Patch that Changes Actor Angles in Vanilla Hexen maps?
Posted: Wed Mar 26, 2025 2:33 am
by Player701
LevelPostProcessor is indeed the way to go if your intention is to patch maps without shipping replacement versions (which may be illegal due to the IWAD's commercial nature). I don't think there is a simpler way, but it couldn't be any easier. You just need to get the map hashes via the
mapchecksum console command first, and then use
SetThingAngle to adjust the angle of the corresponding map things.
Code: Select all
class MyLevelPostProcessor : LevelPostProcessor
{
protected void Apply (Name checksum, string mapname)
{
switch (checksum)
{
case 'PUT_MAP01_CHECKSUM_HERE':
SetThingAngle(<thing_id_1>, <some_angle_1>);
SetThingAngle(<thing_id_2>, <some_angle_2>);
...
break; // <-- NB: this is important
case 'PUT_MAP02_CHECKSUM_HERE':
...
break;
...
}
}
}
I do not know of any existing patch.