Skip to content
Snippets Groups Projects
  1. Jan 19, 2017
  2. Jan 16, 2017
  3. Jan 15, 2017
  4. Jan 14, 2017
  5. Jan 13, 2017
    • Monster Iestyn's avatar
      Merge branch 'lua-additions' into 'master' · 47e053c8
      Monster Iestyn authored
      Lua additions
      
      Thought I'd may as well make a merge request so I can remind people of all the various Lua-related changes here (and because it's about time some of them got in):
      
      * Added `P_PointOnLineSide(x, y, line)`. Allows you to quickly determine which side of a line faces the point. *line* can be a real line_t or a custom defined line (just like with P_ClosestPointOnLine).
      * Added seg_t and node_t support to Lua (note: these are disabled for now, due to complications with OpenGL that we all know something of by now. Bit of a shame really :( ) - of note is node.children and node.bbox:
       * node.children[] is an array that takes 0 or 1 as indexes (or "right" and "left", alternatively)
       * node.bbox(child,bboxcoord) is a two-arg function: child can be 0 or 1 (or "right" and "left", alternatively), bbox coord can be 0,1,2 or 3 (or "top", "bottom", "left" and "right", alternatively)
       * aside from the above, segs[] and nodes[] store the segs/nodes of the current map; segs.iterate and nodes.iterate iterates through segs/nodes
       * NF_SUBSECTOR is also available for usage with node.children
      * You can now get the palette indexes (i.e. colormap[n]) of colormap userdata from `v.getColormap`, where n is a palette index number between 0 and 255. Useful for finding out which palette colors turned into what, if they changed at all
      * ffloor_t userdata can now save to and be read from $$$.sav in netgames properly; this means custom mobj/player variables and NetVars can both send/recieve them directly if you wanted
      * **IMPORTANT** Blockmap search library! (with a new file: lua_blockmaplib.c)
       * Format of iteration function: `searchBlockmap(searchtype, function, mobj, [x1, x2, y1, y2])`. Returns true if search was uninteruppted, false if the iteration function returned true at any point
       * *searchtype* can be either "objects" or "lines", for looking for mobj_t and line_t stuff in the blockmap respectively
       * *function* is a function of your choice to iterate with: (sorry I can't get the next two bullets to be one indent further to the side)
         - format of function needed: `funcname(mobj, foundmobj)` or `funcname(mobj, foundline)` (for searching for objects and lines, respectively)
         - return value of *function* affects searching somewhat: nil doesn't change searching, false ends searching in a block (but doesn't stop searching, it just moves onto the next), and true ends the full search. Both returning true or false ultimately makes `searchBlockmap` return false.
       * *mobj* is the reference mobj that you're checking around (if you don't supply x/y ranges to search in, it defaults to checking within the mobj's radius in both axes). If *mobj* was removed mid-search the search stops and `searchBlockmap` returns false
       * (optional) *x1, x2, y1, y2* are coordinates on the map to search the blockmap between, if given
      
      See merge request !54
      47e053c8
    • LJ Sonic's avatar
      Oh? a cookie on the ground · b8b72008
      LJ Sonic authored
      *takes the cookie*
      b8b72008
    • Alam Ed Arias's avatar
      Merge branch 'master' into lua-additions · 94025ae9
      Alam Ed Arias authored
      94025ae9
    • LJ Sonic's avatar
      Why does DD exist · 490778cd
      LJ Sonic authored
      490778cd
    • LJ Sonic's avatar
    • LJ Sonic's avatar
      Merge branch 'master' into netcode-shit · 7cca60a0
      LJ Sonic authored
      7cca60a0
    • LJ Sonic's avatar
      Fixed a warning · 005485cf
      LJ Sonic authored
      005485cf
    • LJ Sonic's avatar
      -Added a timeout for game state downloading to prevent definitive join freezes... · e9cb6d03
      LJ Sonic authored
      -Added a timeout for game state downloading to prevent definitive join freezes in some cases. The timeout has a minimum value of "jointimeout" and gets higher as the game state grows in size
      -If the server tries to kick a joiner who is downloading the game state, they will get a timeout instead, because a regular kick would only happen once the game state has been downloaded
      -Added a timeout for player ticcmd packets, again to prevent freezes to happen in some cases
      -File/game state downloading is now faster, the speed is controlled by the "downloadspeed" cvar, in packets per tic
      -The reason is now properly shown when the server refuses connection
      -Changed the default values of "nettimeout" to 10 seconds (previously 15) and "maxsend" to 4 MB (previously 1)
      -Added a "noticedownload" cvar that displays a message in the server console when someone is downloading a file
      e9cb6d03
  6. Jan 12, 2017
    • Alam Ed Arias's avatar
      Merge branch 'cmake_nasm' into 'master' · e7a1c813
      Alam Ed Arias authored
      CMake: Fix nasm Linux builds
      
      When compiling under Linux with CMake and nasm/yasm enabled, the operation would fail during linking with undefined symbols related to the tmap files.
      This commit adds support for passing flags to the assembler and passes ```-DLINUX``` in order to compile.
      
      After this change, binaries are successfully compiled with either nasm or yasm on Linux systems.
      Tested on Ubuntu.
      
      See merge request !153
      e7a1c813
    • Monster Iestyn's avatar
      Merge pull request #156 from frozenLake/patch-1 · 6ad64347
      Monster Iestyn authored
      Added transmaps to non modifying lump list.
      6ad64347
  7. Jan 11, 2017
  8. Jan 09, 2017
  9. Jan 08, 2017
    • Monster Iestyn's avatar
      Merge branch 'vada_flickies' into 'master' · 3d07915b
      Monster Iestyn authored
      Hardcoded VAda Flickies
      
      Many thanks to MI for his help, even if he has sinful opinions on what the collection of creatures should be called. ;P
      
      * Flickies are now handled via A_FlickySpawn instead of hardcoded in P_KillMobj, so there can be mobjtypes with MF_ENEMY which don't create flickies, or other mechanisms which can much easier.
      * Added map header "FlickyList" (aka "AnimalList") parameter, which can either be set to:
          * A species (eg: "Rabbit" or "Bluebird", amongst 17 currently supported types in dehacked.c table FLICKYTYPES - including the seed from Sonic CD, which isn't limited to 'soniccd on' in the console now)
          * Any valid mobjtype that isn't MT_NULL (eg: "MT_FLICKY_GHOST")
          * A comma-seperated list of either of the above, up to 64 entries long (eg: "Cow,MT_FLICKY_SPIDER,Chicken")
          * "All" - sets behind-the-scenes stuff to use every 'normal' type of flicky in FLICKYTYPES (a distinction which can be utilised to hide secret level flickies where they wouldn't be appropriate for the main game)
          * "Demo" - sets behind-the-scenes stuff to use the five flickies closest to the species used in the game's long history.
          * "None" - prevents any flickies from spawning.
      
      "Demo" is functionally the default value if you don't include a FlickyList parameter in the header at all.
      
      Of note, a bunch of functions are now created:
      * A_FlickySpawn - spawns flicky.
      * A_FlickyAim - aims for area near target, but not directly on them - turns around when hitting wall
      * A_FlickyFly -  flies/swims around target (calls A_FlickyAim)
      * A_FlickySoar - hacky alternate fly (calls A_FlickyAim)
      * A_FlickyCoast - slowing down before going off again
      * A_FlickyHop - fracunit-scale precision for A_BunnyHop
      * A_FlickyFlounder - A_FlickyHop with randomisation
      * A_FlickyCheck - State-setter for falling, or being on-ground
      * A_FlickyHeightCheck - State-setter for falling, or being below a certain height relative to target
      * A_FlickyFlutter - A_FlickyCheck, but with a slow fall/movement (calls A_FlickyCheck and A_FlickyAim)
      
      I don't need to enumerate the object types and states that have been added, do I?
      
      Oh yeah, I also made it so get_mobjtype's failure value was MT_NULL and prohibited SOC from editing the properties of it to compensate.
      
      IN ADDITION: Killed "soniccd" console command, since it made things more complicated and honestly being able to specify Sonic CD seeds in the level header is a better option.
      
      See merge request !60
      3d07915b
    • Monster Iestyn's avatar
      Merge branch 'public_next' · 166c6746
      Monster Iestyn authored
      166c6746
    • Monster Iestyn's avatar
      Merge branch 'next' into public_next · c737cff7
      Monster Iestyn authored
      c737cff7
Loading