GtkRadiant icon indicating copy to clipboard operation
GtkRadiant copied to clipboard

Option to fix selected/all entities with angle key

Open ensiform opened this issue 8 years ago • 4 comments

Would be nice if there was a way to detect automatically or by user input to fix angle keys so they are in proper range instead of negative. Also fix rotation from producing backwards angle key would be cool as well. I get that it means the same thing but its annoying sometimes when mirroring by hand etc.

The range should really be restricted to 0...360, 360 being same as 0 anyway which could be just discarded to 0.

ensiform avatar Apr 13 '17 03:04 ensiform

Entity keys/values don't have a datatype yet. Woud have to change the def file format but it gets tricky without breaking compatibility with old def files.

Pan7 avatar Apr 13 '17 12:04 Pan7

They are stored though; wouldn't it be just cycle through entities and look for 'angle' or 'angles' then add 360 to negative values?

Mateos81 avatar Apr 13 '17 13:04 Mateos81

You don't know if a game or mod requires 0-360 values or also accepts other values or a string for some special case.

Pan7 avatar Jun 25 '17 11:06 Pan7

I think all supported games do conform. Perhaps a per-game mode/mod option? At least for clamping.

ensiform avatar Jun 25 '17 20:06 ensiform