Explosions and Grenades, Triggers, OnDestroy, OnExAct, Fueltanks and destructible tables (#247)
* initial explosiveComponent * remove garbagee * assets * tile mass deletion baby * grenades * tweaks * Update Content.Server/GameObjects/Components/Explosion/ExplosiveComponent.cs Co-Authored-By: Pieter-Jan Briers <pieterjan.briers@gmail.com> * Ex_act based on damage, fixes and tweaks * One finishing touch Done the most cringe way * ex_act explosions, tables are destructible now also adds fuel tanks * adds ex_act to mobs
This commit is contained in:
committed by
Pieter-Jan Briers
parent
f1aeaaa640
commit
10801af2f7
@@ -123,7 +123,13 @@ namespace Content.Server.GameObjects
|
||||
var value = threshold.Value;
|
||||
if (((value * changeSign) > (oldValue * changeSign)) && ((value * changeSign) <= (_currentDamage[damageType] * changeSign)))
|
||||
{
|
||||
var args = new DamageThresholdPassedEventArgs(threshold, (changeSign > 0));
|
||||
var excessDamage = change - value;
|
||||
var typeOfDamage = damageType;
|
||||
if (change - value < 0)
|
||||
{
|
||||
excessDamage = 0;
|
||||
}
|
||||
var args = new DamageThresholdPassedEventArgs(threshold, (changeSign > 0), excessDamage);
|
||||
DamageThresholdPassed?.Invoke(this, args);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user