The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Weapons and armors damages
Author Message
Hayur
Apprentice
*

Posts: 8
Likes Given: 1
Likes Received: 1 in 1 posts
Joined: Mar 2015
Reputation: 0



Post: #1
Weapons and armors damages
Is there any way to change the damages taken by armors and weapons using last nigthly with elemental engine.?
(This post was last modified: 04-09-2015 07:43 AM by Hayur.)
04-09-2015 07:42 AM
Find all posts by this user Like Post Quote this message in a reply
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #2
RE: Weapons and armors damages
(Asuming you are talking about the damages, and for explanation to everyone else)
Elemental Engine was meant to be as accurate as possible in matching OSI's calculations so there's no way to directly change it, you still have however a copy of combat (a bit outdated now with all recent changes made in the source) in sphere_combat.scp so you can still have same calculations than Sphere but scripted.

I'm not going to update it again until Coruja marks as finished the combat system, I don't have enough time to waste it scripting what can be changed tomorrow. But if anyone wants to know current formulas we can reply here.

If you are talking about weapons and armors being damaged (so they have to be repaired later) there are 2 new locals:
Code:
Changed: Softcoded ItemDamageCombat / ItemDamageCombatIncrease .ini settings, the chance to get items damaged on combat now can be fully scripted using LOCAL.ItemDamageChance (value range: 0~100) on triggers @Hit (weapon) / @GetHit (armor).

This means the @Hit (for weapons) and @GetHit (for armor) have a local.ItemDamageChange (default is 40%) which tell Sphere the chance of being damaged, you can also change the hitpoints of damage received in the @Damage trigger.
04-09-2015 04:41 PM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes XuN's post
Hayur
Apprentice
*

Posts: 8
Likes Given: 1
Likes Received: 1 in 1 posts
Joined: Mar 2015
Reputation: 0



Post: #3
RE: Weapons and armors damages
Thank you very much for the info Smile
04-14-2015 03:54 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)