Locking STKM ctype

  • Pigbear
    3rd Aug 2013 Member 3 Permalink

    I think it would be nice if we could lock the stickman's ctype for making levels where we don't want the stickman to lose his Ctype because he had his head clip through the floor and he got say, sand as his ctype when he is supposed to have plasma. I think that having it so if you set tmp to 1 that he has his Ctype locked.

  • dom2mom
    3rd Aug 2013 Member 0 Permalink

    @Pigbear (View Post)

     I think this would be good not just for STKM, but for anything that uses CTYPE.

  • therocketeer
    3rd Aug 2013 Member 0 Permalink
    @dom2mom (View Post)
    I thought most elements did lock ctype, like clone.
  • boxmein
    3rd Aug 2013 Former Staff 0 Permalink
    Considering that ctype is -saved- as an integer but used as a value with a max of 255, one could just use a bitmask 0x100 to get/set the LOCKED property, if one were to exist.

    That however would need making every function touching ctype limit it to 0x1FF, not 0xFF :(