Explorar el Código

[fixed] Infinite loop in `rape_events`, fixed the missing image in the same event

anjuna krokus hace 5 meses
padre
commit
f62fae4f5f
Se han modificado 2 ficheros con 74 adiciones y 71 borrados
  1. 9 9
      locations/park_walkevents.qsrc
  2. 65 62
      locations/rape_events.qsrc

+ 9 - 9
locations/park_walkevents.qsrc

@@ -671,7 +671,7 @@ if $ARGS[0] = '6b':
 
 					act 'Stop resisting':
 						cla & *clr
- 
+
 						'<center><img <<$set_imgh>> src="images/locations/city/centralpark/sex/event/rape/11.jpg"></center>'
 						'For every thrust he goes deeper into you and with a violent thrust he reaches your cervix and you squeal as he smirks. He continues thrusting and by now you don''t even know if you''re enjoying yourself or if you''re in pain.'
 						'You keep on screaming but to no avail, he''s pulled you deep into the woods and no one can hear your screams. Realizing this, you give up and let him have his way with you.'
@@ -932,14 +932,14 @@ if $ARGS[0] = 'run':
 							elseif temp['catcall'] = 3:
 								'"Wooooeee! That ass! I wanna take it home with me and make it mine!"'
 							end
-							
+
 							act'Ignore him':
 								cla & *clr
 								gs 'park_walkevents', 'running_image'
 								'You roll your eyes but otherwise ignore him, continuing to run until his hollering is nothing but a distant buzz behind you. And soon enough, there''s no hollering at all.'
 								act 'Finish your run': gt 'park_walkevents', 'run_end'
 							end
-							
+
 							act'Ignore him (annoyed)':
 								cla & *clr
 								temp['catcall'] = 4
@@ -949,7 +949,7 @@ if $ARGS[0] = 'run':
 								'Fuck! Who does he think he is? Are you just a piece of meat to him? Fuck that guy and fuck everybody like him!'
 								act 'Finish your run': gt 'park_walkevents', 'run_end'
 							end
-							
+
 							act'Walk up to him':
 								cla & *clr
 								!! IMAGE HERE
@@ -965,7 +965,7 @@ if $ARGS[0] = 'run':
 									'"You know I would baby! Just come back here and we''ll make it happen!" the guy shouts after you.'
 									act 'Finish your run': gt 'park_walkevents', 'run_end'
 								end
-								
+
 								act'Wanna fuck?':
 									cla & *nl
 									'"<<$pcs_nickname>>." you say flatly. "Nice to meet you. But really. You mean all that stuff you said? Cause if you''re serious, we could go back to your place and get it on. I could go for a good fuck right now."'
@@ -1023,13 +1023,13 @@ if $ARGS[0] = 'run':
 				elseif $daystage['desc'] = 'pre_dawn':
 					'It''s still dark out. Are you sure it''s such a good idea to go running so early in the morning?'
 				end
-				
+
 				act'Maybe not':
 					cla & *nl
 					'On second thought, maybe a young girl like yourself <i>shouldn''t</i> go running in the dark...'
 					act 'Continue': gt $loc, $loc_arg
 				end
-				
+
 				act'It''ll be fine':
 					!! if running late at night
 					*clr & cla
@@ -1051,7 +1051,7 @@ if $ARGS[0] = 'run':
 							!! not added yet because don''t have single rapist event written yet
 							$temp['rape_type'] = 'gang'
 							cla & *clr
-							'<center><img <<$set_imgh>> src="images/shared/misc/jumped.jpg"></center>'
+							'<center><img <<$set_imgh>> src="images/pc/activities/exercises/running/park_jogn1.jpg"></center>'
 							'About halfway through your run, you hear a branch snap to your left. You turn to see a shadow crouching in the bushes, but before you can react, arms grip you from behind and a dirty hand clamps over your mouth. Your eyes go wide with fear as several more shapes emerge from the darkness, moving towards you.'
 							*nl
 							'"Well well well, what do we have here?" a gravely voice says from behind you. "A tasty little treat for us to enjoy?"'
@@ -1329,7 +1329,7 @@ if $ARGS[0] = 'find_baby':
 				minut += 30
 				act 'Finish': gt 'city_clinic', 'start'
 			end
