project reality header
Go Back   Project Reality Forums > PR:BF2 Mod Forums > PR:BF2 Community Modding
13 Nov 2019, 00:00:00 (PRT)
Register Developer Blogs Project Reality Members List Search Today's Posts Mark Forums Read
PR:BF2 Community Modding Making or wanting help making your own asset? Check in here

Reply
 
Thread Tools Display Modes
Old 2015-10-21, 19:57   #1
Wing Walker
Arrow How to adjust guns on techies?

Just need an easy way it disable the guns on the techies on the Al Basarah maps.

Tried to figure out how how to edit the weapons on them to have no damage but couldn't figure it out.
Wing Walker is offline
Last edited by Wing Walker; 2015-10-22 at 19:04..
Reply With Quote
Old 2015-10-23, 08:07   #2
[R-DEV]​rPoXoTauJIo
PR:BF2 Developer
Supporting Member

rPoXoTauJIo's Avatar
Default Re: "Zombie world" One life scenario offline (max difficulty)

1. Create folder 'tweaker' in mods/pr/python/game
2. Create file 'tweaker.py'
3. Put stuff below inside.
Code:
# 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:
# gun disable
import tweaker
tweaker.init()
6. Init your custom module in mods/pr/python/game/__init__.py:
Code:
import tweaker
Profit, not even client side changes needed.

assetruler69: I've seen things you smurfs wouldn't believe. Apaches on the Kashan. I watched burned down tank hulls after the launch of the single TOW. All those moments will be lost in time, like tears in rain.
Time to give up and respawn.
rPoXoTauJIo is offline Reply With Quote
Old 2015-10-23, 09:05   #3
[R-DEV]​Ason
PR:BF2 Developer
Supporting Member

Ason's Avatar
Default Re: "Zombie world" One life scenario offline (max difficulty)

why do you need techies then? Just remove them in GPO or change them to civi cars?

Ason is offline Reply With Quote
Old 2015-10-24, 19:49   #4
Wing Walker
Default Re: "Zombie world" One life scenario offline (max difficulty)

Hey thanks for the replies!

No one responded for a while, I actually was tinkering with it and I got that idea, to just change the text in the files for the two techies, to the the same as the "truck1", just clicked and pasted the text.

Well it didn't change the techies into the truck, but instead the vehicles don't spawn in at all.

Which is good! So now I got my zombie mod for Halloween, just by changing a few lines of text. Awesome

A few other things I want to figure out to make it perfect though: how to reduce stamina of your character, and get rid of crates on a map.

I am kinda making a Z-day kit, tweaking the weapons, making them more realistic, as well as making the load out realistic for that type of scenario (for a gun guy anyways).

Its addicting once you figure some of this out.
Wing Walker is offline Reply With Quote
Reply


Tags
difficulty, life, max, offline, scenario, zombie world
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 04:06.