View Issue Details

IDProjectCategoryView StatusLast Update
0003749The Dark ModCodingpublic20.08.2014 16:33
ReporterRJFerret Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status confirmedResolutionopen 
PlatformPCOSWindowsOS Version7
Product VersionTDM 2.01 
Summary0003749: Alarm ignores "team" spawnarg in 2.01 and 2.02 beta
DescriptionAn inherited property of "atdm:alarm_sound" is "team", which defaults to -1.

Despite being set to "team 2" in Kyyrma's map, "Breaking out the Fence", all AI respond to the alarm regardless of team: spiders, etc.
Steps To Reproduce1. Set up an alarm system in the map, change the team spawnarg to 99.
2. Add an AI near the alarm.
3. Enter the game and activate the alarm, observe the AI respond despite being on a different team.
Additional InformationI know the team spawnarg is used in "Breaking out the Fence". It is not used in "Inn Business". There are limited other maps with alarms ("A Score to Settle" is another).

TagsNo tags attached.

Activities

SteveL

SteveL

10.06.2014 16:12

reporter   ~0006668

Last edited: 10.06.2014 16:15

I'll chip in some diagnostics towards this one. I'm not sure whether it ever worked, but the key lines of code are in sndProp.cpp:

  // For objects (non-actors) the team will be set to -1
  mteam = (maker->IsType(idActor::Type)) ? static_cast<idActor*>(maker)->team : -1;

Like the comment says, only AI/Actor "makers" get their "team" spawnarg taken into account. Alarm sounds are made by an atdm:alarm_sound entity not an actor so their team spawnarg is ignored. There are a couple of places further down the same function that will need looking at too, where the code assumes that if the sound has a team, that it's an AI making it.

SteveL

SteveL

13.06.2014 20:56

reporter   ~0006673

Actually, you *did* put a couple in Inn Business :)

Team alarms in published maps:
breakingout\maps\goneinsmoke.map camera_alarm team 2
breakingout\maps\goneinsmoke.map camera_alarm1 team 2
innbiz\maps\innbiz.map atdm_alarm_sound_2 team 4
innbiz\maps\innbiz.map atdm_alarm_sound_3 team 4
RJFerret

RJFerret

13.06.2014 21:03

reporter   ~0006674

Yes, but I believe all AI that share the map with the alarm then are also Team 4, rendering it moot.

Issue History

Date Modified Username Field Change
09.06.2014 01:59 RJFerret New Issue
10.06.2014 16:12 SteveL Note Added: 0006668
10.06.2014 16:15 SteveL Note Edited: 0006668
13.06.2014 15:37 SteveL Assigned To => SteveL
13.06.2014 15:37 SteveL Status new => confirmed
13.06.2014 20:56 SteveL Note Added: 0006673
13.06.2014 21:03 RJFerret Note Added: 0006674
20.08.2014 16:33 SteveL Assigned To SteveL =>