-			if pcs_mood < 20:				
+			if pcs_mood < 20:
 				act 'Call an ambulance and leave.':
 					*clr & cla
 					minut += 10

+ 65 - 62
locations/rape_events.qsrc

@@ -1,67 +1,69 @@
 # rape_events
 
 if $ARGS[0] = 'rapist_generate':
-	i = 0
+	re_i = 0
 	temp['rapist_age'] = rand(19,45)
 	:rape_gangbang_loop
-	gs 'npcgeneratec', 0, 'rapist', rand(temp['rapist_age'],(temp['rapist_age'] + 8))
-	$rapist[i] = $npclastgenerated
-	if i < 2 and $temp['rape_type'] = 'gang':
-		i += 1
+	gs 'npcgeneratec', 0, 'rapist', rand(temp['rapist_age'], (temp['rapist_age'] + 8))
+	$rapist[re_i] = $npclastgenerated
+	if re_i < 2 and $temp['rape_type'] = 'gang':
+		re_i += 1
 		jump 'rape_gangbang_loop'
 	end
+	killvar 're_i'
 end
 
 if $ARGS[0] = 'fight_init':
 	$temp['rape_loc'] = $loc
-	
+
 	gs 'fight', 'initFight'
-	i = 0
-	temp['rapist_age'] = rand(19,45)
+	re_i = 0
+	temp['rapist_age'] = rand(19, 45)
 	:rape_gang_fight_loop
-	gs 'npcgeneratec', 0, 'rapist', rand(temp['rapist_age'],(temp['rapist_age'] + 8))
-	$rapist[i] = $npclastgenerated
-	$opp_name[i] = 'Rapist <<i+1>>'
-	$opp_image[i] = '<img <<$set_imgh>> src="images/locations/shared/street/mugger.jpg">'
-	opp_def[i] = rand(40,60)
-	opp_run[i] = rand(40,60)
-	opp_wrstlng[i] = rand(5,15)
-	opp_kick[i] = 0
-	opp_punch[i] = rand(40,60)
-	opp_jab[i] = rand(40,60)
-	opp_stren[i] = rand(70,90)
-	opp_agil[i] = rand(30,50)
-	opp_vital[i] = rand(40,60)
-	opp_react[i] = rand(30,50)
-	opp_health[i] = dyneval($calcNPCFightHealth)
-	opp_willpwr[i] = 100
-	
-	if i < 2 and $temp['rape_type'] = 'gang':
-		i += 1
+	gs 'npcgeneratec', 0, 'rapist', rand(temp['rapist_age'], (temp['rapist_age'] + 8))
+	$rapist[re_i] = $npclastgenerated
+	$opp_name[re_i] = 'Rapist <<re_i+1>>'
+	$opp_image[re_i] = '<img <<$set_imgh>> src="images/locations/shared/street/mugger.jpg">'
+	opp_def[re_i] = rand(40, 60)
+	opp_run[re_i] = rand(40, 60)
+	opp_wrstlng[re_i] = rand(5, 15)
+	opp_kick[re_i] = 0
+	opp_punch[re_i] = rand(40, 60)
+	opp_jab[re_i] = rand(40, 60)
+	opp_stren[re_i] = rand(70, 90)
+	opp_agil[re_i] = rand(30, 50)
+	opp_vital[re_i] = rand(40, 60)
+	opp_react[re_i] = rand(30, 50)
+	opp_health[re_i] = dyneval($calcNPCFightHealth)
+	opp_willpwr[re_i] = 100
+
+	if re_i < 2 and $temp['rape_type'] = 'gang':
+		re_i += 1
 		jump 'rape_gang_fight_loop'
 	else
 		fightEnding = 23
 		gt 'fight', 'start'
 	end
+	killvar 're_i'
 end
 
 if $ARGS[0] = 'fight_win':
 	if $temp['rape_type'] = 'gang':
 		money += rand(1500,6000)
-		if $loc = 'pav_park' or $loc = 'city_park':
+		if $loc = 'pav_park' or $loc = 'city_park' or $loc = 'pushkin_parks':
 			'You defeat the rapists and empty their wallets as they lie unconscious in the dirt.'
 		else
 			'You defeat the rapists and empty their wallet as they lie unconscious on the street.'
 		end
 	else
 		money += rand(500,2000)
