Changing the power attack delay for 1 specific weapon only

Post » Sun Aug 08, 2010 8:49 am

I am making my own bow and I was wondering if there is any way to change the length of time needed to make a power attack for 1 specifc weapon. I ask because I want the player to be able to fire the bow very fast, but by only increasing the fire speed I still have to hold the attack button for a long time in order for the arrow to travel a long distance. So is there any way to change it?
User avatar
jessica robson
 
Posts: 3436
Joined: Mon Oct 09, 2006 11:54 am

Post » Sun Aug 08, 2010 10:40 am

I am making my own bow and I was wondering if there is any way to change the length of time needed to make a power attack for 1 specifc weapon. I ask because I want the player to be able to fire the bow very fast, but by only increasing the fire speed I still have to hold the attack button for a long time in order for the arrow to travel a long distance. So is there any way to change it?


That's probably what you're looking for: http://cs.elderscrolls.com/constwiki/index.php/FPowerAttackDelay
User avatar
Roy Harris
 
Posts: 3463
Joined: Tue Sep 11, 2007 8:58 pm

Post » Sun Aug 08, 2010 9:35 pm

That's probably what you're looking for: http://cs.elderscrolls.com/constwiki/index.php/FPowerAttackDelay


do you have any idea how I could use it in a script? It doesn't recognise the command.
Also do you know how to set it for just 1 weapon? That command will change all the weapons in oblivion since its a game setting, right?
User avatar
Laura-Jayne Lee
 
Posts: 3474
Joined: Sun Jul 02, 2006 4:35 pm

Post » Sun Aug 08, 2010 11:54 am

do you have any idea how I could use it in a script? It doesn't recognise the command.
Also do you know how to set it for just 1 weapon? That command will change all the weapons in oblivion since its a game setting, right?


FPowerAttackDelay is not a command, its a game setting, which can be changed by OBSE's SetNumericGameSetting.
Since the player can only have one equipped weapon at a time, you could add a script to your bow with begin onequip and begin onunequip blocks, which set set or reset the value.
User avatar
Adriana Lenzo
 
Posts: 3446
Joined: Tue Apr 03, 2007 1:32 am

Post » Sun Aug 08, 2010 10:15 am

FPowerAttackDelay is not a command, its a game setting, which can be changed by OBSE's SetNumericGameSetting.
Since the player can only have one equipped weapon at a time, you could add a script to your bow with begin onequip and begin onunequip blocks, which set set or reset the value.


But wouldn't the value also affect NPC's etc who the player would be fighting? I don't want them having this power attack increase aswell.
User avatar
XPidgex Jefferson
 
Posts: 3398
Joined: Fri Sep 08, 2006 4:39 pm

Post » Sun Aug 08, 2010 8:17 pm

But wouldn't the value also affect NPC's etc who the player would be fighting? I don't want them having this power attack increase aswell.


I have no experience with it, but the Wiki says:
This is believed to be the amount of time the attack button must be held down before a power attack will be executed, and also affects how long a power attack takes.


That should only effect the player (from my knowledge of animations I doubt the 2nd part anyway)
User avatar
Marine Arrègle
 
Posts: 3423
Joined: Sat Mar 24, 2007 5:19 am

Post » Sun Aug 08, 2010 8:40 pm

I have no experience with it, but the Wiki says:

That should only effect the player (from my knowledge of animations I doubt the 2nd part anyway)


Looking here http://cs.elderscrolls.com/constwiki/index.php/Category:Settings it says the whole game is revolved around these settings :(
User avatar
Maddy Paul
 
Posts: 3430
Joined: Wed Feb 14, 2007 4:20 pm

Post » Sun Aug 08, 2010 3:01 pm

Looking here http://cs.elderscrolls.com/constwiki/index.php/Category:Settings it says the whole game is revolved around these settings :(


The Wiki link I showed you does not look very revolving. Just try it. The following script should do the work (you need OBSE though, but thats no big deal either)

scn mybowfloat OldPADbegin onEquipset OldPAD to (GetNumericGameSetting FPowerAttackDelay)SetNumericGameSetting FPowerAttackDelay 0.1endbegin onUnEquipSetNumericGameSetting FPowerAttackDelay OldPADend

User avatar
Ella Loapaga
 
Posts: 3376
Joined: Fri Mar 09, 2007 2:45 pm


Return to IV - Oblivion