[BETA] DEAD MARINE

Projects that alter game functions but do not include new maps belong here.
Forum rules
The Projects forums are ONLY for YOUR PROJECTS! If you are asking questions about a project, either find that project's thread, or start a thread in the General section instead.

Got a cool project idea but nothing else? Put it in the project ideas thread instead!

Projects for any Doom-based engine (especially 3DGE) are perfectly acceptable here too.

Please read the full rules for more details.

Re: [BETA] DEAD MARINE

Postby Mere_Duke » Mon Dec 24, 2018 6:36 pm

Gorec wrote:bug-if u take shotgun from shotgun guy then already placed shot wont give u 8 shells

It was hard to understand but I managed to :) You mean that first shotgun pickup (the very first time when you pick it) gives you 8 shells, and every another gives only 4.
That's pretty simple:
Code: Select allExpand view
   Pickup:
      tnt1 a 0 a_jumpifinventory("XtremeShotgun",1,"AlreadyPickup")
      tnt1 a 0 a_jumpifinventory("shell",0,"AlreadyPickup+3")
      tnt1 a 0
         {
         a_playsound("weapons/shotgun/pickup");
         a_giveinventory("XtremeShotgun",1,AAPTR_PLAYER1);
         }
      stop
   AlreadyPickup:
      tnt1 a 0
      tnt1 a 0 a_jumpifinventory("shell",0,"+2")
      tnt1 a 0 { a_playsound("items/shell"); a_giveinventory("XtremeShell",4); }
      stop
      tnt1 a 0
      fail
      }

If you want to next pickups give you also 8 shells, change
Code: Select allExpand view
      tnt1 a 0 { a_playsound("items/shell"); a_giveinventory("XtremeShell",4); }

to
Code: Select allExpand view
      tnt1 a 0 { a_playsound("items/shell"); a_giveinventory("XtremeShell",8); }
User avatar
Mere_Duke
Code Inspector
 
Joined: 28 Aug 2016
Location: Russia

Re: [BETA] DEAD MARINE

Postby Mere_Duke » Mon Dec 24, 2018 6:43 pm

Or, to more Vanilla-like behavior, in ACTORS/WEAPONS/Shotgun.dec
Find ACTOR XtremeShotgun : Shotgun and add there a property:
Code: Select allExpand view
   Weapon.AmmoGive 4

Like that
Code: Select allExpand view
...
ACTOR XtremeShotgun : Shotgun
{
   weapon.bobstyle smooth
   weapon.upsound "weapons/shotgun/draw"
   inventory.pickupsound "misc/null"
   decal bulletchip
   Weapon.AmmoGive 4
   States
   {
...
User avatar
Mere_Duke
Code Inspector
 
Joined: 28 Aug 2016
Location: Russia

Re: [BETA] DEAD MARINE

Postby Zenon » Mon Feb 18, 2019 5:57 pm

Oof
I found a bug

Shouldn't that blood be blue?
User avatar
Zenon
Mostly Confused
 
Joined: 20 Apr 2006
Location: New Zealand
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: [BETA] DEAD MARINE

Postby Sytruan » Mon May 20, 2019 1:44 pm

Apologies for my first post being me bringing a thread back to life.

After playing this mod and enjoying it thoroughly, I found myself attached to the surprisingly beautiful animations on the liquid flats, and opened it up to spend some time exploring the code and trying to separate that code so I could turn it into an auto-load mod for personal use. However, along the way, I found that the lava textures do not work as intended and sought to fix them. After some digging, it seems that one of the patches in the texture definitions was set to Add, but in the file itself, it was all fully capitalized, preventing it from being properly recognized. On top of that, the lava textures themselves were named improperly, keeping them from overwriting the vanilla liquid flats.

Code changes:
https://pastebin.com/PqikDAXs - TEXTURES.lava
https://pastebin.com/NaKqqn4w - ANIMDEFS


Unfixed: https://i.imgur.com/EVuarRT.gifv
Fixed: https://i.imgur.com/0D4C1Zs.gifv


Download:
https://www.dropbox.com/s/zzreqf0e28i68 ... avafix.pk3
User avatar
Sytruan
 
Joined: 01 Nov 2017
Location: Utah

Previous

Return to Gameplay Mods

Who is online

Users browsing this forum: Boomchenski, Carrotear, Martinoz, ZepGuy and 16 guests