Jire / Abendigo

A free as in both freedom and free beer game modding platform using Kotlin on the JVM.
GNU General Public License v3.0
57 stars 56 forks source link

Fake Lag Enabling? #92

Open jo77528 opened 7 years ago

jo77528 commented 7 years ago

Hey Jire, was looking at the code and was pretty confused for how to enable fake lag. Could you show me how this could be done? Thanks :D

squabbi commented 7 years ago

All you need to do is navigate to \src\main\kotlin\org\abendigo

Edit Abendigo.tk with notepad or your favourite text editor (Notepad++) and uncomment (remove //) the: FakeLagPlugin.disable()

so it looks like this:

fun main(args: Array<String>) {
    if (DEBUG) println(ManagementFactory.getRuntimeMXBean().name)

    Server.bind().syncUninterruptibly()

    while (!Thread.interrupted()) try {
        csgo
        csgo.loadModules()
        csgoModule
        engineDLL
        clientDLL
        netVars
        break
    } catch (t: Throwable) {
        if (DEBUG) t.printStackTrace()
        Thread.sleep(1500)
    }

    FakeLagPlugin.disable() // only need this if you're using fake lag

    every(2, SECONDS) {
        +Me
        +entities
    }

And that should be it!