-		if $loc = 'pav_park' or $loc = 'city_park':
+		if $loc = 'pav_park' or $loc = 'city_park' or $loc = 'pushkin_parks':
 			'You defeat the rapists and empty their wallets as they lie unconscious on the street.'
 		else
 			'You defeat the rapist and empty his wallet as he lies unconscious on the street.'
 		end
 	end
-	
+
 	act 'Leave': gt $loc, $loc_arg
 end
 
@@ -71,7 +73,7 @@ if $ARGS[0] = 'urban_fight_rape':
 	else
 		temp['skip'] = 0
 	end
-	
+
 	'<center><img <<$set_imgh>> src="images/locations/shared/street/alleynight.jpg"></center>'
 	'Try as you might, you just can''t win and you''re violently knocked to the ground, breath driven from your body as your back slams into the concrete. Your vision swims and you roll over onto your stomach, trying to get your hands and feet underneath you, simultaneously trying to crawl away.'
 	'"Fucking bitch! You''re going to pay for that!" A muted clinking rings in the alley and some part of your brain registers that it sounds like a belt buckle.'
@@ -113,8 +115,8 @@ if $ARGS[0] = 'urban_rape':
 		gs 'rape_events', 'urban_rape_struggle'
 		gs 'rape_events', 'urban_rape_limp'
 	end
-	
-	act 'Fight back': 
+
+	act 'Fight back':
 		cla & *clr
 		'<center><img <<$set_imgh>> src="images/locations/shared/street/alleynight.jpg"></center>'
 		'You hesitate a moment, relaxing your body, making him think you''re about to submit. Then without warning, you throw your head back, smashing it into your attacker''s forehead. He stumbles backward and you bring your hands up. You''re not going to go down on this guy without a fight!'
@@ -142,7 +144,7 @@ if $ARGS[0] = 'urban_rape_struggle':
 				'"Made me work for it you cunt. Now I''m going to <i>really</i> enjoy this!" You feel your pants violently yanked down over your ass. "No panties! You fucking <i>whore!</i>"'
 			end
 		end
-		
+
 		if rand(0,1) = 1:
 			!! vaginal rape
 			$temp['rape'] = 'vaginal'
@@ -342,7 +344,7 @@ if $ARGS[0] = 'urban_panties_after':
 				gs 'rape_events', 'urban_rape_end'
 			end
 		end
-		
+
 		act'Discard them':
 			gs 'panties', 'dispose'
 			cla & *nl
@@ -362,7 +364,7 @@ if $ARGS[0] = 'urban_panties_after':
 				end
 				gs 'rape_events', 'urban_repress_end'
 			else
-				
+
 				*nl
 				if PCloSkirt > 0:
 					if $temp['rape'] = 'vaginal':
@@ -382,7 +384,7 @@ if $ARGS[0] = 'urban_panties_after':
 				gs 'rape_events', 'urban_rape_end'
 			end
 		end
-	
+
 	end
 end
 
@@ -395,7 +397,7 @@ if $ARGS[0] = 'urban_rape_end':
 		'You''re tired. You''re sore. All you want is to go home and cry.'
 		act 'Leave': gt $loc, $loc_arg
 	end
-	
+
 	act'Go home (stoic)':
 		cla & *clr
 		'<center><img <<$set_imgh>> src="images/locations/shared/street/alleynight.jpg"></center>'
@@ -406,7 +408,7 @@ if $ARGS[0] = 'urban_rape_end':
 		'But that doesn''t mean you need to remain a victim. You''re still alive. The rapist didn''t kill you. You''re not going to let yourself succumb after the fact.'
 		act 'Leave': gt $loc, $loc_arg
 	end
-	
+
 	gs 'rape_events', 'urban_police_after'
 end
 
@@ -419,7 +421,7 @@ if $ARGS[0] = 'urban_repress_end':
 		'You''re tired. You''re sore. All you want is to go home and put an end to this day.'
 		act 'Leave': gt $loc, $loc_arg
 	end
