Tranquility (On Hold, 2017-08-12)

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.

Tranquility (On Hold, 2017-08-12)

Postby Caligari87 » Sun Sep 07, 2014 1:15 pm

Tranquility

Description
A tactical realism mod for Doom, inspired by Hideous Destructor, Receiver, Arma, and other games which don’t forgive.
Spoiler: "old video"


News
2017-07-04: Trying to add a shotgun revealed several underlying problems in the code which I'm unable to resolve or get help on right now, probably due to the fact that ZScript is still new enough that very few people know how to troubleshoot it. I've gotten extremely frustrated and have little desire to bang my head against a wall any longer, so I'm going to shelve this and put it on hiatus for a while. I'll probably come back to it in a few months with yet another refactor when my mind is clear and I'm not mad at the code anymore. Maybe by then I'll have some new ideas to bring to the table, more than just a Receiver clone.

Spoiler: "Previous News"


Instructions
You start with an empty 9mm pistol. You may hold Altfire, Reload, or Zoom to access additional weapon interaction contexts. For example, holding Reload then tapping Altfire will select the next magazine in your inventory (provided there is not already one in the weapon). Conversely, holding Altfire then holding Reload will pull the slide, ejecting any round in the chamber. Holding Zoom will tighten your sight picture and cause you to do a slower, more accurate trigger pull. You may wish to perform drills before entering combat.

You can see the current pool of "spare rounds" as Doom's default "Clip" ammotype. You cannot use these bullets directly in the gun, but must reload your magazines manually. There is a secondary "weapon" on slot 2 where you can reload mags that aren't in your gun, using Fire to insert a round, AltFire to remove a round, and Reload to grab another mag. Again, drilling this skill is recommended and should be performed far from combat situations.

Your (somewhat slower than normal) movement speed is directly affected by your Stamina, which decreases with running and jumping. Your maximum stamina is capped by your current health. As either decreases, you will gradually get slower. Healthpacks will restore you as in normal Doom gameplay. Basically, try not to get shot.

Download
Alpha 2017.07.04 (.zip)
Alpha 2017.06.06 (.zip)
Alpha 2017.05.29 (.zip)
Last edited by Caligari87 on Sat Aug 12, 2017 1:16 pm, edited 30 times in total.
User avatar
Caligari87
I'm just here for the community
User Accounts Assistant
 
Joined: 26 Feb 2004
Location: Salt Lake City, Utah, USA
Discord: Caligari87#3089

Re: [WIP] Shattered Tranquility - An "Authentic" Weapons Mod

Postby Josh771 » Sun Sep 07, 2014 5:48 pm

