+ Reply to Thread
Page 2 of 79 FirstFirst 12341252 ... LastLast
Results 11 to 20 of 788

Thread: PewPew : new GCombat

  1. #11
    Wirererer Free Fall's Avatar
    Join Date
    Dec 2007
    Location
    Got digitalized and now lives in his PC's RAM
    Posts
    349

    Default Re: PewPew : new GCombat

    PewPew is a good name for this ^_^

    Actually, I liked GCombat a lot, that is, when it was actually working, but this looks really promising. So I took myself the liberty and looked a bit at the code, and changed one or two things... The patch for that is attached. The changes are:

    entities/pewpew_base_cannon/cl_init.lua
    - Added the "Wire_Render(self.Entity)" line, so it would actually show wires connected to a cannon

    entities/pewpew_base_cannon/init.lua
    - Added dupe support (pretty simple)

    entities/pewpew_base_cannon/shared.lua
    - Changed used entity base from base_gmodentity to base_wire_entity. Provides dupe support for the connected wires

    weapons/gmod_tool/stools/pewpew.lua
    - Added an if-check, so that left-click spawn wouldn't weld cannons to players or the world (I considered world-welding somewhat annoying, when you just want to spawn one and weld it yourself later)

    I guess I will also try to make some bullets. Four bullets just aren't enough

    EDIT: Attached another Patch file, adding a few things from SVN Rev 143. What I added was a possiblity to also create ClientSide override functions, that is, CLThinkOverride and CLDrawOverride, to specify bullet behaviour even more. One might want to look into the Nebenwerfer entity I made as a proof-of-concept entity.
    Attached Files Attached Files
    Last edited by Free Fall; 02-12-2010 at 01:25 PM.
    Needz moar Lua

  2. #12
    No u Divran's Avatar
    Join Date
    Jul 2008
    Location
    Sweden
    Posts
    4,582

    Default Re: PewPew : new GCombat

    Thanks! But one thing I noticed right away was the way you saved the bullet. You are saving the entire table to the dupe file. This means people who know how to edit dupe files can simply type "damage = 9999999999" and ruin the fun. My idea was to save only the name of the bullet and then search for it on the server. Thus no cheating. I'll just edit that bit..

    Edit:
    Added wire_render
    Changed to base_wire_entity
    Made it not weld to players and the world.
    Added (and edited) dupe support.


    By the way, free fall, if you type
    Code:
    lua_run pewpew:LoadBullets()
    you don't need to reload the map after every time you change the code in one of the bullet lua files. You'll only need to update the cannon with the tool

    Edit:
    Changed both FireSound and ExplosionSound into tables, and if there is more than 1 string in the table it will randomize it.
    Last edited by Divran; 02-12-2010 at 09:21 AM.
    SVN Tutorial
    My SVN:
    Code:
    http://divranspack.googlecode.com/svn/trunk/%20divranspack/
    Get dropbox and get 250 MB extra space: Dropbox

  3. #13
    ส็็็็็็็็็็็็็็็็ส็็ ็็็็็ Dav1d's Avatar
    Join Date
    May 2009
    Posts
    1,118

    Default Re: PewPew : new GCombat

    Only thing I hated about gcombat was that it was all stupid weapons.
    Laser cannons, plasma beams etc. I just want a simple 200mm heavy machine gun..

  4. #14
    No u Divran's Avatar
    Join Date
    Jul 2008
    Location
    Sweden
    Posts
    4,582

    Default Re: PewPew : new GCombat

    Quote Originally Posted by Dav1d View Post
    Only thing I hated about gcombat was that it was all stupid weapons.
    Laser cannons, plasma beams etc. I just want a simple 200mm heavy machine gun..
    200mm machinegun? Lol.

    Well go ahead and make one
    SVN Tutorial
    My SVN:
    Code:
    http://divranspack.googlecode.com/svn/trunk/%20divranspack/
    Get dropbox and get 250 MB extra space: Dropbox

  5. #15
    No u Divran's Avatar
    Join Date
    Jul 2008
    Location
    Sweden
    Posts
    4,582

    Default Re: PewPew : new GCombat

    SVN UPDATE.
    Added all the stuff Free Fall said.
    Added Ammo Support (Yay for realism)
    Added a new weapon: Basic Missile
    Changed FireSound and ExplosionSound into tables so that you can have multiple sounds (it randomizes one if there are many)
    SVN Tutorial
    My SVN:
    Code:
    http://divranspack.googlecode.com/svn/trunk/%20divranspack/
    Get dropbox and get 250 MB extra space: Dropbox

  6. #16
    Wire Sofaking Ehmmett's Avatar
    Join Date
    Sep 2009
    Posts
    595

    Default Re: PewPew : new GCombat

    my AC 130 has hope now!
    Great work Divran and Free Fall.

  7. #17
    Wire Sofaking N00bDud3's Avatar
    Join Date
    Jul 2009
    Location
    Error: Unknown Location
    Posts
    1,252

    Default Re: PewPew : new GCombat

    This is awesome, I'll have to download it later, and make some bullet types for it.



  8. #18
    No u Divran's Avatar
    Join Date
    Jul 2008
    Location
    Sweden
    Posts
    4,582

    Default Re: PewPew : new GCombat

    Hey Free Fall, I need a little help. For some reason, players who join my listen server can't use the tool. At all. He says the error he gets is
    Code:
    [Rid HUD Draw 3D] ControlPanelBuildFunction Error:
    I have NO IDEA how to fix it.
    SVN Tutorial
    My SVN:
    Code:
    http://divranspack.googlecode.com/svn/trunk/%20divranspack/
    Get dropbox and get 250 MB extra space: Dropbox

  9. #19
    Wire Amateur rogy56's Avatar
    Join Date
    Jul 2009
    Posts
    38

    Default Re: PewPew : new GCombat

    Will you add guided missiles?(I'm kinda crazy for guided missiles^_^)

  10. #20
    Wire Sofaking Unsmart's Avatar
    Join Date
    Dec 2008
    Location
    Belgium OR BANland
    Posts
    1,965

    Default Re: PewPew : new GCombat

    Quote Originally Posted by rogy56 View Post
    Will you add guided missiles?(I'm kinda crazy for guided missiles^_^)
    That ruins the fun of making it yourself, Lua coded guided missiles are CHEAP
    New server IP: 89.238.160.17:27018
    Hologram contraptions 1 Holo contraptions 2 EGP stuff Holo minigun Holo javelin rocket launcher
    Unsmart: I doubt the intelligence of some people.
    Drunkie: Nobody could have said that any better than Unsmart.

    Unsmart: Solece, I totally did your mom yesterday
    Solece: Who hasnt

    Divran: there are more retarded people than there are clever people in this world

+ Reply to Thread
Page 2 of 79 FirstFirst 12341252 ... LastLast

LinkBacks (?)

  1. 11-02-2010, 07:35 PM
  2. 07-11-2010, 10:44 PM
  3. 06-14-2010, 01:46 AM
  4. 06-13-2010, 05:14 PM
  5. 06-12-2010, 07:23 AM
  6. 06-12-2010, 03:08 AM
  7. 06-09-2010, 02:00 PM
  8. 06-08-2010, 11:37 PM
  9. 06-07-2010, 09:31 AM
  10. 03-12-2010, 07:37 AM
  11. 03-07-2010, 12:29 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots