소스 검색

[fixed] Added some clothing checks to prevent dressing when already dressed

Kevin_Smarts 1 년 전
부모
커밋
5162b96d2f
1개의 변경된 파일18개의 추가작업 그리고 7개의 파일을 삭제
  1. 18 7
      locations/foto.qsrc

+ 18 - 7
locations/foto.qsrc

@@ -304,16 +304,27 @@ if $ARGS[0] = 'studio':
 				'You go to your locker in the back room and start to throw on your clothes when you suddenly remember that one of the managers took your underwear earlier today. You''ll have to go see him to get it back...'
 				act'Go see the manager':gt'foto_events','underwear_steal2'
 			else
-				gs 'clothing', 'wear_last_worn'
-				gs 'foto', 'underwear'
-				gs 'stat'
-				'<center><video autoplay loop src="images/pc/activities/misc/dress_1.mp4"></video></center>'
-				'You go into the back room to put on clothes and get ready to go home.'
-				act 'Leave': minut += 1 & gt 'city_center'
+				if $clothingworntype = 'nude':
+					gs 'clothing', 'wear_last_worn'
+					gs 'foto', 'underwear'
+					gs 'stat'
+					'<center><video autoplay loop src="images/pc/activities/misc/dress_1.mp4"></video></center>'
+					'You go into the back room to put on clothes and get ready to go home.'
+				else
+					gt 'city_center'
+				end
 			end
 		end
 	elseif model['status'] = 0:
-		act 'Leave': minut += 1 & gt 'city_center'
+		if $clothingworntype = 'nude':
+			act 'Get dressed and leave':
+			gs 'clothing', 'wear_last_worn'
+			gs 'foto', 'underwear'
+			minut += 1
+			gt 'city_center'
+		else
+			act 'Leave': minut += 1 & gt 'city_center'
+		end
 	end
 
 	if parkblackmail = 2: act 'Look around for the blackmailer':gt 'foto', 'blackm'