Trilogy-ASI-Script icon indicating copy to clipboard operation
Trilogy-ASI-Script copied to clipboard

[New effect] "Low Distance"

Open Mrgtagamer opened this issue 3 years ago • 5 comments

2

3

Mrgtagamer avatar Jun 23 '22 14:06 Mrgtagamer

Super Low Draw Distance lol. P:S: I'm using mod CLEO drawing

Mrgtagamer avatar Jun 23 '22 14:06 Mrgtagamer

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? :)

Lordmau5 avatar Jun 23 '22 14:06 Lordmau5

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.

Mrgtagamer avatar Jun 23 '22 14:06 Mrgtagamer

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...

Lordmau5 avatar Jun 23 '22 15:06 Lordmau5

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.

gromchek avatar Jan 10 '23 17:01 gromchek