-	
+
 	act'Pretend nothing ever happened':
 		cla & *clr
 		'<center><img <<$set_imgh>> src="images/locations/shared/street/alleynight.jpg"></center>'
@@ -446,7 +448,7 @@ if $ARGS[0] = 'urban_police_after':
 			end
 			act 'Continue': gt'rape_events', 'rape_report'
 		end
-		
+
 		act'Don''t go':
 			cla & *nl
 			'For a brief moment you consider telling the police what happened, but emotion wells up inside you and you''re immediately filled with thoughts of disgust and shame. It doesn''t make sense. It''s not like you wanted this to happen. But still. The idea of sharing what happened to you, even to the police... You already feel filthy from what happened tonight. You don''t want to feel even worse. The only thing you want is to go home.'
@@ -495,9 +497,9 @@ if $ARGS[0] = 'park_rape_fight_start':
 	'Try as you might, you just can''t win and you''re violently knocked to the ground, breath driven from your body as you''re slammed into the mud. Your vision swims and you roll over onto your stomach, struggling to crawl away.'
 	*nl
 	'"Fucking bitch! You''re going to pay for that!" A multitude of hands grab you and drag you back into the bushes.'
-	
+
 end
-	
+
 if $ARGS[0] = 'park_rape_struggle_start':
 	$temp['rape_type'] = 'gang'
 	gs 'rape_events', 'rapist_generate'
@@ -528,7 +530,7 @@ if $ARGS[0] = 'park_rape_solo':
 			'"Made me work for it you cunt. Now I''m going to <i>really</i> enjoy this!" You feel your pants violently yanked down over your ass. "No panties! You fucking <i>whore!</i>"'
 		end
 	end
-	
+
 	if rand(0,1) = 1:
 		!! vaginal rape
 		act'<i><b>MMMMMRRMMPH-!!!</b></i>':
@@ -574,7 +576,7 @@ if $ARGS[0] = 'park_rape_solo':
 						end
 						act 'Continue': gt'rape_events', 'rape_report'
 					end
-					
+
 					act'Don''t go':
 						cla & *clr
 						'<center><img <<$set_imgh>> src="images/locations/shared/street/alleynight.jpg"></center>'
@@ -628,7 +630,7 @@ if $ARGS[0] = 'park_rape_solo':
 						end
 						act 'Continue': gt'rape_events', 'rape_report'
 					end
-					
+
 					act'Don''t go':
 						cla & *clr
 						'<center><img <<$set_imgh>> src="images/locations/shared/street/alleynight.jpg"></center>'
@@ -644,16 +646,17 @@ if $ARGS[0] = 'park_rape_solo':
 end
 
 if $ARGS[0] = 'park_gangrape_start':
-!!	i = 0
+!!	re_i = 0
 !!	:rapist_generate_loop
 !!	temp['rapist_age'] = rand(19,45)
-!!	if i <= 3:
+!!	if re_i <= 3:
 !!		gs 'npcgeneratec', 0, 'rapist', rand(temp['rapist_age'],(temp['rapist_age'] + 8))
 !!		$rapist[i] = $npclastgenerated
-!!		i += 1
+!!		re_i += 1
 !!	end
 !!	jump 'rapist_generate_loop'
-	
+!!	killvar 're_i'
+
 	gs 'boyStat', $rapist[0]
 !!	'<center><img <<$set_imgh>> src="images/shared/sex/rape/gangrape1.jpg"></center>'
 	'<center><video autoplay loop src="images/shared/sex/rape/park_gangrape_undress1.mp4"></video></center>'
@@ -661,9 +664,9 @@ if $ARGS[0] = 'park_gangrape_start':
 	*nl
 	'You can''t escape.'
 	gs 'rape_events', 'park_gangrape_struggle1'
-	
+
 !!	act'Go limp':
-	
+
 !!	end
 end
 
@@ -803,7 +806,7 @@ if $ARGS[0] = 'park_gangrape_end1':
 		'Even as you try to scream, hot bitter sperm fills your mouth and your rapist jams his entire cock down your throat. Tears fill your eyes as you are forced to swallow or drown.'
 		gs 'rape_events', 'park_gangrape_end2'
 	end