I've recently been messing around with wildweasel's Terrorists! by adding authentic bullet speeds to the different ammunition types (makes the thing so difficult it's nearly unplayable). This kind of attention to detail is something I can definitely appreciate; I'll download this, give it a shot, and let you know anything that comes to mind.

EDIT: Just a minor issue here -- the filename is "Tranqulity.pk3," not "Tranquility.pk3." It took me a few confused tries before I realized why it wasn't loading (I use batch files like a stubborn fool, hehehe).

EDIT 2: Alright, so I gave this a quick run-around, and I love how bullets go exactly where you point. That being said (and I know this is WIP), it's currently too easy to land impossible shots -- e.g. sprinting a semicircle through a room and picking off 4 or 5 targets one after another. I think the crosshair sway severity should be affected by the player's velocity, perhaps.

Of course, the player still moves like a race car and the guns don't reload, so... heh, I know, I know, it's WIP. :P Still, I like the way you're calculating damages based on muzzle velocity. I assume you're also calculating accurate speeds for the FastProjectiles?
User avatar
Josh771
formerly known as SidDoyle
 
Joined: 03 Apr 2013
Location: Elsewhere.
Discord: josh771#7771

Re: [WIP] Shattered Tranquility - An "Authentic" Weapons Mod

Postby Freaklore1 » Sun Sep 07, 2014 6:29 pm

i get an error when starting the mod.

script error, ''tranquility.pk3:weapons/15000.txt'' line 29: unknown identifier 'SPF_INTERPOLATE'.

script error, ''tranquility.pk3:weapons/15000.txt'' line 30:expected ')', got ','.
User avatar
Freaklore1
 
Joined: 19 Mar 2014

Re: [WIP] Shattered Tranquility - An "Authentic" Weapons Mod

Postby Hellser » Sun Sep 07, 2014 6:39 pm

I can see into your folders, Doctor! I see GZDoom, I see this mod.. I see.. OUTDATEDNESS!
User avatar
Hellser
Remember Citadel
Global Moderator
 
Joined: 25 Jun 2006
Location: Citadel Station
Discord: Hellser#8156
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: Yes (Using Development/Testing Version)
Graphics Processor: ATI/AMD with Vulkan Support

Re: [WIP] Shattered Tranquility - An "Authentic" Weapons Mod

Postby Matt » Sun Sep 07, 2014 7:04 pm

I've replaced the Pistol with a right-handed version
boo hiss rating 0/0
(that in mind, if you're already willing to increase file size to replace those sprites you might as well add pistol zombie sprites for balance purposes.)

I see what you're trying to do with the wobbling aim but it seems terribly excessive (and nauseating), especially with no way to control it. Maybe reduce it when the player hasn't turned in a few tics?

Just a thought: maybe use uservars to tie bullet speed to damage somehow? (Or would the ranges at which that would make a difference not be worth the bother and increased performance demands (there being basically no range in TUD in which a pistol bullet would fail to hit a target where a rifle bullet would have)?)
User avatar
Matt
Putting the XD into *xdeath since 2007
 
Joined: 04 Jan 2004
Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia

Re: [WIP] Shattered Tranquility - An "Authentic" Weapons Mod

Postby Freaklore1 » Sun Sep 07, 2014 7:14 pm

Hellser wrote:I can see into your folders, Doctor! I see GZDoom, I see this mod.. I see.. OUTDATEDNESS!


Thank you for your help,i can sometime be so distracted i forget certain things,would you like some jelly babies ?
User avatar
Freaklore1
 
Joined: 19 Mar 2014

Re: [WIP] Shattered Tranquility - An "Authentic" Weapons Mod

Postby Caligari87 » Sun Sep 07, 2014 9:17 pm

Thanks for the feedback! Yeah, I know it's a little too easy to land shots, but I will be scaling the sway by the player's velocity for sure. As-is, I'm not satisfied with it, because it just traces randomly everywhere, even turning you completely around. I'd rather some way to have it smoothly stay within a certain average area of the player's general direction, but I'm unsure of the math involved. There's not a lot of formulas out there for weapon sway.

I actually have not converted the projectile velocity to match the muzzle velocity though. Really as far as the ranges in Doom, bullets are instantaneous. That said, it's not completely off the table, just not high priority. Same with pistol zombies, which I was actually considering as well, just after everything else is done.

I'll try to keep working on it and maybe get another version updated this week (busy with school and all). If there's any other feedback or suggestions, feel free to leave them!

8-)
User avatar
Caligari87
I'm just here for the community
User Accounts Assistant
 
Joined: 26 Feb 2004
Location: Salt Lake City, Utah, USA
Discord: Caligari87#3089

Re: [WIP] Shattered Tranquility - An "Authentic" Weapons Mod

Postby JimmyJ » Sun Sep 07, 2014 9:35 pm

Curious question, are you planning to implement reloading or keep it classic Doom style? Obviously it's not in now, but IDK if that's because it's early or you don't plan to.
User avatar
JimmyJ
AKA Catweasel
 
Joined: 09 Nov 2009

Re: [WIP] Shattered Tranquility - An "Authentic" Weapons Mod

Postby Caligari87 » Sun Sep 07, 2014 10:05 pm

I'm considering it, not quite sure yet. My spriting skill is just about nil, so I wouldn't be able to come up with much.

8-)
User avatar
Caligari87
I'm just here for the community
User Accounts Assistant
 
Joined: 26 Feb 2004
Location: Salt Lake City, Utah, USA
Discord: Caligari87#3089

Re: [WIP] Shattered Tranquility - An "Authentic" Weapons Mod

Postby Josh771 » Sun Sep 07, 2014 11:18 pm

Caligari_87 wrote:Thanks for the feedback! Yeah, I know it's a little too easy to land shots, but I will be scaling the sway by the player's velocity for sure. As-is, I'm not satisfied with it, because it just traces randomly everywhere, even turning you completely around. I'd rather some way to have it smoothly stay within a certain average area of the player's general direction, but I'm unsure of the math involved. There's not a lot of formulas out there for weapon sway.


