Giter Site home page Giter Site logo

pewpew's Introduction

PewPew v2

Divran's old GCombat remake now up to date for Garry's Mod 13.

pewpew's People

Contributors

mattjeanes avatar divran avatar brandonsturgeon avatar ziomatrix avatar x-coder avatar chippy51 avatar vurv78 avatar

Stargazers

OPGman avatar viral32111 avatar Andre avatar  avatar Philipp Grosenick avatar  avatar St. John Johnson avatar

Watchers

James Cloos avatar  avatar  avatar  avatar  avatar  avatar  avatar

pewpew's Issues

Wires reset after using the Advanced Duplicator

Wired PewPew weapons (as in having Fire and/or Reload wired) will lose their their wiring after copying them with the Advanced Duplicator (1 and 2). This happens consitently. Not sure wether its a bug with pewpew or something both duplicators share.

No error message is produced, neither when copying nor when pasting.

First mentioned in #9

entity:pewCoreMaxHealth() returns nil

The helper function pewCoreMaxHealth() in ./lua/entities/gmod_wire_expression2/core/custom/pewpewfunctions.lua is returning nil instead of a numeric value when run.

CLuaEmitter fix caused some effects to bug

[PewPew V2] lua/effects/v2splode/init.lua:83: Tried to use invalid object (type CLuaEmitter) (Object was NULL or not of the right type)
1. Add - [C]:-1
2. unknown - lua/effects/v2splode/init.lua:83

^ was reported, but there is probably more.

Shield effect missing and producing lua errors

Interaction with the shield from cap works now, but is missing visual effects and is creating lua errors (see end of post).

Using the steam workshop version update 3.Juli (seems to be the 137d288 commit) on Windows 64bit with newest cap.

I also posted on the workshop. Just leave a reply with your preference so I know where to post in the future.

P.S.: On an unrelated note: Using the wiremod to wire fire or reload is not saved with the AdvancedDuplicator. Not sure if its an issue with pewpew or the duplicator. Would be quite awesome if that could be fixed.

Error Output:

[PewPew V2] addons/cap/lua/entities/shield/init.lua:401: attempt to index local 'e' (a nil value)

  1. HitEffect - addons/cap/lua/entities/shield/init.lua:401
    1. Hit - addons/cap/lua/entities/shield/init.lua:463
    2. Fire - lua/pewpewbullets/official_weapons/lasers/beamlaser.lua:44
      1. FireBullet - lua/entities/pewpew_base_cannon/init.lua:260
      2. InputChange - lua/entities/pewpew_base_cannon/init.lua:363
      3. func - lua/entities/pewpew_base_cannon/init.lua:400
      4. FireImpulse - lua/includes/modules/numpad.lua:86
        1. Activate - lua/includes/modules/numpad.lua:114
        2. unknown - gamemodes/sandbox/gamemode/player.lua:206

[PewPew V2] addons/cap/lua/entities/shield/init.lua:401: attempt to index local 'e' (a nil value)

  1. HitEffect - addons/cap/lua/entities/shield/init.lua:401
    1. Hit - addons/cap/lua/entities/shield/init.lua:463
    2. Fire - lua/pewpewbullets/official_weapons/lasers/beamlaser.lua:44
      1. FireBullet - lua/entities/pewpew_base_cannon/init.lua:260
      2. unknown - lua/entities/pewpew_base_cannon/init.lua:314

I created an E2 Extension.

I made this extension because it's annoying that wires do not get preserved through duping.
This extension allows player to spawn weapons through e2. Effectively making pewpew turrets and systems. This extension has all of the safety features such as pewpew count and admin/superadmin checks.

http://pastebin.com/7Zqw4K2C

Please consider adding it...

CAP Shields With Big Energy Weapons

I have create new ships or my server, and one of this ship is the Hat'ak, so his shoots had a size/damages of 30 and when I shoot on the shield, the Ressource node or E2PZ is automaticly destroy. I have comment the stargateshield plugins file, but I don't know very much the pewpew and I don't know how can I block this damages ?

Thank you and Sorry for my English

Issue with PewPew on Linux

Hello,

I wanted to tell you that PewPew has some issues on Linux beacuse it is case sensitive on file and folder names.

You need need to rename all folder names to lower case, because otherwise file.Find("pewpewplugins/server/*.lua", "LUA") would not find the folder "PewPewPlugins" with mixed casing.

Pewpew Stargate Carter Addon Pack Bug

Maybe everyone know that the Carter Addon Pack is more realistic with Spacebuild and Pewpew!
With pewpew i can destroy spaceships,..etc.!
But if i put shield from CAP and if i shoot to the ground or walls with CAP weapons the shield energy drain like if i shoot to the shield.
If i remove pewpew then everything is fine.(The pewpew causing this bug)
I think it may be some interference in the source code.
Please Fix this shield bug. We wanna play CAP with PewPew!
Without pewpew i cant destroy enemies ships and other things.

ShouldDoBlastDamage ignores return false.

I'm running the following code in a hook:

hook.Add("PewPew_ShouldDoBlastDamage", "PPBlastDMGHook", function(hookSelf, TargetEntity, pos, rad, dam)
    if TargetEntity.SC_CoreEnt != nil then
        local dtd = (dam)/2
        local damage2 = {EM=0, EXP=dtd, KIN=0, THERM=dtd}

            if TargetEntity:IsValid() and TargetEntity:GetClass() == "shield" then  --Do some shield damage

                TargetEntity.Parent.Strength = math.Clamp(TargetEntity.Parent.Strength-((((damage/2)/SC_SG_Shield_MaxDamage())*100)/(TargetEntity.Parent.StrengthMultiplier[1]*TargetEntity.Parent.StrengthConfigMultiplier)),0,100)
                TargetEntity:Hit(TargetEntity,src,1.0) --So it still plays the shields hit effect

            else
        SC_ApplyDamage(TargetEntity, damage2)
        return false
    end
end)

However pewpew explosives are still doing normal damage and removing parts of people's contraptions AND calling the SC_ApplyDamage function at the same time. Looking through the code this should only be stopping the actual blast damage.

Dupe Errors

Hey there,

I've been using pewpew for some time now and due to a recent update or something else (git version), the pewpew weapons don't seem to work anymore after being copied and pasted with the Advanced Duplicator 2.
If you use E on them to get there infos the server errors out the following:

[ERROR] addons/pewpew/lua/entities/pewpew_base_cannon/init.lua:448: attempt to index field 'Bullet' (a nil value)

  1. unknown - addons/pewpew/lua/entities/pewpew_base_cannon/init.lua:448

Timer Failed! [Simple][@addons/pewpew/lua/entities/pewpew_base_cannon/init.lua (line 446)]

I was able to reproduce this by setting up a fresh server using steamcmd and only installing SB3 (for CAF Support), Advanced Duplicator 2 and PewPew.

I've tried googling before but no one seems to have the same problem/didn't post it yet.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.