Page 1 of 1
Delay, AttackDelay, character.delay_mod
Posted: Fri Jun 09, 2006 3:52 pm
by Lagoon
Code: Select all
03-09 Shinigami
Added : WeaponTemplate Prop Delay [ms]
Added : NPCDesc Prop AttackDelay [ms]
Added : character.delay_mod [+-ms] for WeaponDelay
If (Delay!=0) use Delay(+delay_mod) to calculate next weapon swing.
Could someone please elaborate on this?
How is it related to the following formula?
interattack delay := (15000 seconds) / ((dexterity+100) * weaponspeed)
Wasn't weapon speed expressed with the Speed prop? Is Delay replacing Speed or is it something different?[/code]
Posted: Fri Jun 09, 2006 4:52 pm
by MuadDib
If you use Delay in a weapon's itemdesc entry Weapon speed will use that instead (Delay by Millisecond) of the dex math.
Delay_Mod on a character, is a MilliSecond delay modifier for the Delay setting only. Will not affect weapons that use Speed entries.
Posted: Fri Jun 09, 2006 5:09 pm
by Lagoon
Ok, so, let me see if I got it right...
I have to put in the weapon itemdesc entry either Delay or Speed
1) If I put Speed
interattack delay := (15000 / ((dexterity+100) * Speed)) seconds
2) If I put Delay
interattack delay := (Delay + CInt(character.delay_mod)) milliseconds
Right?
Posted: Fri Jun 09, 2006 6:01 pm
by MuadDib
Basically

Posted: Sat Jun 10, 2006 12:21 am
by Xadhoom
Can these props be used (and modified) in the scripts or they must be defined only in the cfg?
like character.delay_mod := etc
Posted: Sat Jun 10, 2006 4:24 am
by MuadDib
Delay is for the weapon's cfg entry
character.delay_mod := ms time is for scripts

Posted: Sat Jun 17, 2006 7:18 am
by CrazyMan
Delay for weapon - is static and i cant write it in game?
Posted: Sat Jun 17, 2006 9:39 am
by Shinigami
CrazyMan wrote:Delay for weapon - is static and i cant write it in game?
yes... not sure if we should modify this... if u want to modify it, add a cprop to weapon with an additional modifier, u handle in equip/unequip-script to modify the character.delay_mod. in this case u got better weapons u can give from one hand to another
this way to handle weapon speed was requested by some scripter and they got exactly what they wanted...
but maybe... should think about...
Shinigami