-	
+
 	act'Pass out':
 		cla & *clr
 		'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/boy/artem/sex/park/rape5.jpg"></center>'
@@ -831,7 +834,7 @@ if $ARGS[0] = 'park_gangrape_end2':
 		'You writhe on the ground, trembling as they walk away laughing, as casual as if they had just finished getting drunk at the cinema. By the time you manage to struggle to your knees, they''re already gone.'
 		gs 'rape_events', 'park_walkaway1'
 	end
-	
+
 	act'Pass out':
 		cla & *clr
 		'<center><img <<$set_imgh>> src="images/characters/pavlovsk/school/boy/artem/sex/park/rape5.jpg"></center>'
@@ -861,7 +864,7 @@ if $ARGS[0] = 'park_wakeup':
 	act'Wake up':
 		cla & *clr
 		'<center><img <<$set_imgh>> src="images/shared/sex/rape/park_after_nude1.jpg"></center>'
-		
+
 		'Slowly, you come back to consciousness and your eyes creak open.'
 		*nl
 		'You''re laying naked in the mud. Your body aches and something leaks from your sore ass and pussy and your mouth has an odd taste in it.'
@@ -883,7 +886,7 @@ if $ARGS[0] = 'park_wakeup':
 end
 
 if $ARGS[0] = 'park_wakeup_morning':
-	
+
 end
 
 if $ARGS[0] = 'park_walkaway1':
@@ -900,11 +903,11 @@ if $ARGS[0] = 'park_walkaway1':
 		else
 			'Your outfit is in tatters, torn to shreds.'
 		end
-		
+
 		if $braworntype ! 'none':
 			'Your bra''s clasps have been ripped off, the cups badly ripped.'
 		end
-		
+
 		if $pantyworntype ! 'none':
 			'Your panties have been snapped, now nothing more than a randomly shaped string of fabric.'
 		end
@@ -919,7 +922,7 @@ if $ARGS[0] = 'park_walkaway2':
 		'Naked and with cum leaking from every orifice, you limp away, looking for the road...'
 		act 'Continue': gt $loc, $loc_arg
 	end
-	
+
 	act'Back to the road (stoic)':
 		cla & *clr
 		'<center><video autoplay loop src="images/shared/sex/rape/park_after_nude_walk1.mp4"></video></center>'
@@ -941,7 +944,7 @@ if $ARGS[0] = 'park_walkaway3':
 		'You don''t even bother trying to find your clothes. Instead you limp away, naked and with cum leaking from every orifice, looking for the road...'
 		act 'Continue': gt $loc, $loc_arg
 	end
-	
+
 	act'Back to the road (stoic)':
 		cla & *clr
 		'<center><video autoplay loop src="images/shared/sex/rape/park_after_nude_walk1.mp4"></video></center>'
@@ -1014,7 +1017,7 @@ if $ARGS[0] = 'rape_report':
 							cla & *clr
 							'<center><img <<$set_imgh>> src="images/locations/shared/police/pavrec.jpg"></center>'
 							'With that, you conclude the interview and are led to the front door.'
-							'"We''ll take this information into consideration. Again, we''re very sorry for what happened to you." And then he walks away.' 
+							'"We''ll take this information into consideration. Again, we''re very sorry for what happened to you." And then he walks away.'
 							*nl
 							'Leaving you alone with your thoughts and memories of your rape...'
 							act 'Leave': gt'pav_market'
@@ -1096,7 +1099,7 @@ if $ARGS[0] = 'rape_report':
 							'<center><img <<$set_imgh>> src="images/locations/city/citycenter/police/cityext.jpg"></center>'
 							'Closing the bathroom door, you open the kit and you swab your insides, feeling humiliated and disgusted when it comes back covered in semen. Packaging it up, you re-open the door and hand the evidence to the officer.'
 							'With that, you conclude the interview and are led to the front door.'
-							'"We''ll take this information into consideration. Again, we''re very sorry for what happened to you." And then he walks away.' 
+							'"We''ll take this information into consideration. Again, we''re very sorry for what happened to you." And then he walks away.'
 							*nl
 							'Leaving you alone with your thoughts and memories of your rape...'
 							act 'Leave': gt'city_center'