Author Topic: [SOLVED] Can I make my own brick bitmask or are they hardcoded?  (Read 746 times)

Will this make raycasts able to use this bitmask, or are bitmasks hardcoded into the game so that I can't make my own brick mask?

Code: [Select]
$TypeMasks::FxBrickSpecialObjectType = 1073741824; //*crosses fingers that this won't conflict in later versions*

package TypeMask_SpecialBricks
{
    function fxDTSBrick::getType( %this )
    {
        %type = parent::getType(%this);
        if( %this.getDatablock().useSpecialMask )
            return %type | $TypeMasks::FxBrickSpecialObjectType;
        else
            return %type;
    }
};
« Last Edit: April 07, 2013, 12:22:58 PM by Axolotl2 »



fxDTSBrick::getType is protected. I guess baddy doesn't want us doing this.