Custom weapon replications in Heretic, Hexen, & Strife

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Ultimate Freedoomer
Posts: 210
Joined: Fri Jan 30, 2015 10:32 pm
Location: Pittman Center

Custom weapon replications in Heretic, Hexen, & Strife

Post by Ultimate Freedoomer »

How do I replicate the restricted weapon functions of Heretic, Hexen, & Strife via non-restricted weapon attack functions? I ask because I'm working on a custom weapon enhancement packs for those 3 games (no new graphics, just making the weapon function code more modding-friendly & - in Strife's case - having the firemode toggle be a secondary fire instead of a sister weapon) & the only thing I could find in regards to making these 3 IWADS' weapons more modding friendly was that "modding the Sigil made easy"thread from 2013. Also, I'd like information on doing this in both ZSCRIPT & DECORATE.
User avatar
Arctangent
Posts: 1235
Joined: Thu Nov 06, 2014 1:53 pm

Re: Custom weapon replications in Heretic, Hexen, & Strife

Post by Arctangent »

Ultimate Freedoomer wrote:DECORATE.
Don't bother, to be honest.
Ultimate Freedoomer wrote:ZSCRIPT
Crack open gzdoom.pk3 and take a gander at the /zscript folder; I don't think there's a single thing related to the special stuff done by the games' weapons that hasn't been exposed to scripting, so it should require only familiarity with how ZScript works to replicate the special functionality exactly.
Ultimate Freedoomer
Posts: 210
Joined: Fri Jan 30, 2015 10:32 pm
Location: Pittman Center

Re: Custom weapon replications in Heretic, Hexen, & Strife

Post by Ultimate Freedoomer »

Well, I did get the Assault Rifle, Mauler, Flamethrower, & Grenade Launcher working perfectly in DECORATE using non-restricted weapon functions. The main issue I’m having is figuring out how to replicate the accuracy stat calculations in DECORATE for the spread parameters of those vanilla weapons whose respective restricted functions are affected by the accuracy upgrade (assault rifle, Crossbow, Mini-Missile Launcher), & using custom functions for the Mauler’s primary fire is keeping the impact decal from showing up after the puff disappears.
User avatar
ramon.dexter
Posts: 1501
Joined: Tue Oct 20, 2015 12:50 pm
Graphics Processor: nVidia with Vulkan support
Location: Kozolupy, Bohemia

Re: Custom weapon replications in Heretic, Hexen, & Strife

Post by ramon.dexter »

DECORATE is outdated, use ZSCRIPT.
Blue Shadow
Posts: 4949
Joined: Sun Nov 14, 2010 12:59 am

Re: Custom weapon replications in Heretic, Hexen, & Strife

Post by Blue Shadow »

Ultimate Freedoomer wrote:The main issue I’m having is figuring out how to replicate the accuracy stat calculations in DECORATE for the spread parameters of those vanilla weapons whose respective restricted functions are affected by the accuracy upgrade (assault rifle, Crossbow, Mini-Missile Launcher)
Take a look at this: https://github.com/coelckers/gzdoom/sea ... =%E2%9C%93
You can call the AccuracyFactor() function from DECORATE just fine.
Ultimate Freedoomer
Posts: 210
Joined: Fri Jan 30, 2015 10:32 pm
Location: Pittman Center

Re: Custom weapon replications in Heretic, Hexen, & Strife

Post by Ultimate Freedoomer »

ramon.dexter wrote:DECORATE is outdated, use ZSCRIPT.
I would were it not for the fact that the current stable release of SLADE doesn't recognize it natively.
User avatar
Arctangent
Posts: 1235
Joined: Thu Nov 06, 2014 1:53 pm

Re: Custom weapon replications in Heretic, Hexen, & Strife

Post by Arctangent »

I don't seem to get that problem myself ( might be because of working with .pk3s and using a /zscript directory tho ) but that seems like a rather poor reason to avoid it.
User avatar
ramon.dexter
Posts: 1501
Joined: Tue Oct 20, 2015 12:50 pm
Graphics Processor: nVidia with Vulkan support
Location: Kozolupy, Bohemia

Re: Custom weapon replications in Heretic, Hexen, & Strife

Post by ramon.dexter »

Duh, the last version of slade DOES recognize zscript (i was wondered :))
Ultimate Freedoomer
Posts: 210
Joined: Fri Jan 30, 2015 10:32 pm
Location: Pittman Center

Re: Custom weapon replications in Heretic, Hexen, & Strife

Post by Ultimate Freedoomer »

ramon.dexter wrote:Duh, the last version of slade DOES recognize zscript (i was wondered :))
I’m waiting for the Stable release of SLADE 3.1.2 before I start doing ZScript.
Ultimate Freedoomer
Posts: 210
Joined: Fri Jan 30, 2015 10:32 pm
Location: Pittman Center

Re: Custom weapon replications in Heretic, Hexen, & Strife

Post by Ultimate Freedoomer »

Okay, I'm pretty much done with the mod-friendly Strife weapons. I'm just having the following problems:
  • i have no idea how to implement the Mauler Torpedo HUD in Mods
  • Fix accuracy bug for Assault Gun & Mini-Missile Launcher (I implemented the accuracy calculation into the spread, but it's not doing anything. Yes, I tested it)
  • Fix Electric Bolt Flash bug when firing (you'll see what I mean when playtesting)
CustomizableStrifeWeapons.pk3
You do not have the required permissions to view the files attached to this post.

Return to “Scripting”