View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003749 | The Dark Mod | Coding | public | 09.06.2014 01:59 | 20.08.2014 16:33 |
Reporter | RJFerret | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | confirmed | Resolution | open | ||
Platform | PC | OS | Windows | OS Version | 7 |
Product Version | TDM 2.01 | ||||
Summary | 0003749: Alarm ignores "team" spawnarg in 2.01 and 2.02 beta | ||||
Description | An 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 Reproduce | 1. 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 Information | I 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). | ||||
Tags | No tags attached. | ||||
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. |
|
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 |
|
Yes, but I believe all AI that share the map with the alarm then are also Team 4, rendering it moot. | |
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 => |