Cutstuff Home
CMM's Twitter
MM8BDM Wiki
ZDoom Wiki
Zandronum
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Search
Login
Register
Advanced Search
Cutstuff Forum
»
Mega Man 8-bit Deathmatch
»
MM8BDM Discussion
»
Bugs/Suggestions
»
CoreAltfire/FuncFire recode
Print
Pages: [
1
]
Author
Topic: CoreAltfire/FuncFire recode (Read 4761 times)
0 Members and 1 Guest are viewing this topic.
October 29, 2018, 08:28:26 PM
Read 4761 times
JaxOf7
MM8BDM Extender
>
>
>
>
Date Registered: March 23, 2011, 03:56:13 AM
CoreAltfire/FuncFire recode
«
on:
October 29, 2018, 08:28:26 PM »
Let us refer to Core Altfires as "FunctionFire"s or "FuncFire."
Let's say you want to make a mod that grants different functionality to Altfire and rebind FuncFire to a different key.
(With Megaman11 a thing, a mod that implements the gears comes to mind...)
It's a pain.
But it doesn't have to be.
That is the primary goal of this, but I've also
*Added functionality to disable weapon firing. Would make for an interesting status condition, but also helpful for bots and charge weapons.
*Eliminated the need for a seperate Altfire state for charge weapons.
*Hopefully reduced the overall amount of repasted code.
*Integrated support for "deselect fire" (like how CBM slide makes you throw in super arm if you are holding).
This first file is the suggestion itself. The recode in some example weapons which actually should exhibit no differences.
https://allfearthesentinel.net/zandronum/download.php?file=corealtfirerecode4h.pk3
Now for the interesting modding.
Add one of these after the recode. They're each pretty small.
https://allfearthesentinel.net/zandronum/download.php?file=altfireisspeedgear4h.pk3
Rebinds FuncFire to zoom, altfire to speed gear.
https://allfearthesentinel.net/zandronum/download.php?file=altfireisbuster4h.pk3
Rebinds FuncFire to zoom, altfire to buster on any weapon.
https://allfearthesentinel.net/zandronum/download.php?file=altfireclasses4h.pk3
Classes consisting of standard megaman and a class of each previous file.
Standard Megaman also has zoom for FuncFire.
Incredibly, these can all coexist.
I may or may not complete the recode for all the v5d weapons. But I don't think you're gonna see much more than what I've done.
Logged
October 30, 2018, 04:58:09 PM
Reply #1
JaxOf7
MM8BDM Extender
>
>
>
>
Date Registered: March 23, 2011, 03:56:13 AM
Re: CoreAltfire/FuncFire recode
«
Reply #1 on:
October 30, 2018, 04:58:09 PM »
Well this is embarrassing.
So there was a desync issue with this (which I've reported here:
https://zandronum.com/tracker/view.php?id=3563
)
I've fixed it, but it's unsatisfactory.
While I will be using this code for my modding ventures, the aforementioned issue might make this more trouble than it's worth for core.
I don't know, maybe you do think it is still core-worthy.
Do whatever.
Logged
February 19, 2019, 12:47:45 PM
Reply #2
JaxOf7
MM8BDM Extender
>
>
>
>
Date Registered: March 23, 2011, 03:56:13 AM
Re: CoreAltfire/FuncFire recode
«
Reply #2 on:
February 19, 2019, 12:47:45 PM »
Redone.
Beat works with v5d.
No more desync issue.
New stuff, change in suggestion scope.
Old version of first post
(click to show/hide)
Let us refer to Core Altfires as "FunctionFire"s or "FuncFire."
Let's say you want to make a mod that grants different functionality to Altfire and rebind FuncFire to a different key.
(With Megaman11 a thing, a mod that implements the gears comes to mind...)
It's a pain.
But it doesn't have to be.
This first file is the suggestion itself. The recode in some example weapons which actually should exhibit no differences.
https://allfearthesentinel.net/zandronum/download.php?file=corealtfirerecode3h.pk3
But with this recode in place, we can do some interesting modding.
This example file (add after recode) rebinds FuncFire to User1 and turns altfire into speed gear.
https://allfearthesentinel.net/zandronum/download.php?file=altfireisspeedgear3.pk3
Pretty small file, huh?
This example file is bigger.
It has classes.
Standard Megaman lets you do FuncFire with Altfire or User1.
MegamanBuster lets you do MegaBuster with AltFire and FuncFire with User1. Unfortunately, getting weapons to do this right is still kind of a pain. Hopefully less of a pain.
MegamanSpeed is just the Mega from the speed gear example file.
Incredibly, these all can coexist just fine thanks to the recode.
https://allfearthesentinel.net/zandronum/download.php?file=altfireclasses3h.pk3
Minor highlight: recode eliminates the need for Altfire states on Charge Weapons. FuncFire check is just seperate from A_Refire. (Though as MetalBlade shows, it can still compliment it)
I may or may not complete the recode for all the v5c weapons. But I don't think you're gonna see much more than what I've done.
Edit:
Hold on, desync issue.
Edit2:
Fixed...
Logged
March 20, 2019, 08:09:06 AM
Reply #3
JaxOf7
MM8BDM Extender
>
>
>
>
Date Registered: March 23, 2011, 03:56:13 AM
Re: CoreAltfire/FuncFire recode
«
Reply #3 on:
March 20, 2019, 08:09:06 AM »
Working on a mass recode for all the weps
wanted to put in basic bot support, but that sadly requires updating all these files.
So here's those, also some minor updates in general, like better metalblade.
Old files
(click to show/hide)
https://allfearthesentinel.net/zandronum/download.php?file=corealtfirerecode4.pk3
https://allfearthesentinel.net/zandronum/download.php?file=altfireisspeedgear4.pk3
https://allfearthesentinel.net/zandronum/download.php?file=altfireisbuster4.pk3
https://allfearthesentinel.net/zandronum/download.php?file=altfireclasses4.pk3
Logged
July 08, 2020, 11:52:45 PM
Reply #4
Trillster
Time Lord
what's a code
>
>
>
>
>
>
Date Registered: July 18, 2014, 08:42:32 PM
Re: CoreAltfire/FuncFire recode
«
Reply #4 on:
July 08, 2020, 11:52:45 PM »
Just gonna bump this thread to show my approval and hope that this gets in. I actually realized it would be very useful for modding endeavors without needing to hackjob every weapon into your file. Realized this by trying to make a mod that keeps all classes using the core weapons, but wanted them to have unique altfires. Unfortunately as pointed out, weapons are not well equipped for this type of change. I find this of similar use to the weapon spawn functions that were seemingly approved earlier, so hopefully it's not that big of an ask to get in.
Logged
Print
Pages: [
1
]
Cutstuff Forum
»
Mega Man 8-bit Deathmatch
»
MM8BDM Discussion
»
Bugs/Suggestions
»
CoreAltfire/FuncFire recode