@@ -165,22 +165,19 @@ void newGuardCode(void) {
165165 }
166166 if ((collisionType == 4 ) || (collisionType == 9 ) || (collisionActive )) { // If being damaged
167167 if (!in_snoop ) { // If not in SSnoop
168- // Player is immune in the first 123 frames upon map load. This prevents the kop from being damaged during those 123 frames (plus 1 extra frame)
169- if (ObjectModel2Timer > 124 ){
170- // Hit by ammo/oranges
171- if ((CurrentActorPointer_0 -> health <= 0 ) || (collisionActive )) { // If being attacked and with zero/negative health
172- // Death procedure
173- CurrentActorPointer_0 -> health = 0 ;
174- playActorAnimation (CurrentActorPointer_0 ,0x201 );
175- CurrentActorPointer_0 -> control_state = 0x42 ;
176- CurrentActorPointer_0 -> control_state_progress = 0 ;
177- CurrentActorPointer_0 -> noclip_byte = 1 ;
178- } else {
179- // Damage procedure
180- playActorAnimation (CurrentActorPointer_0 ,0x1FF );
181- CurrentActorPointer_0 -> control_state = 0x41 ;
182- CurrentActorPointer_0 -> control_state_progress = 0 ;
183- }
168+ // Hit by ammo/oranges
169+ if ((CurrentActorPointer_0 -> health <= 0 ) || (collisionActive )) { // If being attacked and with zero/negative health
170+ // Death procedure
171+ CurrentActorPointer_0 -> health = 0 ;
172+ playActorAnimation (CurrentActorPointer_0 ,0x201 );
173+ CurrentActorPointer_0 -> control_state = 0x42 ;
174+ CurrentActorPointer_0 -> control_state_progress = 0 ;
175+ CurrentActorPointer_0 -> noclip_byte = 1 ;
176+ } else {
177+ // Damage procedure
178+ playActorAnimation (CurrentActorPointer_0 ,0x1FF );
179+ CurrentActorPointer_0 -> control_state = 0x41 ;
180+ CurrentActorPointer_0 -> control_state_progress = 0 ;
184181 }
185182 }
186183 }
0 commit comments