03 Aug 10, 09:54PM
/suicide
Yes, it is possible to modify the source code to do what you're asking about.
Keep in mind that modified code must not be played on public servers.
1) Learn C++
2) Find the parts of the source code (probably clientgame.cpp or one of the visual files) that deal with the player being underwater.
3) Use your ingenuity, the existing code, and your C++ skills to think of how you'd make a CubeScript variable (probably just a read-only VAR) that describes whether the player is underwater.
4) Profit! Not really though, that'd violate license.
Yes, it is possible to modify the source code to do what you're asking about.
Keep in mind that modified code must not be played on public servers.
1) Learn C++
2) Find the parts of the source code (probably clientgame.cpp or one of the visual files) that deal with the player being underwater.
3) Use your ingenuity, the existing code, and your C++ skills to think of how you'd make a CubeScript variable (probably just a read-only VAR) that describes whether the player is underwater.
4) Profit! Not really though, that'd violate license.