Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AdvertiseComponent: No advertisements for players. #3040

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions Content.Server/Advertise/EntitySystems/AdvertiseSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using Content.Server.Chat.Systems;
using Content.Server.Power.Components;
using Content.Shared.VendingMachines;
using Robust.Shared.Player; // Frontier
using Robust.Shared.Prototypes;
using Robust.Shared.Random;
using Robust.Shared.Timing;
Expand Down Expand Up @@ -31,6 +32,7 @@ public override void Initialize()

SubscribeLocalEvent<ApcPowerReceiverComponent, AttemptAdvertiseEvent>(OnPowerReceiverAttemptAdvertiseEvent);
SubscribeLocalEvent<VendingMachineComponent, AttemptAdvertiseEvent>(OnVendingAttemptAdvertiseEvent);
SubscribeLocalEvent<ActorComponent, AttemptAdvertiseEvent>(OnActorAttemptAdvertiseEvent); // Frontier: no player advertisements

_nextCheckTime = TimeSpan.MinValue;
}
Expand Down Expand Up @@ -97,6 +99,13 @@ private static void OnVendingAttemptAdvertiseEvent(EntityUid uid, VendingMachine
{
args.Cancelled |= machine.Broken;
}

// Frontier: no player advertisements
private static void OnActorAttemptAdvertiseEvent(EntityUid uid, ActorComponent actor, ref AttemptAdvertiseEvent args)
{
args.Cancelled = true;
}
// End Frontier
}

[ByRefEvent]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,6 @@
- type: Access
- type: Timer
- type: TimedSpawner
- type: Advertise
pack: FuelVendAds # placeholder, required field, unused
- type: Jittering

- type: entity
Expand Down Expand Up @@ -408,8 +406,8 @@
deathPenalty: 0.5
- type: Advertise
pack: syndicatehumanoidchatter
minimumWait: 120 # 1 * 2
maximumWait: 240 # 2 * 60
minimumWait: 120
maximumWait: 240
nextAdvertisementTime: 0
- type: FTLKnockdownImmune
- type: Respirator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,6 @@
- type: Vocal
sounds:
Unsexed: UnisexSiliconSyndicate
#- type: Advertise
#pack: mercenaryhumanoidchatter
#minimumWait: 30
#maximumWait: 120
#nextAdvertisementTime: 10
- type: AutoWakeUp
- type: FootstepModifier
footstepSoundCollection:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -662,8 +662,8 @@
baseSprintSpeed: 6
- type: Advertise
pack: mimehumanoidchatter
minimumWait: 120 # 1 * 2
maximumWait: 240 # 2 * 60
minimumWait: 120
maximumWait: 240
nextAdvertisementTime: 0

# Syndicate Chemwarrior, shoots healthy mixes of chems
Expand Down
Loading