Check out my Drunk Doom jokewad. I used trig to make the player camera sway in a perfect circle, which means you keep your facing -- you just get really disoriented and can't hit the side of a barn. Perhaps you can find a way to use trigonometry to give your random sway bounds?

Caligari_87 wrote:I actually have not converted the projectile velocity to match the muzzle velocity though. Really as far as the ranges in Doom, bullets are instantaneous. That said, it's not completely off the table, just not high priority. Same with pistol zombies, which I was actually considering as well, just after everything else is done.


Actually, you'd be surprised. Converting actual bullet speeds to Doom map units can fall anywhere between 250-500, in my experience. That's enough to create some small delays on larger maps -- fun, fun for a sniper, hehehe. It would be neat if we could somehow simulate gravity on the bullet as well, since FastProjectiles do not receive gravity IIRC.
User avatar
Josh771
formerly known as SidDoyle
 
Joined: 03 Apr 2013
Location: Elsewhere.
Discord: josh771#7771

Re: [WIP] Shattered Tranquility - An "Authentic" Weapons Mod

Postby rollingcrow » Sun Sep 07, 2014 11:30 pm

SidDoyle wrote:It would be neat if we could somehow simulate gravity on the bullet as well, since FastProjectiles do not receive gravity IIRC.

ThrustThingZ in the spawn state does the trick:
Code: Select allExpand view
Spawn:
   PUFF Z 1 NoDelay ThrustThingZ(0, 2, 1, 1)
   Loop

Changing the duration or reducing ThrustThingZ's force will make it fall slower.
User avatar
rollingcrow
 
Joined: 02 Mar 2010
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: [WIP] Shattered Tranquility - An "Authentic" Weapons Mod

Postby Slax » Sun Sep 07, 2014 11:51 pm

HURK COFF .308 COFFA HUFF HUFF COFF
:ninja:
User avatar
Slax
Saucy.
... in loving memory ...
 
Joined: 19 Oct 2010
Location: Window office.

Re: [WIP] Shattered Tranquility - An "Authentic" Weapons Mod

Postby Matt » Mon Sep 08, 2014 12:56 am

ThrustThingZ works, though you can also add bullet tumbling with a single A_ChangeVelocity call:
Code: Select allExpand view
A_ChangeVelocity(frandom(-0.9,0.9),frandom(-0.9,0.9),-1)


Based on my calculations in HD, a pistol bullet should have a speed of around 350-400 while a rifle bullet should be over 1000.

For a pistol bullet at muzzle speed 350 and 100% gravity (z-velocity -1 every tic), if you shoot from the northeastmost corner of Map15 southwards into the southernmost wall at zombie chest height (or possibly a bit lower - in HD you basically shoot out of your eyes so I was aiming down slightly), your shot may end up falling low enough to end up impacting somewhere inside the crack in the ground. Rifle, you'd scarcely notice a thing.

It helps to set up a dummy trail actor and call it with MissileType for testing purposes only - at the distances where there's any noticeable difference looking for bullet holes can be a real chore and it's hard to know what's really going on without seeing the entire arc.
User avatar
Matt
Putting the XD into *xdeath since 2007
 
Joined: 04 Jan 2004
Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia

Re: [WIP] Shattered Tranquility - An "Authentic" Weapons Mod

Postby Caligari87 » Mon Sep 08, 2014 8:42 am

Excellent information, thanks! Bullet drop and speed will definitely be addressed next time I work on an update, since they're probably pretty easy fixes.

8-)
User avatar
Caligari87
I'm just here for the community
User Accounts Assistant
 
Joined: 26 Feb 2004
Location: Salt Lake City, Utah, USA
Discord: Caligari87#3089

Re: [WIP] Shattered Tranquility - An "Authentic" Weapons Mod

Postby Hellser » Mon Sep 08, 2014 8:57 am

I enjoyed what you got going on, Cali. I might use a similar system in the future for my mods. In the mean time - the swaying did get annoying for those precise shots - and the shotgun felt oh so enjoyable being that accurate.
User avatar
Hellser
Remember Citadel
Global Moderator
 
Joined: 25 Jun 2006
Location: Citadel Station
Discord: Hellser#8156
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: Yes (Using Development/Testing Version)
Graphics Processor: ATI/AMD with Vulkan Support

Next

Return to Gameplay Mods

Who is online

Users browsing this forum: No registered users and 11 guests