Accuracy and Stamina in DECORATE/ACS expressions

Moderator: GZDoom Developers

Post Reply
User avatar
Xaser
 
 
Posts: 10774
Joined: Sun Jul 20, 2003 12:15 pm
Contact:

Accuracy and Stamina in DECORATE/ACS expressions

Post by Xaser »

An implementation of this request, this patch changes accuracy and stamina to general actor properties and exposes them in DECORATE and ACS.

Simply put, this patch adds accuracy and stamina as DECORATE variables, and also adds APROP_Accuracy and APROP_Stamina actor properties that can be accessed via GetActorProperty and SetActorProperty.
xa-accstam.zip
Accuracy/Stamina patch, created with TortoiseSVN
(3.29 KiB) Downloaded 40 times
With this, Strife's built-in accuracy and stamina stats can now be properly utilized in DECORATE by new weapons and modified at will by ACS-based systems. The biggest advantage to this, naturally, is being able to mod Strife without having to recreate the system already in place, though the properties can be of use in other areas if one is so inclined.
User avatar
.+:icytux:+.
Posts: 2661
Joined: Thu May 17, 2007 1:53 am
Location: Finland

Re: Accuracy and Stamina in DECORATE/ACS expressions

Post by .+:icytux:+. »

Nice! this would certainly come in handy for my strifeproject.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Accuracy and Stamina in DECORATE/ACS expressions

Post by Graf Zahl »

Nice.

However, since you moved critical info from one class to another this can't be done without a savegame version bump.
User avatar
Xaser
 
 
Posts: 10774
Joined: Sun Jul 20, 2003 12:15 pm
Contact:

Re: Accuracy and Stamina in DECORATE/ACS expressions

Post by Xaser »

Ah, yes. I neglected to mention/address that. Thanks for the add anyhow. :)

For the record, is bumping it just a matter of incrementing MINSAVEVER? Just want to know for next time it comes up.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Accuracy and Stamina in DECORATE/ACS expressions

Post by Graf Zahl »

Nom, MINSAVEVERSION is thw value to change. It has to be set to the SVN revision that implements the breaking change.

Oh, and before I forget: The new constants also needed to be added to the ACC headers.
User avatar
XutaWoo
Posts: 4005
Joined: Sat Dec 30, 2006 4:25 pm
Location: beautiful hills of those who are friends
Contact:

Re: Accuracy and Stamina in DECORATE/ACS expressions

Post by XutaWoo »

Sweeeeet. :D
User avatar
ChronoSeth
Posts: 1631
Joined: Mon Jul 05, 2010 2:04 pm
Location: British Columbia

Re: Accuracy and Stamina in DECORATE/ACS expressions

Post by ChronoSeth »

Xaser wrote:Simply put, this patch adds accuracy and stamina as DECORATE variables, and also adds APROP_Accuracy and APROP_Stamina actor properties that can be accessed via GetActorProperty and SetActorProperty.
Hell yes. :mrgreen:
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Accuracy and Stamina in DECORATE/ACS expressions

Post by Graf Zahl »

And just for the record, these variables are also available for monsters and could be used as general purpose variables to control attack behavior or whatever else you'd like to do.
User avatar
Enjay
 
 
Posts: 27627
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Accuracy and Stamina in DECORATE/ACS expressions

Post by Enjay »

Graf Zahl wrote:And just for the record, these variables are also available for monsters and could be used as general purpose variables to control attack behavior or whatever else you'd like to do.
Ooh, that could be interesting.
User avatar
XutaWoo
Posts: 4005
Joined: Sat Dec 30, 2006 4:25 pm
Location: beautiful hills of those who are friends
Contact:

Re: Accuracy and Stamina in DECORATE/ACS expressions

Post by XutaWoo »

Graf Zahl wrote:And just for the record, these variables are also available for monsters and could be used as general purpose variables to control attack behavior or whatever else you'd like to do.
...So why can't we get a pitch-getting thing for A_FaceTarget, again? :P
User avatar
Ryan Cordell
Posts: 4349
Joined: Sun Feb 06, 2005 6:39 am
Preferred Pronouns: No Preference
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia (Modern GZDoom)
Location: Capital of Explodistan

Re: Accuracy and Stamina in DECORATE/ACS expressions

Post by Ryan Cordell »

Because it's not being used anywhere, duh! ;)
User avatar
NeuralStunner
 
 
Posts: 12328
Joined: Tue Jul 21, 2009 12:04 pm
Preferred Pronouns: No Preference
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: capital N, capital S, no space
Contact:

Re: Accuracy and Stamina in DECORATE/ACS expressions

Post by NeuralStunner »

It'd be more useful in monster coding than these would, really. Unless the Stamina var allows you to raise a monster's max Health, you might as well stick with UserVars.
User avatar
Nash
 
 
Posts: 17513
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: Accuracy and Stamina in DECORATE/ACS expressions

Post by Nash »

I lol'd.

If this managed to get in, I think monster pitch should be revisited and reconsidered.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Accuracy and Stamina in DECORATE/ACS expressions

Post by Graf Zahl »

Why?

This is something that already existed and only needed access.

Also, this kind of nagging won't get you your features any quicker.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”