Accuracy and Stamina in DECORATE/ACS expressions
Moderator: GZDoom Developers
Accuracy and Stamina in DECORATE/ACS expressions
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.
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.
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.
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.
- .+:icytux:+.
- Posts: 2661
- Joined: Thu May 17, 2007 1:53 am
- Location: Finland
Re: Accuracy and Stamina in DECORATE/ACS expressions
Nice! this would certainly come in handy for my strifeproject.
- Graf Zahl
- Lead GZDoom+Raze Developer

- Posts: 49252
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Accuracy and Stamina in DECORATE/ACS expressions
Nice.
However, since you moved critical info from one class to another this can't be done without a savegame version bump.
However, since you moved critical info from one class to another this can't be done without a savegame version bump.
Re: Accuracy and Stamina in DECORATE/ACS expressions
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.
For the record, is bumping it just a matter of incrementing MINSAVEVER? Just want to know for next time it comes up.
- Graf Zahl
- Lead GZDoom+Raze Developer

- Posts: 49252
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Accuracy and Stamina in DECORATE/ACS expressions
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.
Oh, and before I forget: The new constants also needed to be added to the ACC headers.
- ChronoSeth
- Posts: 1631
- Joined: Mon Jul 05, 2010 2:04 pm
- Location: British Columbia
Re: Accuracy and Stamina in DECORATE/ACS expressions
Hell yes.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.
- Graf Zahl
- Lead GZDoom+Raze Developer

- Posts: 49252
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Accuracy and Stamina in DECORATE/ACS expressions
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.
Re: Accuracy and Stamina in DECORATE/ACS expressions
Ooh, that could be interesting.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.
- 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
...So why can't we get a pitch-getting thing for A_FaceTarget, again?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.
- 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
Because it's not being used anywhere, duh! 
- 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
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.
Re: Accuracy and Stamina in DECORATE/ACS expressions
I lol'd.
If this managed to get in, I think monster pitch should be revisited and reconsidered.
If this managed to get in, I think monster pitch should be revisited and reconsidered.
- Graf Zahl
- Lead GZDoom+Raze Developer

- Posts: 49252
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Accuracy and Stamina in DECORATE/ACS expressions
Why?
This is something that already existed and only needed access.
Also, this kind of nagging won't get you your features any quicker.
This is something that already existed and only needed access.
Also, this kind of nagging won't get you your features any quicker.

