"default" block for VOXELDEF (and MODELDEF)

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is ON
[img] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: "default" block for VOXELDEF (and MODELDEF)

"default" block for VOXELDEF (and MODELDEF)

by Alfred Don » Sun Jun 25, 2023 9:52 pm

I would love to see some kind of "default block" for both VOXELDEF and MODELDEF, so instead of defining every single voxel in your mod with the same properties, you could just go and say

Code: Select all

default {
  UseActorPitch
  UseActorRoll
}
This would cut down on code size, and also help in a situation where your voxels are just named after sprites and do not have a voxeldef.
(especially when we're talking about flags like UseActorPitch and UseActorRoll which should really be on by default)

An alternative, would to have a GAMEINFO/MAPINFO option to just enable these anyway since there's no reason other than backwards compatibility with a couple mods to have these flags OFF anyway.

Top