Trilogy-ASI-Script
Trilogy-ASI-Script copied to clipboard
[New effect] "Low Distance"


Super Low Draw Distance lol. P:S: I'm using mod CLEO drawing
I've tried this before but couldn't get it working properly - could you link me the CLEO mod so I could have a look at how it's doing this? :)
I've tried this before but couldn't get it working properly - could you link me the CLEO mod so I could have a look at how it's doing this? :)
CLEO Drawing link - https://drive.google.com/file/d/1An_IAxzsY0V53Ls3QCqgaijbMuMV2o7a/view?usp=sharing Controls: Ctrl+1 to increase the distance, Ctrl+2 to reduce the drawing distance.
Okay so I tried decompiling it with Sanny Builder but wasn't able to get a good result of code to read.
While I'd really like to add this as an effect, if I don't know how to make it then I can't easily add it haha...
I think we need dig into the CTimeCycle class. There is field m_fFarClip that handle the draw distance.
If you change value:
//on start
farClip = CTimeCycle::m_CurrentColours.m_fFarClip * 0.05f;
//on tick
CTimeCycle::m_CurrentColours.m_fFarClip = farClip;
It does that we need, but looks weird sometimes.