what does each soap ctype do

  • ReallyJustDont
    12th Jul 2020 Member 0 Permalink

    so, i experimented with soap a bit and looked at a couple of tutorials, and i've figured out some things, such as that life and tmp2 have some relation to how long the bubble last, tmp is what particle a soap particle is connected to, and different ctypes make a particle of soap do different things.

    some things i've kind of figured out about bubbles include:

    • closed bubbles (e.g. the little triangles that float above a pool of soap after using VAC on it a bit) use GUN
    • worms (e.g. those created using the soapworm mod) use STKM
    • WTRV seems to make particles move?

    so am i making any mistakes here, and what am i missing? i've noticed ctypes of SING, BREL, BTRY and STNE also appear but idk what they do

    Edited once by ReallyJustDont. Last: 12th Jul 2020
  • LBPHacker
    13th Jul 2020 Developer 0 Permalink
    The .ctype property of soap particles is actually a set of flags rather than a reference to an element type; this is explained, albeit rather curtly, here. (Yes, these flags could very well reside in the .flags property instead.) Soap isn't special-cased in the HUD (no reason, it just isn't), so you see the default behaviour, which is to render .ctype as the name of the corresponding element.
    Edited once by LBPHacker. Last: 13th Jul 2020
  • ReallyJustDont
    13th Jul 2020 Member 0 Permalink

    ah, i see. so then a ctype flag of 128 (sing is 131, brel 135) also has some sort of meaning?