@@ -39,7 +39,10 @@ public abstract partial class SharedProjectileSystem : EntitySystem
|
|||||||
SubscribeLocalEvent<EmbeddableProjectileComponent, ActivateInWorldEvent>(OnEmbedActivate);
|
SubscribeLocalEvent<EmbeddableProjectileComponent, ActivateInWorldEvent>(OnEmbedActivate);
|
||||||
SubscribeLocalEvent<EmbeddableProjectileComponent, RemoveEmbeddedProjectileEvent>(OnEmbedRemove);
|
SubscribeLocalEvent<EmbeddableProjectileComponent, RemoveEmbeddedProjectileEvent>(OnEmbedRemove);
|
||||||
SubscribeLocalEvent<EmbeddableProjectileComponent, AttemptPacifiedThrowEvent>(OnAttemptPacifiedThrow);
|
SubscribeLocalEvent<EmbeddableProjectileComponent, AttemptPacifiedThrowEvent>(OnAttemptPacifiedThrow);
|
||||||
|
|
||||||
SubscribeLocalEvent<EmbeddableProjectileComponent, LandEvent>(OnLand); // WD
|
SubscribeLocalEvent<EmbeddableProjectileComponent, LandEvent>(OnLand); // WD
|
||||||
|
SubscribeLocalEvent<EmbeddableProjectileComponent, ComponentRemove>(OnRemove); // WD
|
||||||
|
SubscribeLocalEvent<EmbeddableProjectileComponent, EntityTerminatingEvent>(OnEntityTerminating); // WD
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnEmbedActivate(EntityUid uid, EmbeddableProjectileComponent component, ActivateInWorldEvent args)
|
private void OnEmbedActivate(EntityUid uid, EmbeddableProjectileComponent component, ActivateInWorldEvent args)
|
||||||
@@ -201,6 +204,26 @@ public abstract partial class SharedProjectileSystem : EntitySystem
|
|||||||
}
|
}
|
||||||
|
|
||||||
// WD EDIT START
|
// WD EDIT START
|
||||||
|
private void OnEntityTerminating(EntityUid uid, EmbeddableProjectileComponent component,
|
||||||
|
ref EntityTerminatingEvent args)
|
||||||
|
{
|
||||||
|
FreePenetrated(component);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void OnRemove(EntityUid uid, EmbeddableProjectileComponent component, ComponentRemove args)
|
||||||
|
{
|
||||||
|
FreePenetrated(component);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void FreePenetrated(EmbeddableProjectileComponent component)
|
||||||
|
{
|
||||||
|
if (component.PenetratedUid == null)
|
||||||
|
return;
|
||||||
|
|
||||||
|
_penetratedSystem.FreePenetrated(component.PenetratedUid.Value);
|
||||||
|
component.PenetratedUid = null;
|
||||||
|
}
|
||||||
|
|
||||||
private void OnLand(EntityUid uid, EmbeddableProjectileComponent component, ref LandEvent args)
|
private void OnLand(EntityUid uid, EmbeddableProjectileComponent component, ref LandEvent args)
|
||||||
{
|
{
|
||||||
if (component.PenetratedUid == null)
|
if (component.PenetratedUid == null)
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
- type: entity
|
- type: entity
|
||||||
parent: BaseMob
|
parent: BaseMob
|
||||||
id: BaseBorgChassis
|
id: BaseBorgChassis
|
||||||
name: cyborg
|
name: cyborg
|
||||||
@@ -205,6 +205,7 @@
|
|||||||
- type: GuideHelp
|
- type: GuideHelp
|
||||||
guides:
|
guides:
|
||||||
- Cyborgs
|
- Cyborgs
|
||||||
|
- type: Penetrated
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
id: BaseBorgChassisNT
|
id: BaseBorgChassisNT
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
- type: entity
|
- type: entity
|
||||||
save: false
|
save: false
|
||||||
parent: [ BaseSimpleMob, MobCombat ]
|
parent: [ BaseSimpleMob, MobCombat ]
|
||||||
id: BaseMobArgocyte
|
id: BaseMobArgocyte
|
||||||
@@ -82,6 +82,7 @@
|
|||||||
damage:
|
damage:
|
||||||
types:
|
types:
|
||||||
Blunt: 3
|
Blunt: 3
|
||||||
|
- type: Penetrated
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
parent: BaseMobArgocyte
|
parent: BaseMobArgocyte
|
||||||
@@ -120,6 +121,7 @@
|
|||||||
damage:
|
damage:
|
||||||
types:
|
types:
|
||||||
Blunt: 3
|
Blunt: 3
|
||||||
|
- type: Penetrated
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
parent: BaseMobArgocyte
|
parent: BaseMobArgocyte
|
||||||
@@ -156,6 +158,7 @@
|
|||||||
damage:
|
damage:
|
||||||
types:
|
types:
|
||||||
Slash: 3
|
Slash: 3
|
||||||
|
- type: Penetrated
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
parent: BaseMobArgocyte
|
parent: BaseMobArgocyte
|
||||||
@@ -179,6 +182,7 @@
|
|||||||
60: Dead
|
60: Dead
|
||||||
- type: MovementSpeedModifier
|
- type: MovementSpeedModifier
|
||||||
baseSprintSpeed : 5
|
baseSprintSpeed : 5
|
||||||
|
- type: Penetrated
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
parent: BaseMobArgocyte
|
parent: BaseMobArgocyte
|
||||||
@@ -202,6 +206,7 @@
|
|||||||
- type: MovementSpeedModifier
|
- type: MovementSpeedModifier
|
||||||
baseSprintSpeed : 4
|
baseSprintSpeed : 4
|
||||||
baseWalkSpeed : 3.5
|
baseWalkSpeed : 3.5
|
||||||
|
- type: Penetrated
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
parent: BaseMobArgocyte
|
parent: BaseMobArgocyte
|
||||||
@@ -227,6 +232,7 @@
|
|||||||
types:
|
types:
|
||||||
Blunt: 2.5
|
Blunt: 2.5
|
||||||
Slash: 7.5
|
Slash: 7.5
|
||||||
|
- type: Penetrated
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
parent: BaseMobArgocyte
|
parent: BaseMobArgocyte
|
||||||
@@ -255,6 +261,7 @@
|
|||||||
- type: MovementSpeedModifier
|
- type: MovementSpeedModifier
|
||||||
baseSprintSpeed : 5
|
baseSprintSpeed : 5
|
||||||
baseWalkSpeed: 4.5
|
baseWalkSpeed: 4.5
|
||||||
|
- type: Penetrated
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
parent: BaseMobArgocyte
|
parent: BaseMobArgocyte
|
||||||
@@ -281,6 +288,7 @@
|
|||||||
Blunt: 5
|
Blunt: 5
|
||||||
Slash: 10
|
Slash: 10
|
||||||
Structural: 5
|
Structural: 5
|
||||||
|
- type: Penetrated
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
parent: BaseMobArgocyte
|
parent: BaseMobArgocyte
|
||||||
@@ -311,6 +319,7 @@
|
|||||||
- type: MovementSpeedModifier
|
- type: MovementSpeedModifier
|
||||||
baseSprintSpeed : 6.5
|
baseSprintSpeed : 6.5
|
||||||
baseWalkSpeed: 5
|
baseWalkSpeed: 5
|
||||||
|
- type: Penetrated
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
parent: BaseMobArgocyte
|
parent: BaseMobArgocyte
|
||||||
@@ -340,6 +349,7 @@
|
|||||||
- type: MovementSpeedModifier
|
- type: MovementSpeedModifier
|
||||||
baseSprintSpeed : 3.5
|
baseSprintSpeed : 3.5
|
||||||
baseWalkSpeed: 3
|
baseWalkSpeed: 3
|
||||||
|
- type: Penetrated
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
parent: BaseMobArgocyte
|
parent: BaseMobArgocyte
|
||||||
|
|||||||
@@ -79,6 +79,7 @@
|
|||||||
interactFailureString: petting-failure-carp
|
interactFailureString: petting-failure-carp
|
||||||
interactFailureSound:
|
interactFailureSound:
|
||||||
path: /Audio/Effects/bite.ogg
|
path: /Audio/Effects/bite.ogg
|
||||||
|
- type: Penetrated
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
parent: BaseMobCarp
|
parent: BaseMobCarp
|
||||||
|
|||||||
@@ -73,6 +73,7 @@
|
|||||||
- type: InputMover
|
- type: InputMover
|
||||||
- type: MobMover
|
- type: MobMover
|
||||||
- type: ZombieImmune
|
- type: ZombieImmune
|
||||||
|
- type: Penetrated
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
abstract: true
|
abstract: true
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
- type: entity
|
- type: entity
|
||||||
name: watcher
|
name: watcher
|
||||||
id: MobWatcherBase
|
id: MobWatcherBase
|
||||||
parent: [ SimpleSpaceMobBase, FlyingMobBase ]
|
parent: [ SimpleSpaceMobBase, FlyingMobBase ]
|
||||||
@@ -69,6 +69,7 @@
|
|||||||
interactFailureString: petting-failure-generic
|
interactFailureString: petting-failure-generic
|
||||||
interactSuccessSound:
|
interactSuccessSound:
|
||||||
path: /Audio/Animals/lizard_happy.ogg
|
path: /Audio/Animals/lizard_happy.ogg
|
||||||
|
- type: Penetrated
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
id: MobWatcherLavaland
|
id: MobWatcherLavaland
|
||||||
|
|||||||
@@ -107,6 +107,7 @@
|
|||||||
- type: TypingIndicator
|
- type: TypingIndicator
|
||||||
proto: robot
|
proto: robot
|
||||||
- type: ZombieImmune
|
- type: ZombieImmune
|
||||||
|
- type: Penetrated
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
parent: [ MobSiliconBase, BaseVehicle]
|
parent: [ MobSiliconBase, BaseVehicle]
|
||||||
|
|||||||
@@ -106,4 +106,5 @@
|
|||||||
- type: FloatingVisuals
|
- type: FloatingVisuals
|
||||||
- type: Puller
|
- type: Puller
|
||||||
needsHands: True
|
needsHands: True
|
||||||
|
- type: Penetrated
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
- type: entity
|
- type: entity
|
||||||
name: basic slime
|
name: basic slime
|
||||||
id: MobAdultSlimes
|
id: MobAdultSlimes
|
||||||
parent: [ SimpleMobBase, MobCombat ]
|
parent: [ SimpleMobBase, MobCombat ]
|
||||||
|
|||||||
@@ -67,6 +67,7 @@
|
|||||||
- type: GhostTakeoverAvailable
|
- type: GhostTakeoverAvailable
|
||||||
- type: Speech
|
- type: Speech
|
||||||
speechVerb: LargeMob
|
speechVerb: LargeMob
|
||||||
|
- type: Penetrated
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
name: space bear
|
name: space bear
|
||||||
|
|||||||
@@ -79,6 +79,7 @@
|
|||||||
- type: Speech
|
- type: Speech
|
||||||
speechVerb: SmallMob
|
speechVerb: SmallMob
|
||||||
- type: NonSpreaderZombie
|
- type: NonSpreaderZombie
|
||||||
|
- type: Penetrated
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
id: MobTickSalvage
|
id: MobTickSalvage
|
||||||
|
|||||||
Reference in New Issue
Block a user