Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function pick_character_image(girl:Girl):MovieClip
  2. {
  3.     switch(girl.dress_id()) {
  4.     case -1:                    // nude
  5.         if(worksafe) {
  6.             return null;
  7.         }
  8.         temp = int(Math.random()*3) + 1;
  9.         return girl.get_image("menace" + temp + "Nude");
  10.     case cItem.Swimsuit:
  11.         return girl.get_image("menaceJobFrontSwimsuit");
  12.     case cItem.Maid_Dress:
  13.         return girl.get_image("menace1Maid");
  14.     case cItem.School_Uniform:
  15.         return girl.get_image("menace1SchoolUniform");
  16.     case cItem.Plugsuit:
  17.         return girl.get_image("menace1PlugSuit");
  18.     default:
  19.         break;
  20.     }
  21.     return girl.get_image("charMenace1");
  22. }
  23.  
  24.  
  25. function pick_job_forward(girl:Girl)
  26. {
  27.     switch(girl.dress_id()) {
  28.     case -1:                    // nude
  29.         if(worksafe) {
  30.             return null;
  31.         }
  32.         return girl.get_image("menace1FrontNude");
  33.     case cItem.Swimsuit:
  34.         return girl.get_image("menaceJobFrontSwimsuit");
  35.     case cItem.Maid_Dress:
  36.         return girl.get_image("menace1Maid");
  37.     case cItem.School_Uniform:
  38.         return girl.get_image("menace1SchoolUniform");
  39.     case cItem.Plugsuit:
  40.         return girl.get_image("menace1PlugSuit");
  41.     }
  42.     return girl.get_image("menaceJobFront1");
  43. }
  44.  
  45. var picture_list = [
  46.     new PictureEntry({
  47.         picture_id  :   Picture.Character_Screen,
  48.         func        :   pick_character_image
  49.     }),
  50.     new PictureEntry({
  51.         picture_id  :   Picture.House_Job_Rest,
  52.         name        :   "menace1Rest"
  53.     }),
  54.     new PictureEntry({
  55.         picture_id  :   Picture.House_Job_Clean,
  56.         name        :   "menace1Cleaning"
  57.     }),
  58.     new PictureEntry({
  59.         picture_id  :   Picture.House_Job_Lockdown,
  60.         nsfw        :   true,
  61.         name        :   "menace1Lockdown"
  62.     }),
  63.     new PictureEntry({
  64.         picture_id  :   Picture.House_Job_Whore,
  65.         nsfw        :   true,
  66.         name        :   "menace1Whore"
  67.     }),
  68.  
  69.     new PictureEntry({
  70.         picture_id  :   Picture.Auction1,
  71.         nsfw        :   true,
  72.         name        :   "menace1Nude"
  73.     }),
  74.     new PictureEntry({
  75.         picture_id  :   Picture.Auction2,
  76.         nsfw        :   true,
  77.         name        :   "menace2Nude"
  78.     }),
  79.     new PictureEntry({
  80.         picture_id  :   Picture.Auction3,
  81.         nsfw        :   true,
  82.         name        :   "menace3Nude"
  83.     }),
  84.  
  85.     new PictureEntry({
  86.         picture_id  :   Picture.Job_Forward,
  87.         func        :   pick_job_forward
  88.     }),
  89.  
  90.     new PictureEntry({
  91.         picture_id  :   Picture.Pimp_Screen,
  92.         nsfw        :   true,
  93.         name        :   "menace1PimpBackalley"
  94.     }),
  95.     new PictureEntry({
  96.         picture_id  :   Picture.Pimp_Screen_Rape,
  97.         nsfw        :   true,
  98.         func        :   "menace1WalkRedLightDistrictRaped"
  99.     }),
  100.  
  101.     new PictureEntry({
  102.         picture_id  :   Picture.Train_BJ,
  103.         nsfw        :   true,
  104.         random      :   [ "menace1JobBlowjob", "menace2StraightBlowJobJob" ]
  105.     }),
  106.     new PictureEntry({
  107.         picture_id  :   Picture.Train_Fuck,
  108.         nsfw        :   true,
  109.         name        :   "menace.menace1JobFuck"
  110.     }),
  111.     new PictureEntry({
  112.         picture_id  :   Picture.Train_Anal,
  113.         nsfw        :   true,
  114.         name        :   "menace.menace1JobAnal"
  115.     }),
  116. /*
  117.  *  randomly mixing generics and specific images... mutter mutter
  118.  */
  119.     new PictureEntry({
  120.         picture_id  :   Picture.Train_Anal,
  121.         nsfw        :   true,
  122.         func        :   function(girl:Girl) {
  123.             if(Math.random() < 0.666) {
  124.                 var generics:cGeneric = new cGeneric();
  125.                 return generics.get_image(Picture.Train_Anal, "black", false);
  126.             }
  127.             return girl.get_image("menace1TitFuckJob");
  128.         }
  129.     }),
  130.  
  131.     new PictureEntry({
  132.         picture_id  :   Picture.FemP_FemS_Strapon,
  133.         nsfw        :   true,
  134.         name        :   "menace1LesbianStrapOnJob"
  135.     }),
  136.     new PictureEntry({
  137.         picture_id  :   Picture.FemP_FemS_Trib,
  138.         nsfw        :   true,
  139.         name        :   "menace1LesbianTribJob"
  140.     }),
  141.     new PictureEntry({
  142.         picture_id  :   Picture.FemP_FemS_Cunn,
  143.         nsfw        :   true,
  144.         name        :   "menace1LesbianCunJob"
  145.     }),
  146.  
  147.     new PictureEntry({
  148.         picture_id  :   Picture.FutP_FutS_Fuck,
  149.         nsfw        :   true,
  150.         random      :   [ "menace1FutaOnFutaFuckingJob", "menace2FutaOnFutaFuckingJob" ]
  151.     }),
  152.     new PictureEntry({
  153.         picture_id  :   Picture.FutP_FutS_Anal,
  154.         nsfw        :   true,
  155.         name        :   "menace1FutaonFutaBothJobs"
  156.     }),
  157.     new PictureEntry({
  158.         picture_id  :   Picture.FutP_FutS_Fuck,
  159.         nsfw        :   true,
  160.         name        :   "menace2FutaonFutaBothJobs"
  161.     }),
  162.  
  163.     new PictureEntry({
  164.         picture_id  :   Picture.Train_MaleP_FutS_1,
  165.         nsfw        :   true,
  166.         random      :   [ "menace1JobBlowjob", "menace2StraightBlowJobJob" ]
  167.     }),
  168.     new PictureEntry({
  169.         picture_id  :   Picture.Train_MaleP_FutS_2,
  170.         nsfw        :   true,
  171.         name        :   "menace1MaleOnFutaBlowJob"
  172.     }),
  173.     new PictureEntry({
  174.         picture_id  :   Picture.Train_MaleP_FutS_3,
  175.         nsfw        :   true,
  176.         generic     :   true,
  177.     }),
  178.     new PictureEntry({
  179.         picture_id  :   Picture.Train_FemP_FutS_1,
  180.         nsfw        :   true,
  181.         generic     :   true,
  182.     }),
  183.  
  184.     new PictureEntry({
  185.         picture_id  :   Picture.Train_FemP_FutS_2,
  186.         nsfw        :   true,
  187.         name        :   "menace1LesbianPlayerFutaSlaveTribJob"
  188.     }),
  189.     new PictureEntry({
  190.         picture_id  :   Picture.Train_FemP_FutS_3,
  191.         nsfw        :   true,
  192.         name        :   "menace1LesbianOnFutaCunJob"
  193.     }),
  194.  
  195.     new PictureEntry({
  196.         picture_id  :   Picture.Train_FemP_FutS_3,
  197.         nsfw        :   true,
  198.         name        :   "menace1LesbianOnFutaCunJob"
  199.     }),
  200.     new PictureEntry({
  201.         picture_id  :   Picture.Train_FutP_FemS_BJ,
  202.         nsfw        :   true,
  203.         name        :   "menace1FutaPlayerNotFutaGirlBlowJobJob"
  204.     }),
  205.     new PictureEntry({
  206.         picture_id  :   Picture.Train_FutP_FemS_Fuck,
  207.         nsfw        :   true,
  208.         generic     :   true,
  209.     }),
  210.     new PictureEntry({
  211.         picture_id  :   Picture.Train_FutP_FemS_Anal,
  212.         nsfw        :   true,
  213.         generic     :   true,
  214.     }),
  215.     new PictureEntry({
  216.         picture_id  :   Picture.Train_FutP_FemS_Strapon,
  217.         nsfw        :   true,
  218.         generic     :   true,
  219.     }),
  220.     new PictureEntry({
  221.         picture_id  :   Picture.Train_FutP_FemS_Trib,
  222.         nsfw        :   true,
  223.         generic     :   true,
  224.     }),
  225.     new PictureEntry({
  226.         picture_id  :   Picture.Train_FutP_FemS_Cun,
  227.         nsfw        :   true,
  228.         generic     :   true,
  229.     }),
  230.     new PictureEntry({
  231.         picture_id  :   Picture.Toys_Dildo,
  232.         nsfw        :   true,
  233.         name        :   "menace1DildoJob"
  234.     }),
  235.     new PictureEntry({
  236.         picture_id  :   Picture.Toys_Anal,
  237.         nsfw        :   true,
  238.         name        :   "menace1AnalToyJob"
  239.     }),
  240.  
  241.     new PictureEntry({
  242.         picture_id  :   Picture.Sex_Mast_Futa,
  243.         nsfw        :   true,
  244.         random      :   [
  245.             "menace1masturbateFemaleJob",
  246.             "menace2masturbateFemaleJob",
  247.             "menace3masturbateFemaleJob",
  248.             "menace4masturbateFemaleJob"
  249.         ]
  250.     }),
  251.     new PictureEntry({
  252.         picture_id  :   Picture.Sex_Mast_Futa_Self,
  253.         nsfw        :   true,
  254.         generic     :   true
  255.     }),
  256. ];
  257.  
  258. /*
  259.  * The thing here is to return the movieclip and let the caller display it
  260.  * Much as with event data
  261.  */
  262. //note character screen has to be a seprate if statement or empty arrays will crash the game
  263. function MenacePics(girl:Girl, pic:int):MovieClip
  264. {
  265.     var temp:int = new int;
  266.     var hairColor:String = "black";
  267.     var hairLength:Boolean = false;
  268.     var generics:cGeneric = new cGeneric();
  269. /*
  270.  *  we could do this more efficiently with an object
  271.  *  or a dictionary - but this will probably do
  272.  */
  273.     for(var i = 0; i < picture_list.length; i++) {
  274.         var o:Object = picture_list[i];
  275. /*
  276.  *      if this is not the droid we're looking for ...
  277.  *      skip on to the next entry
  278.  */
  279.         if(o.picture_id != pic) {
  280.             continue;
  281.         }
  282. /*
  283.  *      First priority: worksafe
  284.  *      if nsfw is set, return null
  285.  */
  286.         if(worksafe && o.nsfw) {
  287.             return null;
  288.         }
  289. /*
  290.  *      After that: func tags override everything.
  291.  *      if there's a func, we run it and return what
  292.  *      it returns - no questions asked.
  293.  */
  294.         if(o.func != null) {
  295.             return o.func(girl);
  296.         }
  297. /*
  298.  *      OK: if it's a named clip, we load and return that
  299.  */
  300.         if(o.name) {
  301.             var clip = girl.get_image(o.name);
  302.             if(clip) {
  303.                 return clip;
  304.             }
  305.             trace("Error: can't find clip named " + o.name);
  306.         }
  307. /*
  308.  *      if we get here, there was no clip, or it's a generic
  309.  *      or we just don't know what to do.
  310.  *      these are all the same cases as "picture_id not found"
  311.  *      so break out the loop and look for a generic
  312.  */
  313.         break;
  314.     }
  315.     var generics:cGeneric = new cGeneric();
  316.     return generics.get_image(pic, "black", false);
  317. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement