Page 1 of 1

Re: "Zombie world" One life scenario offline (max difficulty)

Posted: 2015-10-23 07:07
by rPoXoTauJIo
1. Create folder 'tweaker' in mods/pr/python/game
2. Create file 'tweaker.py'
3. Put stuff below inside.

Code: Select all

# gun disable
import host
import bf2

def init():
    host.registerGameStatusHandler(onGameStatusChanged)


def onGameStatusChanged(status):
    print status
    if status == 0 or status == 1:
        try:
            liveTweak()

def liveTweak():
    host.rcon_invoke("""
        ObjectTemplate.active rushmg_dshk
        ObjectTemplate.ammo.nrOfMags 1
        ObjectTemplate.ammo.magSize 0
        ObjectTemplate.ammo.autoReload 0
        """)
4. Create __init__.py there.
5. Put this inside.

Code: Select all

# gun disable
import tweaker
tweaker.init()
6. Init your custom module in mods/pr/python/game/__init__.py:

Code: Select all

import tweaker
Profit, not even client side changes needed.

Re: "Zombie world" One life scenario offline (max difficulty)

Posted: 2015-10-23 08:05
by Ason
why do you need techies then? Just remove them in GPO or change them to civi cars?