[Added] Accuracy and Stamina in DECORATE/ACS expressions

Moderator: Developers

Accuracy and Stamina in DECORATE/ACS expressions

Postby Xaser » Sat Mar 10, 2012 3:07 am

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 14 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
Xaser
secretly a supercomputer being a government
 
Joined: 20 Jul 2003
Location: .plɹoʍɹǝʌǝu.

Re: Accuracy and Stamina in DECORATE/ACS expressions

Postby .+:icytux:+. » Sat Mar 10, 2012 6:36 am

Nice! this would certainly come in handy for my strifeproject.
User avatar
.+:icytux:+.
Mr. Happy of the Day!
 
Joined: 17 May 2007
Location: Finland

Re: Accuracy and Stamina in DECORATE/ACS expressions

Postby Graf Zahl » Sun Mar 11, 2012 3:48 am

Nice.

However, since you moved critical info from one class to another this can't be done without a savegame version bump.
User avatar
Graf Zahl
 
Joined: 19 Jul 2003
Location: Germany

Re: Accuracy and Stamina in DECORATE/ACS expressions

Postby Xaser » Sun Mar 11, 2012 4:00 am

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
Xaser
secretly a supercomputer being a government
 
Joined: 20 Jul 2003
Location: .plɹoʍɹǝʌǝu.

Re: Accuracy and Stamina in DECORATE/ACS expressions

Postby Graf Zahl » Sun Mar 11, 2012 4:14 am

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
Graf Zahl
 
Joined: 19 Jul 2003
Location: Germany

Re: Accuracy and Stamina in DECORATE/ACS expressions

Postby XutaWoo » Sun Mar 11, 2012 10:30 pm

Sweeeeet. :D
User avatar
XutaWoo
one day when going to see the rabbit, there was a previous visitor ...
 
Joined: 30 Dec 2006
Location: beautiful hills of those who are friends

Re: Accuracy and Stamina in DECORATE/ACS expressions

Postby ChronoSeth » Mon Mar 12, 2012 4:28 pm

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
ChronoSeth
You are totally unique... just like everyone else.
 
Joined: 05 Jul 2010

Re: Accuracy and Stamina in DECORATE/ACS expressions

Postby Graf Zahl » Mon Mar 12, 2012 7:46 pm

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
Graf Zahl
 
Joined: 19 Jul 2003
Location: Germany

Re: Accuracy and Stamina in DECORATE/ACS expressions

Postby Enjay » Tue Mar 13, 2012 4:40 am

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
Enjay
The Force is strong with this one.
 
Joined: 15 Jul 2003
Location: Scotland

Re: Accuracy and Stamina in DECORATE/ACS expressions

Postby XutaWoo » Thu Mar 15, 2012 5:51 pm

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
XutaWoo
one day when going to see the rabbit, there was a previous visitor ...
 
Joined: 30 Dec 2006
Location: beautiful hills of those who are friends

Re: Accuracy and Stamina in DECORATE/ACS expressions

Postby Ryan Cordell » Thu Mar 15, 2012 5:54 pm

Because it's not being used anywhere, duh! ;)
User avatar
Ryan Cordell
Smashing!
 
Joined: 06 Feb 2005
Location: Capital of Explodistan.

Re: Accuracy and Stamina in DECORATE/ACS expressions

Postby NeuralStunner » Thu Mar 15, 2012 8:03 pm

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
NeuralStunner
O'Neill with it.
 
Joined: 21 Jul 2009
Location: The Colonies

Re: Accuracy and Stamina in DECORATE/ACS expressions

Postby Nash » Thu Mar 15, 2012 8:27 pm

I lol'd.

If this managed to get in, I think monster pitch should be revisited and reconsidered.
User avatar
Nash
http://twitter.com/ISurvivorGame
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia

Re: Accuracy and Stamina in DECORATE/ACS expressions

Postby Graf Zahl » Fri Mar 16, 2012 12:06 pm

Why?

This is something that already existed and only needed access.

Also, this kind of nagging won't get you your features any quicker.
User avatar
Graf Zahl
 
Joined: 19 Jul 2003
Location: Germany


Return to Closed Feature Suggestions

Who is online

Users browsing this forum: Bing [Bot] and 0 guests