SphereCommunity
Who have access to code? Need help - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: Who have access to code? Need help (/Thread-Who-have-access-to-code-Need-help)



Who have access to code? Need help - Art - 02-07-2013 01:54 AM

Hello.

I want to balance weapons damage by weight. I divide damage by weight to gen damage amount for 1 weight point. Then i multiply that amount on weapon's weight. Firstly all looks good and balanced, but i noticed light weapon kryss does more damage per one minute than viking sword.

Looks like weight have not balanced attack speed.

I ask someone who have access to source codes of Sphere: please, give me information about how much seconds of delay have each weight point.

1 weight = ?
2 weight = ?
3 weight = ?
...
8 weight = ?

Thanks.


RE: Who have access to code? Need help - Gil Amarth - 02-07-2013 02:46 AM

The delay of a weapon´s swing is not affected by weight.

It´s the Speed value of every weapon who set this attribute, you can set this speed for every weapon according his weight, but then you have to set this value manually for every weapon under his ITEMDEF section.

You can also test the time of your swing un your @HITTRY trigger.
Put there SERV.LOG Swing time: <dARGN1>
And you´ll see the tenths of second of your swing in you console


RE: Who have access to code? Need help - Art - 02-07-2013 04:32 AM

(02-07-2013 02:46 AM)Gil Amarth Wrote:  The delay of a weapon´s swing is not affected by weight.

Why not? Smile I deleted all SPEED variables from weapons, and then weight controls swing timer (like on old 0.55i Sphere).

But thanks for test advice, i will try it.


RE: Who have access to code? Need help - Art - 02-07-2013 11:03 PM

I tried <dARGN1>

For viking sword (weight 8) it said 25, and for kryss (weight 5) it said 17.
Well i tried to compare damage. If 25 damage for viking sword, then 25/25*17 = 17 means 17 damage for kryss.
I typed DAM=25,25 and DAM=17,17 for Viking Sword and Kryss. And kryss wins always. I tried with more hp limit, and kryss defeats sword. After that kryss have enough hp for few hits. Looks like not correct damage per second.


RE: Who have access to code? Need help - admin phoenix - 02-08-2013 12:00 AM

kryss is faster than the sword so it hit the target more often than the sword


RE: Who have access to code? Need help - Art - 02-08-2013 12:12 AM

Yes, and that's why kryss have lower damage than sword. And if weight sets attack speed for weapon, i want to know right delay for each weight point, to calculate balanced damage for weapons.


RE: Who have access to code? Need help - BladeCraft - 02-09-2013 01:35 PM

Back in the day when i tried balancing weapon speeds to offset the dex boost my players were getting, i ran into the same issue. No matter how much i manipulated the triggers, it would not let me fully control speeds. I know this post does not really help you except to say, you were/are not alone with that problem Smile