1
0
Ver Fonte

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

Kevin_Smarts há 1 ano atrás
pai
commit
5162b96d2f
1 ficheiros alterados com 18 adições e 7 exclusões
  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'