File tree Expand file tree Collapse file tree 2 files changed +20
-15
lines changed Expand file tree Collapse file tree 2 files changed +20
-15
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ Added the following Source SDK Pull Requests:
84
84
- #1528: Add a non full charge sound check to tf_weapon_sniperrifle.cpp
85
85
- #1529: Add DevMsgs for returns in CBaseCombatWeapon::WeaponSound
86
86
- #1530: Allow null caller on team_control_point's SetOwner input
87
+ - #1534: Fix cleanup collect on MvM currency rest logic
87
88
88
89
Details:
89
90
- Fixed a bug where the mini-crit damage effect doesn't show up when your shield breaks.
Original file line number Diff line number Diff line change @@ -195,6 +195,25 @@ void CCurrencyPack::ComeToRest( void )
195
195
return ;
196
196
}
197
197
198
+ #ifdef BDSBASE
199
+ // See if we've come to rest in a trigger_hurt
200
+ if (IsTakingTriggerHurtDamageAtPoint (GetAbsOrigin ()))
201
+ {
202
+ TFGameRules ()->DistributeCurrencyAmount (m_nAmount);
203
+ m_bTouched = true ;
204
+ UTIL_Remove (this );
205
+ return ;
206
+ }
207
+
208
+ // Or a func_respawnroom (robots can drop money in their own spawn)
209
+ if (PointInRespawnRoom (NULL , GetAbsOrigin ()))
210
+ {
211
+ TFGameRules ()->DistributeCurrencyAmount (m_nAmount);
212
+ m_bTouched = true ;
213
+ UTIL_Remove (this );
214
+ return ;
215
+ }
216
+ #else
198
217
// See if we've come to rest in a trigger_hurt
199
218
for ( int i = 0 ; i < ITriggerHurtAutoList::AutoList ().Count (); i++ )
200
219
{
@@ -212,21 +231,6 @@ void CCurrencyPack::ComeToRest( void )
212
231
}
213
232
}
214
233
}
215
-
216
- #ifdef BDSBASE
217
- // Or a func_respawnroom (robots can drop money in their own spawn)
218
- for (int i = 0 ; i < IFuncRespawnRoomAutoList::AutoList ().Count (); i++)
219
- {
220
- CFuncRespawnRoom* pRespawnRoom = static_cast <CFuncRespawnRoom*>(IFuncRespawnRoomAutoList::AutoList ()[i]);
221
- Vector vecMins, vecMaxs;
222
- pRespawnRoom->GetCollideable ()->WorldSpaceSurroundingBounds (&vecMins, &vecMaxs);
223
- if (IsPointInBox (GetCollideable ()->GetCollisionOrigin (), vecMins, vecMaxs))
224
- {
225
- TFGameRules ()->DistributeCurrencyAmount (m_nAmount);
226
- m_bTouched = true ;
227
- UTIL_Remove (this );
228
- }
229
- }
230
234
#endif
231
235
}
232
236
You can’t perform that action at this time.
0 commit comments