Modding Help Weapon damage in no pvp planets/areas

Discussion in 'Starbound Modding' started by ppottothebest, May 19, 2014.

  1. ppottothebest

    ppottothebest Void-Bound Voyager

    Hello everyone, I was just asking one thing, how can I make my weapons do damage in non-pvp planets or if the /pvp is off? I saw a lot of people killing me even if I had the /pvp off, I can mod weapons and armor, but I couldn't manage to do that, can someone help me?
     
  2. HoodieNinja_7

    HoodieNinja_7 Pangalactic Porcupine

    I'm no expert, but I do know that with some games, modded projectile weapons can often pvp bypass easily.
     
  3. dpc

    dpc Void-Bound Voyager

    universalDamage : true
     
    prodamn likes this.
  4. renojonathanr

    renojonathanr Scruffy Nerf-Herder

    Even with that enabled, you still can't damage players aboard ships. I know that from experience.
     
  5. dpc

    dpc Void-Bound Voyager

    Well, he said pvp-off planet and /pvp off... not people in ships...
     
  6. Narks

    Narks Scruffy Nerf-Herder

  7. alexthefiery

    alexthefiery Space Spelunker

    Where would "universalDamage : true" be placed?
     
  8. prodamn

    prodamn Spaceman Spiff

    weapons have that entry, so in .gun / .sword files i believe.

    if you can add it to weapons which don't have that, i'm not sure.
     
  9. dpc

    dpc Void-Bound Voyager

    Hmmm I'll show you the gun I made to despawn my creation

    Code:
    {
        "count": 1,
        "data": {
            "classMultiplier": 0.0,
            "drawables": [
                {
                    "image": "/items/guns/randomgenerated/aviangun/butt/1.png?replace;5d3a1f=5d3a1f;be9f55=be9f55;dac782=dac782;510011=510011;a80014=a80014;d4003c=d4003c;ff063f=ff063f",
                    "position": [
                        -7.900000095367432,
                        0.0
                    ]
                },
                {
                    "image": "/items/guns/randomgenerated/aviangun/middle/3.png?replace;5d3a1f=5d3a1f;be9f55=be9f55;dac782=dac782;510011=510011;a80014=a80014;d4003c=d4003c;ff063f=ff063f",
                    "position": [
                        0.0,
                        0.0
                    ]
                },
                {
                    "image": "/items/guns/randomgenerated/aviangun/barrel/3.png?replace;5d3a1f=5d3a1f;be9f55=be9f55;dac782=dac782;510011=510011;a80014=a80014;d4003c=d4003c;ff063f=ff063f",
                    "position": [
                        11.899999618530273,
                        0.0
                    ]
                }
            ],
            "firePosition": [
                18.0,
                2.0
            ],
            "fireTime": 0.06140842503520553,
            "generated": true,
            "handPosition": [
                -7.0,
                -0.0
            ],
            "inspectionKind": "gun",
            "inventoryIcon": [
                {
                    "image": "/items/guns/randomgenerated/aviangun/butt/1.png?replace;5d3a1f=5d3a1f;be9f55=be9f55;dac782=dac782;510011=510011;a80014=a80014;d4003c=d4003c;ff063f=ff063f",
                    "position": [
                        -7.900000095367432,
                        0.0
                    ]
                },
                {
                    "image": "/items/guns/randomgenerated/aviangun/middle/3.png?replace;5d3a1f=5d3a1f;be9f55=be9f55;dac782=dac782;510011=510011;a80014=a80014;d4003c=d4003c;ff063f=ff063f",
                    "position": [
                        0.0,
                        0.0
                    ]
                },
                {
                    "image": "/items/guns/randomgenerated/aviangun/barrel/3.png?replace;5d3a1f=5d3a1f;be9f55=be9f55;dac782=dac782;510011=510011;a80014=a80014;d4003c=d4003c;ff063f=ff063f",
                    "position": [
                        11.899999618530273,
                        0.0
                    ]
                }
            ],
            "itemName": "generatedgun",
            "level": 999999999.0,
            "levelScale": 999999999.0,
            "muzzleEffect": {
                "animation": "/animations/muzzleflash/bulletmuzzle3/bulletmuzzle3.animation",
                "fireSound": [
                    {
                        "file": "/sfx/gun/ar6.wav"
                    }
                ]
            },
            "projectile": {
                "damageKind": "default",
                "damagePoly": [
                    [
                        -36,
                        0
                    ],
                    [
                        -24,
                        -24
                    ],
                    [
                        0,
                        -36
                    ],
                    [
                        24,
                        -24
                    ],
                    [
                        36,
                        0
                    ],
                    [
                        24,
                        24
                    ],
                    [
                        0,
                        36
                    ],
                    [
                        -24,
                        24
                    ]
                ],
                "damageType": "ignoresdef",
                "flippable": true,
                "level": 100,
                "piercing": true,
                "power": Infinity,
                "statusEffects": [],
                "universalDamage": true
            },
            "projectileType": "piercingbullet",
            "rarity": "common",
            "recoilTime": 0.10000000149011612,
            "shortdescription": "Despawner",
            "spread": 1,
            "statusEffects": [],
            "twoHanded": true,
            "universalDamage": true,
            "weaponType": "Avian Blaster"
        },
        "name": "generatedgun"
    }
     
    Last edited: Jul 5, 2014
  10. Snivy Man

    Snivy Man Void-Bound Voyager

    i made a sword that is supposed to be a "god weapon" and when my mouse goes over it, my game crashes. any help?

    (nevermind. i fixed it. putting infinite as the damage crashes the game when your mouse goes over it.
     
    Last edited: Nov 28, 2014
  11. Whale Cancer

    Whale Cancer Big Damn Hero

    Looks like you touched the face of God.

    Edit: To be serious, we need to see the starbound.log to know what's going on.
     

Share This Page