Shuvit game master repo. http://shuvit.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

co_ActionState.py 150KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258
  1. import bge
  2. def main():
  3. cont = bge.logic.getCurrentController()
  4. own = cont.owner
  5. scene = bge.logic.getCurrentScene()
  6. skater = scene.objects["Char4"]
  7. deck = scene.objects["deck"]
  8. trucks = scene.objects["trucks"]
  9. loop_layer = 450
  10. trans_layer = 460
  11. flip_layer = 470
  12. #set possible requestActions
  13. requestActions_list = ['reg_roll', 'fak_roll', 'reg_turnLeft', 'reg_turnLeft_out', 'reg_turnRight', 'reg_turnRight_out', 'fak_turnLeft', 'fak_turnRight', 'reg_pump', 'fak_pump', 'reg_land', 'fak_land', 'reg_idle', 'reg_idle_nb', 'fak_idle', 'fak_idle_nb', 'reg_walk', 'reg_walk_nb', 'reg_walkFast', 'reg_walkFast_nb', 'fak_walk', 'fak_walk_nb', 'fak_walkFast', 'fak_walkFast_nb', 'reg_pump', 'fak_pump', 'reg_opos', 'fak_opos', 'reg_nopos', 'fak_nopos', 'reg_manual', 'fak_manual', 'reg_nmanual', 'fak_nmanual', 'reg_air', 'fak_air', 'frontside_grab', 'backside_grab', 'fak_backside_grab', 'fak_frontside_grab', 'frontside_nose_grab', 'frontside_tail_grab', 'backside_nose_grab', 'backside_tail_grab', 'fak_frontside_nose_grab', 'fak_frontside_tail_grab', 'fak_backside_nose_grab', 'fak_backside_tail_grab', 'reg_noseg', 'reg_air_nose', 'fak_air_nose', 'reg_air_tail', 'fak_air_tail', 'reg_nosegr','reg_nosegl', 'fak_noseg','fak_nosegr', 'fak_nosegl', 'reg_nosegl', 'fak_tailg', 'fak_tailgr', 'fak_tailgl', 'reg_tailg', 'reg_tailgr', 'reg_tailgl', 'reg_tailslide', 'fak_tailslide', 'reg_noseslide', 'fak_noseslide', 'nose_stall','tail_stall', 'reg_5050', 'fak_5050', 'reg_tailg', 'reg_bsboard', 'fak_bsboard', 'reg_fsboard', 'reg_powerslide', 'fak_powerslide', 'reg_fs_powerslide', 'fak_fs_powerslide', 'reg_stop', 'fak_stop', 'fak_fp_rback', 'reg_fp_rback', 'reg_back_invert', 'fak_fr_invert']
  14. oneshotActions_list = ['reg_jump', 'fak_jump', 'reg_onboard', 'fak_onboard', 'reg_dropin', 'fak_dropin', 'reg_land', 'fak_land', 'reg_push', 'fak_push', 'reg_push_goof', 'fak_push_goof', 'reg_manual_revert_ccw', 'revert1', 'revert2', 'revert3', 'revert4', 'reg_ollie', 'reg_nollie', 'reg_nollie', 'fak_ollie', 'fak_nollie', 'reg_kickflip', 'fak_kickflip', 'reg_varial_kickflip', 'fak_varial_kickflip', 'reg_nollie_varial_kickflip', 'fak_nollie_varial_kickflip', 'reg_nollie_varial_heelflip', 'fak_nollie_varial_heelflip', 'reg_varial_heelflip', 'fak_varial_heelflip', 'reg_nollie_kickflip', 'fak_nollie_kickflip', 'reg_heelflip', 'fak_heelflip', 'reg_nollie_heelflip', 'fak_nollie_heelflip', 'reg_shovit', 'fak_shovit', 'reg_shovit360', 'fak_shovit360', 'reg_fsshovit360', 'fak_fsshovit360', 'reg_nollie_shovit', 'fak_nollie_shovit', 'reg_fsshovit', 'fak_fsshovit', 'reg_nollie_fsshovit', 'fak_nollie_fsshovit', 'reg_nollie_shovit360', 'fak_nollie_shovit360', 'reg_nollie_fsshovit', 'fak_nollie_fsshovit', 'reg_turnRight_out', 'reg_turnLeft_out', 'fak_turnRight_out', 'fak_turnLeft_out', 'reg_opos_out', 'fak_opos_out', 'reg_nopos_out', 'fak_nopos_out', 'reg_pump_out', 'fak_pump_out', 'reg_powerslide_out', 'fak_powerslide_out', 'reg_fs_powerslide_out', 'fak_fs_powerslide_out', 'reg_stop_out', 'fak_stop_out', 'reg_noseslide_out', 'fak_noseslide_out', 'reg_tailslide_out', 'fak_tailslide_out', 'reg_brfoot', 'reg_frfoot', 'reg_blfoot', 'reg_flfoot', 'fak_brfoot', 'fak_frfoot', 'fak_blfoot', 'fak_flfoot', 'fak_hippy', 'reg_hippy', 'reg_hippy_nccw', 'fak_hippy_nccw', 'reg_hippy_ncw', 'fak_hippy_ncw', 'reg_manual_revert_cw', 'fak_manual_revert_cw', 'reg_manual_revert_ccw', 'fak_manual_revert_ccw', 'fak_fp_rback', 'reg_fp_rback', 'reg_back_invert_out', 'fak_fr_invert_out', 'fak-reg_roll', 'reg-fak_roll']
  15. jump_overrideList = ['reg_ollie', 'reg_nollie', 'reg_nollie', 'fak_ollie', 'fak_nollie', 'reg_kickflip', 'fak_kickflip', 'reg_varial_kickflip', 'fak_varial_kickflip', 'reg_nollie_varial_kickflip', 'fak_nollie_varial_kickflip', 'reg_nollie_varial_heelflip', 'fak_nollie_varial_heelflip', 'reg_varial_heelflip', 'fak_varial_heelflip', 'reg_nollie_kickflip', 'fak_nollie_kickflip', 'reg_heelflip', 'fak_heelflip', 'reg_nollie_heelflip', 'fak_nollie_heelflip', 'reg_shovit', 'fak_shovit', 'reg_shovit360', 'fak_shovit360', 'reg_fsshovit360', 'fak_fsshovit360', 'reg_nollie_shovit', 'fak_nollie_shovit', 'reg_fsshovit', 'fak_fsshovit', 'reg_nollie_fsshovit', 'fak_nollie_fsshovit', 'reg_nollie_shovit360', 'fak_nollie_shovit360', 'reg_nollie_fsshovit', 'fak_nollie_fsshovit', 'reg_brfoot', 'reg_frfoot', 'reg_blfoot', 'reg_flfoot', 'fak_brfoot', 'fak_frfoot', 'fak_blfoot', 'fak_flfoot']
  16. #initialize variables
  17. try:
  18. actionState = own['actionState']
  19. l_actionState = own['l_actionState']
  20. requestAction = own['requestAction']
  21. l_requestAction = own['l_requestAction']
  22. queueAction = own['queueAction']
  23. actionTimer = own['actionTimer']
  24. except:
  25. print("init")
  26. own['actionState'] = 'empty'
  27. own['l_actionState'] = 'empty'
  28. own['requestAction'] = 'empty'
  29. own['l_requestAction'] = 'empty'
  30. own['queueAction'] = 'empty'
  31. own['actionTimer'] = 0
  32. actionTimer = 0
  33. queueAction = 'empty'
  34. requestAction = 'empty'
  35. actionState = 'empty'
  36. l_actionState = 'empty'
  37. l_requestAction = 'empty'
  38. #print("ra1: ", requestAction) \
  39. if requestAction == 'empty':
  40. print("*******empty request****")
  41. isplaying = skater.isPlayingAction(flip_layer)
  42. transPlaying = skater.isPlayingAction(trans_layer)
  43. #if isplaying == False:
  44. #own['actionTimer'] = 0
  45. if own['actionTimer'] != 0 and transPlaying == False and isplaying == False:
  46. own['actionTimer'] = 0
  47. actionTimer = 0
  48. print('reset actionTimer')
  49. #pass
  50. #================
  51. #stance change detection
  52. if requestAction == 'reg_roll' and (l_actionState == 'fak_roll' or l_actionState == 'fak_land'):
  53. print("fak-reg_roll")
  54. requestAction = 'fak-reg_roll'
  55. own['requestAction'] = 'fak-reg_roll'
  56. if requestAction == 'fak_roll' and (l_actionState == 'reg_roll' or l_actionState == 'reg_land'):
  57. print("reg-fak_roll")
  58. requestAction = 'reg-fak_roll'
  59. own['requestAction'] = 'reg-fak_roll'
  60. #===============
  61. #land action over ride
  62. if (requestAction == 'reg_land' or requestAction == 'fak_land') and own['grindHit'] == True:
  63. if l_requestAction == 'reg_land' or l_requestAction == 'fak_land':
  64. print("landing action fucked")
  65. else:
  66. #print("using old requestAction")
  67. requestAction = l_requestAction
  68. own['requestAction'] = requestAction
  69. own['l_actionState'] = requestAction
  70. actionState = requestAction
  71. own['actionTimer'] = 0
  72. actionTimer = 0
  73. if (own['l_requestAction'] == 'reg_air_nose' or own['l_requestAction'] == 'reg_air_tail' or own['l_requestAction'] == 'fak_air_nose' or own['l_requestAction'] == 'fak_air_tail') and ((requestAction == 'reg_land' or requestAction == 'fak_land') or (own['requestAction'] == 'reg_roll' or own['requestAction'] == 'fak_roll')):
  74. #if (own['l_requestAction'] == 'reg_air_nose' or own['l_requestAction'] == 'reg_air_tail' or own['l_requestAction'] == 'fak_air_nose' or own['l_requestAction'] == 'fak_air_tail') and (requestAction == 'reg_land' or requestAction == 'fak_land'):
  75. requestAction = own['l_requestAction']
  76. #revert override
  77. if requestAction == 'revert1' or requestAction == 'revert2' or requestAction == 'revert3' or requestAction == 'revert4':
  78. #print("@@@revert override")
  79. actionState = requestAction
  80. own['actionState'] = requestAction
  81. if l_requestAction != 'revert1' and l_requestAction != 'revert2' and l_requestAction != 'revert3' and l_requestAction != 'revert4':
  82. print("stopping revert layers")
  83. skater.stopAction(loop_layer)
  84. trucks.stopAction(loop_layer)
  85. deck.stopAction(loop_layer)
  86. skater.stopAction(trans_layer)
  87. trucks.stopAction(trans_layer)
  88. deck.stopAction(trans_layer)
  89. #dirty tailslide fix
  90. # if l_requestAction == 'reg_tailslide' and (requestAction == 'reg_5050' or requestAction == 'reg_roll' or requestAction == 'reg_opos'):
  91. # requestAction = 'reg_tailslide'
  92. #check last actionState to see if an out action is needed
  93. elif requestAction not in jump_overrideList:
  94. if l_actionState == 'reg_turnRight' and requestAction != 'reg_turnRight':
  95. requestAction = 'reg_turnRight_out'
  96. actionState = 'reg_turnRight_out'
  97. if l_actionState == 'reg_turnLeft' and requestAction != 'reg_turnLeft':
  98. requestAction = 'reg_turnLeft_out'
  99. actionState = 'reg_turnLeft_out'
  100. if l_actionState == 'fak_turnRight' and requestAction != 'fak_turnRight':
  101. requestAction = 'fak_turnRight_out'
  102. actionState = 'fak_turnRight_out'
  103. if l_actionState == 'fak_turnLeft' and requestAction != 'fak_turnLeft':
  104. requestAction = 'fak_turnLeft_out'
  105. actionState = 'fak_turnLeft_out'
  106. if l_actionState == 'reg_opos' and requestAction != 'reg_opos':
  107. requestAction = 'reg_opos_out'
  108. actionState = 'reg_opos_out'
  109. if l_actionState == 'fak_opos' and requestAction != 'fak_opos':
  110. requestAction = 'fak_opos_out'
  111. actionState = 'fak_opos_out'
  112. if l_actionState == 'reg_nopos' and requestAction != 'reg_nopos':
  113. requestAction = 'reg_nopos_out'
  114. actionState = 'reg_nopos_out'
  115. if l_actionState == 'fak_nopos' and requestAction != 'fak_nopos':
  116. requestAction = 'fak_nopos_out'
  117. actionState = 'fak_nopos_out'
  118. if l_actionState == 'reg_pump' and requestAction != 'reg_pump':
  119. requestAction = 'reg_pump_out'
  120. actionState = 'reg_pump_out'
  121. if l_actionState == 'fak_pump' and requestAction != 'fak_pump':
  122. requestAction = 'fak_pump_out'
  123. actionState = 'fak_pump_out'
  124. if l_actionState == 'reg_powerslide' and requestAction != 'reg_powerslide':
  125. requestAction = 'reg_powerslide_out'
  126. actionState = 'reg_powerslide_out'
  127. if l_actionState == 'fak_powerslide' and requestAction != 'fak_powerslide':
  128. requestAction = 'fak_powerslide_out'
  129. actionState = 'fak_powerslide_out'
  130. if l_actionState == 'reg_fs_powerslide' and requestAction != 'reg_fs_powerslide':
  131. requestAction = 'reg_fs_powerslide_out'
  132. actionState = 'reg_fs_powerslide_out'
  133. if l_actionState == 'fak_fs_powerslide' and requestAction != 'fak_fs_powerslide':
  134. requestAction = 'fak_fs_powerslide_out'
  135. actionState = 'fak_fs_powerslide_out'
  136. if l_actionState == 'reg_stop' and requestAction != 'reg_stop':
  137. requestAction = 'reg_stop_out'
  138. actionState = 'reg_stop_out'
  139. if l_actionState == 'fak_stop' and requestAction != 'fak_stop':
  140. requestAction = 'fak_stop_out'
  141. actionState = 'fak_stop_out'
  142. if l_actionState == 'reg_noseslide' and requestAction != 'reg_noseslide':
  143. requestAction = 'reg_noseslide_out'
  144. actionState = 'reg_noseslide_out'
  145. if l_actionState == 'fak_noseslide' and requestAction != 'fak_noseslide':
  146. requestAction = 'fak_noseslide_out'
  147. actionState = 'fak_noseslide_out'
  148. if l_actionState == 'reg_tailslide' and requestAction != 'reg_tailslide':
  149. requestAction = 'reg_tailslide_out'
  150. actionState = 'reg_tailslide_out'
  151. if l_actionState == 'fak_tailslide' and requestAction != 'fak_tailslide':
  152. requestAction = 'fak_tailslide_out'
  153. actionState = 'fak_tailslide_out'
  154. else:
  155. print("action over ridden")
  156. #own['actionState'] = requestAction
  157. def updateAction(requestAction, actionState):
  158. try:
  159. flip_start_frame = own['flip_start_lay']
  160. flipspeed = own['flipspeed']
  161. except:
  162. flip_start_frame = 1
  163. flipspeed = .6
  164. #flipspeed = own['flipspeed']
  165. ###############################
  166. #one shot actions
  167. ###############################
  168. if requestAction in oneshotActions_list:
  169. if requestAction == 'reg_land' and own["grindHit"] == False:
  170. skater.stopAction(loop_layer)
  171. trucks.stopAction(loop_layer)
  172. deck.stopAction(loop_layer)
  173. skater.stopAction(trans_layer)
  174. trucks.stopAction(trans_layer)
  175. deck.stopAction(trans_layer)
  176. print("stopping loop and trans")
  177. actionState = 'reg_land'
  178. own['actionTimer'] = 39
  179. skater.playAction("reg_land", 1,20, layer=trans_layer, play_mode=0, speed=.5)
  180. deck.playAction("a_reg", 1,20, layer=trans_layer, play_mode=1, speed=.5)
  181. trucks.playAction("a_reg", 1,20, layer=trans_layer, play_mode=1, speed=.5)
  182. print("play land")
  183. if requestAction == 'fak_land' and own["grindHit"] == False:
  184. actionState = 'fak_land'
  185. skater.stopAction(loop_layer)
  186. trucks.stopAction(loop_layer)
  187. deck.stopAction(loop_layer)
  188. skater.stopAction(trans_layer)
  189. trucks.stopAction(trans_layer)
  190. deck.stopAction(trans_layer)
  191. own['actionTimer'] = 39
  192. skater.playAction("fak_land", 1,20, layer=trans_layer, play_mode=0, speed=.5)
  193. deck.playAction("a_reg", 1,20, layer=trans_layer, play_mode=1, speed=.5)
  194. trucks.playAction("a_reg", 1,20, layer=trans_layer, play_mode=1, speed=.5)
  195. print("play land")
  196. if requestAction == 'reg_dropin':
  197. actionState = 'reg_dropin'
  198. own['actionTimer'] = 9
  199. skater.playAction("nreg_dropin", 60,80, layer=trans_layer, play_mode=0, speed=.75)
  200. deck.playAction("a_reg_dropin", 60,80, layer=trans_layer, play_mode=0, speed=.75)
  201. trucks.playAction("a_reg_dropin", 60,80, layer=trans_layer, play_mode=0, speed=.75)
  202. if requestAction == 'fak_dropin':
  203. actionState = 'reg_dropin'
  204. own['actionTimer'] = 9
  205. skater.playAction("nfak_dropin", 60,80, layer=trans_layer, play_mode=0, speed=.75)
  206. deck.playAction("a_fak_dropin", 60,80, layer=trans_layer, play_mode=0, speed=.75)
  207. trucks.playAction("a_fak_dropin", 60,80, layer=trans_layer, play_mode=0, speed=.75)
  208. if requestAction == 'reg_turnRight_out':
  209. actionState = 'reg_turnRight_out'
  210. own['actionTimer'] = 19
  211. trans_playing = skater.isPlayingAction(trans_layer)
  212. if trans_playing:
  213. cur_frame = skater.getActionFrame(trans_layer)
  214. #cur_frame -= 2
  215. if trans_playing and cur_frame > 1:
  216. skater.playAction("nreg_right", cur_frame,1, layer=trans_layer, play_mode=0, speed=.5)
  217. deck.playAction("a_reg_right", cur_frame,1, layer=trans_layer, play_mode=0, speed=.5)
  218. trucks.playAction("a_reg", cur_frame,1, layer=trans_layer, play_mode=0, speed=.5)
  219. own['actionTimer'] = cur_frame
  220. else:
  221. skater.playAction("nreg_right", 10,1, layer=trans_layer, play_mode=0, speed=.5)
  222. deck.playAction("a_reg_right", 10,1, layer=trans_layer, play_mode=0, speed=.5)
  223. trucks.playAction("a_reg", 10,1, layer=trans_layer, play_mode=0, speed=.5)
  224. if requestAction == 'reg_turnLeft_out':
  225. actionState = 'reg_turnLeft_out'
  226. own['actionTimer'] = 19
  227. trans_playing = skater.isPlayingAction(trans_layer)
  228. if trans_playing:
  229. cur_frame = skater.getActionFrame(trans_layer)
  230. #cur_frame -= 2
  231. if trans_playing and cur_frame > 1:
  232. skater.playAction("nreg_left", cur_frame,1, layer=trans_layer, play_mode=0, speed=.5)
  233. deck.playAction("a_reg_left", cur_frame,1, layer=trans_layer, play_mode=0, speed=.5)
  234. trucks.playAction("a_reg", cur_frame,1, layer=trans_layer, play_mode=0, speed=.5)
  235. own['actionTimer'] = cur_frame
  236. else:
  237. skater.playAction("nreg_left", 10,1, layer=trans_layer, play_mode=0, speed=.5)
  238. deck.playAction("a_reg_left", 10,1, layer=trans_layer, play_mode=0, speed=.5)
  239. trucks.playAction("a_reg", 10,1, layer=trans_layer, play_mode=0, speed=.5)
  240. if requestAction == 'fak_turnRight_out':
  241. actionState = 'fak_turnRight_out'
  242. own['actionTimer'] = 19
  243. trans_playing = skater.isPlayingAction(trans_layer)
  244. if trans_playing:
  245. cur_frame = skater.getActionFrame(trans_layer)
  246. #cur_frame -= 2
  247. if trans_playing and cur_frame > 1:
  248. skater.playAction("nfak_right", cur_frame,1, layer=trans_layer, play_mode=0, speed=.5)
  249. deck.playAction("a_fak_right", cur_frame,1, layer=trans_layer, play_mode=0, speed=.5)
  250. trucks.playAction("a_reg", cur_frame,1, layer=trans_layer, play_mode=0, speed=.5)
  251. own['actionTimer'] = cur_frame
  252. else:
  253. skater.playAction("nfak_right", 10,1, layer=trans_layer, play_mode=0, speed=.5)
  254. deck.playAction("a_fak_right", 10,1, layer=trans_layer, play_mode=0, speed=.5)
  255. trucks.playAction("a_reg", 10,1, layer=trans_layer, play_mode=0, speed=.5)
  256. if requestAction == 'fak_turnLeft_out':
  257. actionState = 'fak_turnLeft_out'
  258. own['actionTimer'] = 19
  259. trans_playing = skater.isPlayingAction(trans_layer)
  260. if trans_playing:
  261. cur_frame = skater.getActionFrame(trans_layer)
  262. #cur_frame -= 2
  263. if trans_playing and cur_frame > 1:
  264. skater.playAction("nfak_left", cur_frame,1, layer=trans_layer, play_mode=0, speed=.5)
  265. deck.playAction("a_fak_left", cur_frame,1, layer=trans_layer, play_mode=0, speed=.5)
  266. trucks.playAction("a_reg", cur_frame,1, layer=trans_layer, play_mode=0, speed=.5)
  267. own['actionTimer'] = cur_frame
  268. else:
  269. skater.playAction("nfak_left", 10,1, layer=trans_layer, play_mode=0, speed=.5)
  270. deck.playAction("a_fak_left", 10,1, layer=trans_layer, play_mode=0, speed=.5)
  271. trucks.playAction("a_reg", 10,1, layer=trans_layer, play_mode=0, speed=.5)
  272. if requestAction == 'reg_opos_out':
  273. actionState = 'reg_opos_out'
  274. own['actionTimer'] = 19
  275. trans_playing = skater.isPlayingAction(trans_layer)
  276. if trans_playing:
  277. cur_frame = skater.getActionFrame(trans_layer)
  278. #cur_frame -= 2
  279. if trans_playing and cur_frame > 1:
  280. skater.playAction("noposin", cur_frame,1, layer=trans_layer, play_mode=0, speed=1)
  281. deck.playAction("a_reg", 1,40, layer=trans_layer, play_mode=1, speed=.5)
  282. trucks.playAction("a_reg", 1,40, layer=trans_layer, play_mode=1, speed=.5)
  283. own['actionTimer'] = cur_frame
  284. else:
  285. skater.playAction("noposin", 20,1, layer=trans_layer, play_mode=0, speed=1)
  286. deck.playAction("a_reg", 1,40, layer=trans_layer, play_mode=1, speed=.5)
  287. trucks.playAction("a_reg", 1,40, layer=trans_layer, play_mode=1, speed=.5)
  288. if requestAction == 'fak_opos_out':
  289. actionState = 'fak_opos_out'
  290. own['actionTimer'] = 19
  291. trans_playing = skater.isPlayingAction(trans_layer)
  292. if trans_playing:
  293. cur_frame = skater.getActionFrame(trans_layer)
  294. #cur_frame -= 2
  295. if trans_playing and cur_frame > 1:
  296. skater.playAction("fak_oposin", cur_frame,1, layer=trans_layer, play_mode=0, speed=1)
  297. deck.playAction("a_reg", 1,40, layer=trans_layer, play_mode=1, speed=.5)
  298. trucks.playAction("a_reg", 1,40, layer=trans_layer, play_mode=1, speed=.5)
  299. own['actionTimer'] = cur_frame
  300. else:
  301. skater.playAction("fak_oposin", 20,1, layer=trans_layer, play_mode=0, speed=1)
  302. deck.playAction("a_reg", 1,40, layer=trans_layer, play_mode=1, speed=.5)
  303. trucks.playAction("a_reg", 1,40, layer=trans_layer, play_mode=1, speed=.5)
  304. if requestAction == 'reg_nopos_out':
  305. actionState = 'reg_nopos_out'
  306. own['actionTimer'] = 19
  307. trans_playing = skater.isPlayingAction(trans_layer)
  308. if trans_playing:
  309. cur_frame = skater.getActionFrame(trans_layer)
  310. #cur_frame -= 2
  311. if trans_playing and cur_frame > 1:
  312. skater.playAction("nnoposin", cur_frame,1, layer=trans_layer, play_mode=0, speed=1)
  313. deck.playAction("a_reg", 1,40, layer=trans_layer, play_mode=1, speed=.5)
  314. trucks.playAction("a_reg", 1,40, layer=trans_layer, play_mode=1, speed=.5)
  315. own['actionTimer'] = cur_frame
  316. else:
  317. skater.playAction("nnoposin", 20,1, layer=trans_layer, play_mode=0, speed=1)
  318. deck.playAction("a_reg", 1,40, layer=trans_layer, play_mode=1, speed=.5)
  319. trucks.playAction("a_reg", 1,40, layer=trans_layer, play_mode=1, speed=.5)
  320. if requestAction == 'fak_nopos_out':
  321. actionState = 'fak_nopos_out'
  322. own['actionTimer'] = 19
  323. trans_playing = skater.isPlayingAction(trans_layer)
  324. if trans_playing:
  325. cur_frame = skater.getActionFrame(trans_layer)
  326. #cur_frame -= 2
  327. if trans_playing and cur_frame > 1:
  328. skater.playAction("fak_noposin", cur_frame,1, layer=trans_layer, play_mode=0, speed=1)
  329. deck.playAction("a_reg", 1,40, layer=trans_layer, play_mode=1, speed=.5)
  330. trucks.playAction("a_reg", 1,40, layer=trans_layer, play_mode=1, speed=.5)
  331. own['actionTimer'] = cur_frame
  332. else:
  333. skater.playAction("fak_noposin", 20,1, layer=trans_layer, play_mode=0, speed=1)
  334. deck.playAction("a_reg", 1,40, layer=trans_layer, play_mode=1, speed=.5)
  335. trucks.playAction("a_reg", 1,40, layer=trans_layer, play_mode=1, speed=.5)
  336. if requestAction == 'reg_pump_out':
  337. actionState = 'reg_pump_out'
  338. own['actionTimer'] = 19
  339. trans_playing = skater.isPlayingAction(trans_layer)
  340. if trans_playing:
  341. cur_frame = skater.getActionFrame(trans_layer)
  342. #cur_frame -= 2
  343. if trans_playing and cur_frame > 1:
  344. skater.playAction("nreg_pump_in", cur_frame,1, layer=trans_layer, play_mode=0, speed=.5)
  345. deck.playAction("a_reg", 1,40, layer=trans_layer, play_mode=1, speed=.5)
  346. trucks.playAction("a_reg", 1,40, layer=trans_layer, play_mode=1, speed=.5)
  347. own['actionTimer'] = cur_frame
  348. else:
  349. skater.playAction("nreg_pump_in", 10,1, layer=trans_layer, play_mode=0, speed=.5)
  350. deck.playAction("a_reg", 1,40, layer=trans_layer, play_mode=1, speed=.5)
  351. trucks.playAction("a_reg", 1,40, layer=trans_layer, play_mode=1, speed=.5)
  352. if requestAction == 'fak_pump_out':
  353. actionState = 'fak_pump_out'
  354. own['actionTimer'] = 19
  355. trans_playing = skater.isPlayingAction(trans_layer)
  356. if trans_playing:
  357. cur_frame = skater.getActionFrame(trans_layer)
  358. #cur_frame -= 2
  359. if trans_playing and cur_frame > 1:
  360. skater.playAction("nfak_pump_in", cur_frame,1, layer=trans_layer, play_mode=0, speed=.5)
  361. deck.playAction("a_reg", cur_frame,1, layer=trans_layer, play_mode=1, speed=.5)
  362. trucks.playAction("a_reg", cur_frame,1, layer=trans_layer, play_mode=1, speed=.5)
  363. own['actionTimer'] = cur_frame
  364. else:
  365. skater.playAction("nfak_pump_in", 10,1, layer=trans_layer, play_mode=0, speed=.5)
  366. deck.playAction("a_reg", 10,1, layer=trans_layer, play_mode=1, speed=.5)
  367. trucks.playAction("a_reg", 10,1, layer=trans_layer, play_mode=1, speed=.5)
  368. if requestAction == 'reg_stop_out':
  369. actionState = 'reg_stop_out'
  370. own['actionTimer'] = 30
  371. trans_playing = skater.isPlayingAction(trans_layer)
  372. if trans_playing:
  373. cur_frame = skater.getActionFrame(trans_layer)
  374. #cur_frame -= 2
  375. if trans_playing and cur_frame > 1:
  376. skater.playAction("reg_stopin", cur_frame,1, layer=trans_layer, play_mode=0, speed=.5)
  377. deck.playAction("a_reg", cur_frame,1, layer=trans_layer, play_mode=0, speed=.5)
  378. trucks.playAction("a_reg", cur_frame,1, layer=trans_layer, play_mode=0, speed=.5)
  379. own['actionTimer'] = cur_frame
  380. else:
  381. skater.playAction("reg_stopin", 15,1, layer=trans_layer, play_mode=0, speed=.5)
  382. deck.playAction("a_reg", 15,1, layer=trans_layer, play_mode=0, speed=.5)
  383. trucks.playAction("a_reg", 15,1, layer=trans_layer, play_mode=0, speed=.5)
  384. if requestAction == 'fak_stop_out':
  385. actionState = 'fak_stop_out'
  386. own['actionTimer'] = 30
  387. trans_playing = skater.isPlayingAction(trans_layer)
  388. if trans_playing:
  389. cur_frame = skater.getActionFrame(trans_layer)
  390. #cur_frame -= 2
  391. if trans_playing and cur_frame > 1:
  392. skater.playAction("fak_stopin", cur_frame,1, layer=trans_layer, play_mode=0, speed=.5)
  393. deck.playAction("a_reg", cur_frame,1, layer=trans_layer, play_mode=0, speed=.5)
  394. trucks.playAction("a_reg", cur_frame,1, layer=trans_layer, play_mode=0, speed=.5)
  395. own['actionTimer'] = cur_frame
  396. else:
  397. skater.playAction("fak_stopin", 15,1, layer=trans_layer, play_mode=0, speed=.5)
  398. deck.playAction("a_reg", 15,1, layer=trans_layer, play_mode=0, speed=.5)
  399. trucks.playAction("a_reg", 15,1, layer=trans_layer, play_mode=0, speed=.5)
  400. if requestAction == 'reg_tailslide_out':
  401. actionState = 'reg_tailslide_out'
  402. own['actionTimer'] = 19
  403. trans_playing = skater.isPlayingAction(trans_layer)
  404. if trans_playing:
  405. cur_frame = skater.getActionFrame(trans_layer)
  406. #cur_frame -= 2
  407. if trans_playing and cur_frame > 1:
  408. skater.playAction("fak_noses", cur_frame,40, layer=trans_layer, play_mode=0, speed=.5)
  409. deck.playAction("a_fak_noses", cur_frame,40, layer=trans_layer, play_mode=0, speed=.5)
  410. trucks.playAction("a_fak_noses", cur_frame,40, layer=trans_layer, play_mode=0, speed=.5)
  411. own['actionTimer'] = cur_frame
  412. else:
  413. skater.playAction("fak_noses", 30,40, layer=trans_layer, play_mode=0, speed=.5)
  414. deck.playAction("a_fak_noses", 30,40, layer=trans_layer, play_mode=0, speed=.5)
  415. trucks.playAction("a_fak_noses", 30,40, layer=trans_layer, play_mode=0, speed=.5)
  416. if requestAction == 'fak_tailslide_out':
  417. actionState = 'fak_tailslide_out'
  418. own['actionTimer'] = 19
  419. trans_playing = skater.isPlayingAction(trans_layer)
  420. if trans_playing:
  421. cur_frame = skater.getActionFrame(trans_layer)
  422. #cur_frame -= 2
  423. if trans_playing and cur_frame > 1:
  424. skater.playAction("reg_noses", cur_frame,40, layer=trans_layer, play_mode=0, speed=.5)
  425. deck.playAction("a_reg_noses", cur_frame,40, layer=trans_layer, play_mode=0, speed=.5)
  426. trucks.playAction("reg_noses", cur_frame,40, layer=trans_layer, play_mode=0, speed=.5)
  427. own['actionTimer'] = cur_frame
  428. else:
  429. skater.playAction("reg_noses", 30,40, layer=trans_layer, play_mode=0, speed=.5)
  430. deck.playAction("a_reg_noses", 30,40, layer=trans_layer, play_mode=0, speed=.5)
  431. trucks.playAction("a_reg_noses", 30,40, layer=trans_layer, play_mode=0, speed=.5)
  432. if requestAction == 'reg_noseslide_out':
  433. actionState = 'reg_noseslide_out'
  434. own['actionTimer'] = 19
  435. trans_playing = skater.isPlayingAction(trans_layer)
  436. if trans_playing:
  437. cur_frame = skater.getActionFrame(trans_layer)
  438. #cur_frame -= 2
  439. if trans_playing and cur_frame > 1:
  440. skater.playAction("fak_tails", cur_frame,40, layer=trans_layer, play_mode=0, speed=.5)
  441. deck.playAction("a_fak_tails", cur_frame,40, layer=trans_layer, play_mode=0, speed=.5)
  442. trucks.playAction("a_fak_tails", cur_frame,40, layer=trans_layer, play_mode=0, speed=.5)
  443. own['actionTimer'] = cur_frame
  444. else:
  445. skater.playAction("fak_tails", 30,40, layer=trans_layer, play_mode=0, speed=.5)
  446. deck.playAction("a_fak_tails", 30,40, layer=trans_layer, play_mode=0, speed=.5)
  447. trucks.playAction("a_fak_tails", 30,40, layer=trans_layer, play_mode=0, speed=.5)
  448. if requestAction == 'fak_noseslide_out':
  449. actionState = 'fak_noseslide_out'
  450. own['actionTimer'] = 19
  451. trans_playing = skater.isPlayingAction(trans_layer)
  452. if trans_playing:
  453. cur_frame = skater.getActionFrame(trans_layer)
  454. #cur_frame -= 2
  455. if trans_playing and cur_frame > 1:
  456. skater.playAction("reg_tails", cur_frame,40, layer=trans_layer, play_mode=0, speed=.5)
  457. deck.playAction("a_reg_tails", cur_frame,40, layer=trans_layer, play_mode=0, speed=.5)
  458. trucks.playAction("a_reg_tails", cur_frame,40, layer=trans_layer, play_mode=0, speed=.5)
  459. own['actionTimer'] = cur_frame
  460. else:
  461. skater.playAction("reg_tails", 30,40, layer=trans_layer, play_mode=0, speed=.5)
  462. deck.playAction("a_reg_tails", 30,40, layer=trans_layer, play_mode=0, speed=.5)
  463. trucks.playAction("a_reg_tails", 30,40, layer=trans_layer, play_mode=0, speed=.5)
  464. if requestAction == 'reg_brfoot':
  465. actionState = 'reg_brfoot'
  466. own['actionTimer'] = 40
  467. skater.playAction("brfoot", 1, 30, layer=trans_layer, play_mode=0, speed=.75)
  468. deck.playAction("a_brfoot", 1, 30, layer=trans_layer, play_mode=0, speed=.75)
  469. trucks.playAction("a_brfoot", 1, 30, layer=trans_layer, play_mode=0, speed=.75)
  470. if requestAction == 'fak_brfoot':
  471. actionState = 'fak_brfoot'
  472. own['actionTimer'] = 40
  473. skater.playAction("fak_brfoot", 1, 30, layer=trans_layer, play_mode=0, speed=.75)
  474. deck.playAction("a_brfoot", 1, 30, layer=trans_layer, play_mode=0, speed=.75)
  475. trucks.playAction("a_brfoot", 1, 30, layer=trans_layer, play_mode=0, speed=.75)
  476. if requestAction == 'reg_frfoot':
  477. actionState = 'reg_frfoot'
  478. own['actionTimer'] = 40
  479. skater.playAction("frfoot", 1, 30, layer=trans_layer, play_mode=0, speed=.75)
  480. deck.playAction("a_brfoot", 1, 30, layer=trans_layer, play_mode=0, speed=.75)
  481. trucks.playAction("a_brfoot", 1, 30, layer=trans_layer, play_mode=0, speed=.75)
  482. if requestAction == 'fak_frfoot':
  483. actionState = 'fak_frfoot'
  484. own['actionTimer'] = 40
  485. skater.playAction("fakbfrfoot", 1, 30, layer=trans_layer, play_mode=0, speed=.75)
  486. deck.playAction("a_brfoot", 1, 30, layer=trans_layer, play_mode=0, speed=.75)
  487. trucks.playAction("a_brfoot", 1, 30, layer=trans_layer, play_mode=0, speed=.75)
  488. if requestAction == 'reg_blfoot':
  489. print("playing blfoot broke")
  490. actionState = 'reg_blfoot'
  491. own['actionTimer'] = 40
  492. skater.playAction("blfoot", 1, 30, layer=trans_layer, play_mode=0, speed=.75)
  493. deck.playAction("a_brfoot", 1, 30, layer=trans_layer, play_mode=0, speed=.75)
  494. trucks.playAction("a_brfoot", 1, 30, layer=trans_layer, play_mode=0, speed=.75)
  495. if requestAction == 'fak_blfoot':
  496. actionState = 'fak_blfoot'
  497. own['actionTimer'] = 40
  498. skater.playAction("fakfrfoot", 1, 30, layer=trans_layer, play_mode=0, speed=.75)
  499. deck.playAction("a_brfoot", 1, 30, layer=trans_layer, play_mode=0, speed=.75)
  500. trucks.playAction("a_brfoot", 1, 30, layer=trans_layer, play_mode=0, speed=.75)
  501. if requestAction == 'reg_flfoot':
  502. actionState = 'reg_flfoot'
  503. own['actionTimer'] = 40
  504. skater.playAction("flfoot", 1, 30, layer=trans_layer, play_mode=0, speed=.75)
  505. deck.playAction("a_brfoot", 1, 30, layer=trans_layer, play_mode=0, speed=.75)
  506. trucks.playAction("a_brfoot", 1, 30, layer=trans_layer, play_mode=0, speed=.75)
  507. if requestAction == 'fak_flfoot':
  508. actionState = 'fak_flfoot'
  509. own['actionTimer'] = 40
  510. skater.playAction("fak_flfoot", 1, 30, layer=trans_layer, play_mode=0, speed=.75)
  511. deck.playAction("a_brfoot", 1, 30, layer=trans_layer, play_mode=0, speed=.75)
  512. trucks.playAction("a_brfoot", 1, 30, layer=trans_layer, play_mode=0, speed=.75)
  513. if requestAction == 'reg_push':
  514. own['actionTimer'] = 70
  515. skater.playAction("reg_push", 1,35, layer=trans_layer, play_mode=0, speed=.5)
  516. deck.playAction("a_reg", 1,40, layer=trans_layer, play_mode=1, speed=.5)
  517. trucks.playAction("a_reg", 1,40, layer=trans_layer, play_mode=1, speed=.5)
  518. if requestAction == 'reg_push_goof':
  519. own['actionTimer'] = 70
  520. skater.playAction("reg_push_goof", 1,35, layer=trans_layer, play_mode=0, speed=.5)
  521. deck.playAction("a_reg", 1,40, layer=trans_layer, play_mode=1, speed=.5)
  522. trucks.playAction("a_reg", 1,40, layer=trans_layer, play_mode=1, speed=.5)
  523. if requestAction == 'fak_push':
  524. own['actionTimer'] = 70
  525. skater.playAction("fak_push", 1,35, layer=trans_layer, play_mode=0, speed=.5)
  526. deck.playAction("a_reg", 1,40, layer=trans_layer, play_mode=1, speed=.5)
  527. trucks.playAction("a_reg", 1,40, layer=trans_layer, play_mode=1, speed=.5)
  528. if requestAction == 'fak_push_goof':
  529. own['actionTimer'] = 70
  530. skater.playAction("fak_push_goof", 1,35, layer=trans_layer, play_mode=0, speed=.5)
  531. deck.playAction("a_reg", 1,40, layer=trans_layer, play_mode=1, speed=.5)
  532. trucks.playAction("a_reg", 1,40, layer=trans_layer, play_mode=1, speed=.5)
  533. if requestAction == 'reg_manual_revert_ccw':
  534. own['actionTimer'] = 15
  535. own['actionState'] = 'reg_manual_revert_ccw'
  536. skater.playAction("reg_manual_revert_ccw", 70,10, layer=trans_layer, priority=8, play_mode=0, speed=4)
  537. deck.playAction("a_reg_manual_revert_ccw", 70,10, layer=trans_layer, priority=1, play_mode=0, speed=4)
  538. trucks.playAction("a_reg_manual_revert_ccw", 70,10, layer=trans_layer, priority=0, play_mode=0, speed=4)
  539. if requestAction == 'fak_manual_revert_ccw':
  540. own['actionTimer'] = 15
  541. own['actionState'] = 'fak_manual_revert_ccw'
  542. skater.playAction("fak_manual_revert_ccw", 70,10, layer=trans_layer, priority=8, play_mode=0, speed=4)
  543. deck.playAction("a_fak_manual_revert_ccw", 70,10, layer=trans_layer, priority=1, play_mode=0, speed=4)
  544. trucks.playAction("a_fak_manual_revert_ccw", 70,10, layer=trans_layer, priority=0, play_mode=0, speed=4)
  545. if requestAction == 'reg_manual_revert_cw':
  546. own['actionTimer'] = 15
  547. own['actionState'] = 'reg_manual_revert_cw'
  548. skater.playAction("reg_manual_revert_cw", 70,10, layer=trans_layer, priority=8, play_mode=0, speed=4)
  549. deck.playAction("a_reg_manual_revert_cw", 70,10, layer=trans_layer, priority=1, play_mode=0, speed=4)
  550. trucks.playAction("a_reg_manual_revert_cw", 70,10, layer=trans_layer, priority=0, play_mode=0, speed=4)
  551. if requestAction == 'fak_manual_revert_cw':
  552. own['actionTimer'] = 15
  553. own['actionState'] = 'fak_manual_revert_cw'
  554. skater.playAction("fak_manual_revert_cw", 70,10, layer=trans_layer, priority=8, play_mode=0, speed=4)
  555. deck.playAction("a_fak_manual_revert_cw", 70,10, layer=trans_layer, priority=1, play_mode=0, speed=4)
  556. trucks.playAction("a_fak_manual_revert_cw", 70,10, layer=trans_layer, priority=0, play_mode=0, speed=4)
  557. if requestAction == 'revert1':
  558. own['actionTimer'] = 18
  559. own['actionState'] = 'revert1'
  560. skater.playAction("revert1", 1,10, layer=trans_layer, play_mode=0, speed=.5)
  561. deck.playAction("a_revert1", 1,10, layer=trans_layer, play_mode=0, speed=.5)
  562. trucks.playAction("a_revert1", 1,10, layer=trans_layer, play_mode=0, speed=.5)
  563. if requestAction == 'revert2':
  564. own['actionTimer'] = 18
  565. own['actionState'] = 'revert2'
  566. skater.playAction("revert2", 1,10, layer=trans_layer, play_mode=0, speed=.5)
  567. deck.playAction("a_revert2", 1,10, layer=trans_layer, play_mode=0, speed=.5)
  568. trucks.playAction("a_revert2", 1,10, layer=trans_layer, play_mode=0, speed=.5)
  569. if requestAction == 'revert3':
  570. own['actionTimer'] = 18
  571. own['actionState'] = 'revert3'
  572. skater.playAction("revert1", 1,10, layer=trans_layer, play_mode=0, speed=.5)
  573. deck.playAction("a_revert1", 1,10, layer=trans_layer, play_mode=0, speed=.5)
  574. trucks.playAction("a_revert1", 1,10, layer=trans_layer, play_mode=0, speed=.5)
  575. if requestAction == 'revert4':
  576. own['actionTimer'] = 18
  577. own['actionState'] = 'revert4'
  578. skater.playAction("revert2", 1,10, layer=trans_layer, play_mode=0, speed=.5)
  579. deck.playAction("a_revert2", 1,10, layer=trans_layer, play_mode=0, speed=.5)
  580. trucks.playAction("a_revert2", 1,10, layer=trans_layer, play_mode=0, speed=.5)
  581. if requestAction == 'reg_ollie':
  582. print("*****reg ollie act")
  583. actionState = 'reg_ollie'
  584. own['actionState'] = 'reg_ollie'
  585. own['actionTimer'] = 30
  586. skater.playAction("reg_ollie", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  587. deck.playAction("a_reg_ollie", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  588. trucks.playAction("t_reg_ollie", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  589. if requestAction == 'fak_ollie':
  590. actionState = 'fak_ollie'
  591. own['actionTimer'] = 30
  592. skater.playAction("fak_ollie", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  593. deck.playAction("a_fak_ollie", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  594. trucks.playAction("t_fak_ollie", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  595. if requestAction == 'reg_nollie':
  596. actionState = 'reg_nollie'
  597. own['actionTimer'] = 40
  598. skater.playAction("nollie", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  599. deck.playAction("a_fak_ollie", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  600. trucks.playAction("t_fak_ollie", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  601. if requestAction == 'fak_nollie':
  602. actionState = 'fak_nollie'
  603. own['actionTimer'] = 40
  604. skater.playAction("fak_nollie", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  605. deck.playAction("a_reg_ollie", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  606. trucks.playAction("t_reg_ollie", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  607. if requestAction == 'reg_kickflip':
  608. actionState = 'reg_kickflip'
  609. own['actionTimer'] = 40
  610. skater.playAction("reg_kickflip", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  611. deck.playAction("a_reg_kickflip", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  612. trucks.playAction("a_reg_kickflip", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  613. if requestAction == 'fak_kickflip':
  614. actionState = 'fak_kickflip'
  615. own['actionTimer'] = 40
  616. skater.playAction("fak_kickflip", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  617. deck.playAction("a_fak_kickflip", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  618. trucks.playAction("a_fak_kickflip", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  619. if requestAction == 'reg_varial_kickflip':
  620. actionState = 'reg_varial_kickflip'
  621. own['actionTimer'] = 40
  622. skater.playAction("reg_varialkickflip", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  623. deck.playAction("a_reg_varialkickflip", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  624. trucks.playAction("a_reg_varialkickflip", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  625. if requestAction == 'fak_varial_kickflip':
  626. actionState = 'fak_varial_kickflip'
  627. own['actionTimer'] = 40
  628. skater.playAction("fak_varialkickflip", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  629. deck.playAction("a_fak_varialkickflip", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  630. trucks.playAction("a_fak_varialkickflip", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  631. if requestAction == 'reg_nollie_varial_kickflip':
  632. actionState = 'reg_nollie_varial_kickflip'
  633. own['actionTimer'] = 40
  634. skater.playAction("reg_varialkickflip", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  635. deck.playAction("a_reg_varialkickflip", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  636. trucks.playAction("a_reg_varialkickflip", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  637. if requestAction == 'fak_nollie_varial_kickflip':
  638. actionState = 'fak_nollie_varial_kickflip'
  639. own['actionTimer'] = 40
  640. skater.playAction("fak_varialkickflip", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  641. deck.playAction("a_fak_varialkickflip", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  642. trucks.playAction("a_fak_varialkickflip", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  643. if requestAction == 'reg_nollie_varial_heelflip':
  644. actionState = 'reg_nollie_varial_heelflip'
  645. own['actionTimer'] = 40
  646. skater.playAction("reg_varialkickflip", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  647. deck.playAction("a_reg_varialkickflip", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  648. trucks.playAction("a_reg_varialkickflip", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  649. if requestAction == 'fak_nollie_varial_heelflip':
  650. actionState = 'fak_nollie_varial_heelflip'
  651. own['actionTimer'] = 40
  652. skater.playAction("fak_varialkickflip", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  653. deck.playAction("a_fak_varialkickflip", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  654. trucks.playAction("a_fak_varialkickflip", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  655. if requestAction == 'reg_varial_heelflip':
  656. actionState = 'reg_varial_heelflip'
  657. own['actionTimer'] = 40
  658. skater.playAction("reg_varialheelflip", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  659. deck.playAction("a_reg_varialheelflip", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  660. trucks.playAction("a_reg_varialheelflip", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  661. if requestAction == 'fak_varial_heelflip':
  662. actionState = 'fak_nollie_varial_heelflip'
  663. own['actionTimer'] = 40
  664. skater.playAction("fak_varialheelflip", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  665. deck.playAction("a_fak_varialheelflip", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  666. trucks.playAction("a_fak_varialheelflip", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  667. if requestAction == 'reg_nollie_kickflip':
  668. actionState = 'reg_nollie_kickflip'
  669. own['actionTimer'] = 40
  670. skater.playAction("nollie_kickflip", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  671. deck.playAction("a_fak_kickflip", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  672. trucks.playAction("a_fak_kickflip", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  673. if requestAction == 'fak_nollie_kickflip':
  674. actionState = 'fak_nollie_kickflip'
  675. own['actionTimer'] = 40
  676. skater.playAction("fak_nollie_kickflip", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  677. deck.playAction("a_reg_kickflip", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  678. trucks.playAction("a_reg_kickflip", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  679. if requestAction == 'reg_heelflip':
  680. actionState = 'reg_heelflip'
  681. own['actionTimer'] = 40
  682. skater.playAction("reg_heelflip", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  683. deck.playAction("a_reg_heelflip", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  684. trucks.playAction("a_reg_heelflip", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  685. if requestAction == 'fak_heelflip':
  686. actionState = 'fak_heelflip'
  687. own['actionTimer'] = 40
  688. skater.playAction("fak_heelflip", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  689. deck.playAction("a_fak_heelflip", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  690. trucks.playAction("a_fak_heelflip", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  691. if requestAction == 'reg_nollie_heelflip':
  692. actionState = 'reg_nollie_heelflip'
  693. own['actionTimer'] = 40
  694. skater.playAction("nollie_heelflip", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  695. deck.playAction("a_fak_heelflip", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  696. trucks.playAction("a_fak_heelflip", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  697. if requestAction == 'fak_nollie_heelflip':
  698. actionState = 'fak_nollie_heelflip'
  699. own['actionTimer'] = 40
  700. skater.playAction("fak_nollie_heelflip", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  701. deck.playAction("a_reg_heelflip", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  702. trucks.playAction("a_reg_heelflip", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  703. if requestAction == 'reg_shovit':
  704. actionState = 'reg_shovit'
  705. own['actionTimer'] = 40
  706. skater.playAction("reg_shovit", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  707. deck.playAction("a_reg_shovit", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  708. trucks.playAction("a_reg_shovit", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  709. if requestAction == 'fak_shovit':
  710. actionState = 'fak_shovit'
  711. own['actionTimer'] = 40
  712. skater.playAction("fak_fsshovit", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  713. deck.playAction("a_fak_fsshovit", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  714. trucks.playAction("a_fak_fsshovit", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  715. if requestAction == 'reg_shovit360':
  716. actionState = 'reg_shovit360'
  717. own['actionTimer'] = 40
  718. skater.playAction("reg_360shovit", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  719. deck.playAction("a_reg_360shovit", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  720. trucks.playAction("a_reg_360shovit", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  721. if requestAction == 'fak_shovit360':
  722. actionState = 'fak_shovit360'
  723. own['actionTimer'] = 40
  724. skater.playAction("fak_360fsshovit", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  725. deck.playAction("a_fak_360fsshovit", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  726. trucks.playAction("a_fak_360fsshovit", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  727. if requestAction == 'reg_fsshovit360':
  728. actionState = 'reg_fsshovit360'
  729. own['actionTimer'] = 40
  730. skater.playAction("reg_360fsshovit", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  731. deck.playAction("a_reg_360fsshovit", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  732. trucks.playAction("a_reg_360fsshovit", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  733. if requestAction == 'fak_fsshovit360':
  734. actionState = 'fak_fsshovit360'
  735. own['actionTimer'] = 40
  736. skater.playAction("fak_360shovit", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  737. deck.playAction("a_fak_360shovit", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  738. trucks.playAction("a_fak_360shovit", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  739. if requestAction == 'reg_nollie_shovit':
  740. actionState = 'reg_nollie_shovit'
  741. own['actionTimer'] = 40
  742. skater.playAction("nollie_shovit", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  743. deck.playAction("a_fak_shovit", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  744. trucks.playAction("a_fak_shovit", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  745. if requestAction == 'fak_nollie_shovit':
  746. actionState = 'fak_nollie_shovit'
  747. own['actionTimer'] = 40
  748. skater.playAction("fak_nollie_shovit", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  749. deck.playAction("a_reg_shovit", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  750. trucks.playAction("a_reg_shovit", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  751. if requestAction == 'reg_fsshovit':
  752. actionState = 'reg_fsshovit'
  753. own['actionTimer'] = 40
  754. skater.playAction("reg_fsshovit", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  755. deck.playAction("a_reg_fsshovit", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  756. trucks.playAction("a_reg_fsshovit", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  757. if requestAction == 'fak_fsshovit':
  758. actionState = 'fak_fsshovit'
  759. own['actionTimer'] = 40
  760. skater.playAction("fak_shovit", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  761. deck.playAction("a_fak_shovit", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  762. trucks.playAction("a_fak_shovit", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  763. if requestAction == 'reg_nollie_fsshovit':
  764. actionState = 'reg_nollie_fsshovit'
  765. own['actionTimer'] = 40
  766. skater.playAction("nollie_fsshovit", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  767. deck.playAction("a_fak_fsshovit", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  768. trucks.playAction("a_fak_fsshovit", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  769. if requestAction == 'fak_nollie_fsshovit':
  770. actionState = 'fak_nollie_fsshovit'
  771. own['actionTimer'] = 40
  772. skater.playAction("fak_nollie_fsshovit", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  773. deck.playAction("a_reg_fsshovit", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  774. trucks.playAction("a_reg_fsshovit", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  775. if requestAction == 'reg_nollie_shovit360':
  776. actionState = 'reg_nollie_shovit360'
  777. own['actionTimer'] = 40
  778. skater.playAction("nollie_fsshovit", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  779. deck.playAction("a_fak_360fsshovit", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  780. trucks.playAction("a_fak_360fsshovit", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  781. if requestAction == 'fak_nollie_shovit360':
  782. actionState = 'fak_nollie_shovit360'
  783. own['actionTimer'] = 40
  784. skater.playAction("fak_nollie_fsshovit", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  785. deck.playAction("a_reg_360shovit", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  786. trucks.playAction("a_reg_360shovit", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  787. if requestAction == 'reg_nollie_fsshovit':
  788. actionState = 'reg_nollie_fsshovit'
  789. own['actionTimer'] = 40
  790. skater.playAction("nollie_fsshovit", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  791. deck.playAction("a_fak_360shovit", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  792. trucks.playAction("a_fak_360shovit", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  793. if requestAction == 'fak_nollie_fsshovit':
  794. actionState = 'fak_nollie_fsshovit'
  795. own['actionTimer'] = 40
  796. skater.playAction("fak_nollie_fsshovit", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  797. deck.playAction("a_reg_360fsshovit", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  798. trucks.playAction("a_reg_360fsshovit", flip_start_frame,20, layer=flip_layer, play_mode=0, speed=.5)
  799. #reg_jump
  800. if requestAction == 'reg_jump':
  801. skater.playAction("reg_jump", 1,35, layer=trans_layer, play_mode=0, speed=.5)
  802. deck.playAction("a_reg_jump2", 1,35, layer=trans_layer, play_mode=0, speed=.5)
  803. trucks.playAction("a_reg_jump2", 1,35, layer=trans_layer, play_mode=0, speed=.5)
  804. #fak_jump
  805. if requestAction == 'fak_jump':
  806. skater.playAction("fak_jump", 1,35, layer=trans_layer, play_mode=0, speed=.5)
  807. trucks.playAction("a_fak_jump", 1,35, layer=trans_layer, play_mode=0, speed=.5)
  808. deck.playAction("a_fak_jump", 1,35, layer=trans_layer, play_mode=0, speed=.5)
  809. #reg_onboard
  810. if requestAction == 'reg_onboard':
  811. skater.stopAction(loop_layer)
  812. deck.stopAction(loop_layer)
  813. trucks.stopAction(loop_layer)
  814. skater.stopAction(trans_layer)
  815. deck.stopAction(trans_layer)
  816. trucks.stopAction(trans_layer)
  817. own['actionTimer'] = 10
  818. skater.playAction("reg_noffboard", 9,0, layer=trans_layer, play_mode=0, speed=.5)
  819. deck.playAction("a_reg_noffboard", 9,0, layer=trans_layer, play_mode=0, speed=.5)
  820. trucks.playAction("a_reg_noffboard", 9,0, layer=trans_layer, play_mode=0, speed=.5)
  821. if requestAction == 'fak_onboard':
  822. skater.stopAction(loop_layer)
  823. deck.stopAction(loop_layer)
  824. trucks.stopAction(loop_layer)
  825. skater.stopAction(trans_layer)
  826. deck.stopAction(trans_layer)
  827. trucks.stopAction(trans_layer)
  828. own['actionTimer'] = 10
  829. skater.playAction("nfak_offboard", 30,1, layer=trans_layer, play_mode=0, speed=1.5)
  830. deck.playAction("a_fak_offboard", 30,1, layer=trans_layer, play_mode=0, speed=1.5)
  831. trucks.playAction("a_fak_offboard", 30,1, layer=trans_layer, play_mode=0, speed=1.5)
  832. if requestAction == 'reg_powerslide_out':
  833. actionState = 'reg_powerslide_out'
  834. own['actionTimer'] = 40
  835. skater.playAction("nreg_powerslide2", 20,0, layer=trans_layer, play_mode=0, speed=1.5)
  836. deck.playAction("a_reg_powerslide2_d", 20,0, layer=trans_layer, play_mode=0, speed=1.5)
  837. trucks.playAction("a_reg_powerslide2_t", 20,0, layer=trans_layer, play_mode=0, speed=1.5)
  838. if requestAction == 'fak_powerslide_out':
  839. actionState = 'fak_powerslide_out'
  840. own['actionTimer'] = 40
  841. skater.playAction("nfak_powerslide2", 20,0, layer=trans_layer, play_mode=0, speed=1.5)
  842. deck.playAction("a_fak_powerslide2_d", 20,0, layer=trans_layer, play_mode=0, speed=1.5)
  843. trucks.playAction("a_fak_powerslide2_t", 20,0, layer=trans_layer, play_mode=0, speed=1.5)
  844. if requestAction == 'reg_fs_powerslide_out':
  845. actionState = 'reg_fs_powerslide_out'
  846. own['actionTimer'] = 40
  847. skater.playAction("nreg_powerslide", 20,0, layer=trans_layer, play_mode=0, speed=1.5)
  848. deck.playAction("a_reg_powerslide", 20,0, layer=trans_layer, play_mode=0, speed=1.5)
  849. trucks.playAction("a_reg_powerslide", 20,0, layer=trans_layer, play_mode=0, speed=1.5)
  850. if requestAction == 'fak_fs_powerslide_out':
  851. actionState = 'fak_fs_powerslide_out'
  852. own['actionTimer'] = 40
  853. skater.playAction("nfak_powerslide", 20,0, layer=trans_layer, play_mode=0, speed=1.5)
  854. deck.playAction("a_fak_powerslide_d", 20,0, layer=trans_layer, play_mode=0, speed=1.5)
  855. trucks.playAction("a_fak_powerslide_t", 20,0, layer=trans_layer, play_mode=0, speed=1.5)
  856. if requestAction == 'fak-reg_roll':
  857. actionState = 'fak-reg_roll'
  858. own['actionTimer'] = 10
  859. skater.playAction("nreg", 70,60, layer=trans_layer, play_mode=0, speed=1)
  860. deck.playAction("a_reg", 20,0, layer=trans_layer, play_mode=0, speed=1)
  861. trucks.playAction("a_reg", 20,0, layer=trans_layer, play_mode=0, speed=1)
  862. if requestAction == 'reg-fak_roll':
  863. actionState = 'fak-reg_roll'
  864. own['actionTimer'] = 10
  865. skater.playAction("nreg", 60,70, layer=trans_layer, play_mode=0, speed=1)
  866. deck.playAction("a_reg", 20,0, layer=trans_layer, play_mode=0, speed=1)
  867. trucks.playAction("a_reg", 20,0, layer=trans_layer, play_mode=0, speed=1)
  868. #######################################
  869. #loop actions
  870. ######################################
  871. #check if request is possible
  872. if requestAction in requestActions_list:
  873. #print(requestAction)
  874. #reg_turnLeft
  875. if requestAction == 'reg_turnLeft':
  876. actionState = 'reg_turnLeft'
  877. #in
  878. if l_actionState != 'reg_turnLeft':
  879. skater.playAction("nreg_left", 1,10, layer=trans_layer, play_mode=0, speed=.5)
  880. deck.playAction("a_reg_left", 1,10, layer=trans_layer, play_mode=0, speed=.5)
  881. trucks.playAction("a_reg", 1,10, layer=trans_layer, play_mode=0, speed=.5)
  882. #loop
  883. else:
  884. skater.playAction("nreg_left", 10,30, layer=loop_layer, play_mode=1, speed=.5)
  885. deck.playAction("a_reg_left", 10,30, layer=loop_layer, play_mode=1, speed=.5)
  886. trucks.playAction("a_reg", 10,30, layer=loop_layer, play_mode=1, speed=.5)
  887. #reg_turnRight
  888. if requestAction == 'reg_turnRight':
  889. actionState = 'reg_turnRight'
  890. #in
  891. if l_actionState != 'reg_turnRight':
  892. skater.playAction("nreg_right", 1,10, layer=trans_layer, play_mode=0, speed=.5)
  893. deck.playAction("a_reg_right", 1,10, layer=trans_layer, play_mode=0, speed=.5)
  894. trucks.playAction("a_reg", 1,10, layer=trans_layer, play_mode=0, speed=.5)
  895. #loop
  896. else:
  897. skater.playAction("nreg_right", 10,30, layer=loop_layer, play_mode=1, speed=.5)
  898. deck.playAction("a_reg_right", 10,30, layer=loop_layer, play_mode=1, speed=.5)
  899. trucks.playAction("a_reg", 10,30, layer=loop_layer, play_mode=1, speed=.5)
  900. if requestAction == 'reg_turnRight_out':
  901. pass
  902. #fak_turnLeft
  903. if requestAction == 'fak_turnLeft':
  904. actionState = 'fak_turnLeft'
  905. #in
  906. if l_actionState != 'fak_turnLeft':
  907. skater.playAction("nfak_left", 1,10, layer=trans_layer, play_mode=0, speed=.5)
  908. deck.playAction("a_fak_left", 1,10, layer=trans_layer, play_mode=0, speed=.5)
  909. trucks.playAction("a_reg", 1,10, layer=trans_layer, play_mode=0, speed=.5)
  910. #loop
  911. else:
  912. skater.playAction("nfak_left", 10,30, layer=loop_layer, play_mode=1, speed=.5)
  913. deck.playAction("a_fak_left", 10,30, layer=loop_layer, play_mode=1, speed=.5)
  914. trucks.playAction("a_reg", 10,30, layer=loop_layer, play_mode=1, speed=.5)
  915. #fak_turnRight
  916. if requestAction == 'fak_turnRight':
  917. actionState = 'fak_turnRight'
  918. #in
  919. if l_actionState != 'fak_turnRight':
  920. skater.playAction("nfak_right", 1,10, layer=trans_layer, play_mode=0, speed=.5)
  921. deck.playAction("a_fak_right", 1,10, layer=trans_layer, play_mode=0, speed=.5)
  922. trucks.playAction("a_reg", 1,10, layer=trans_layer, play_mode=0, speed=.5)
  923. #loop
  924. else:
  925. skater.playAction("nfak_right", 10,30, layer=loop_layer, play_mode=1, speed=.5)
  926. deck.playAction("a_fak_right", 10,30, layer=loop_layer, play_mode=1, speed=.5)
  927. trucks.playAction("a_reg", 10,30, layer=loop_layer, play_mode=1, speed=.5)
  928. #reg_fs_powerslide
  929. if requestAction == 'reg_fs_powerslide':
  930. actionState = 'reg_fs_powerslide'
  931. if l_actionState != 'reg_fs_powerslide':
  932. skater.playAction("nreg_powerslide", 0,20, layer=trans_layer, priority=8, play_mode=0, speed=1.5)
  933. deck.playAction("a_reg_powerslide", 0,20, layer=trans_layer, priority=1, play_mode=0, speed=1.5)
  934. trucks.playAction("a_reg_powerslide", 0,20, layer=trans_layer, priority=0, play_mode=0, speed=1.5)
  935. else:
  936. skater.playAction("nreg_powerslide", 20,80, layer=loop_layer, play_mode=1, speed=.5)
  937. deck.playAction("a_reg_powerslide", 20,80, layer=loop_layer, play_mode=1, speed=.5)
  938. trucks.playAction("a_reg_powerslide", 20,80, layer=loop_layer, play_mode=1, speed=.5)
  939. #reg_powerslide
  940. if requestAction == 'reg_powerslide':
  941. actionState = 'reg_powerslide'
  942. if l_actionState != 'reg_powerslide':
  943. skater.playAction("nreg_powerslide2", 0,20, layer=trans_layer, play_mode=0, speed=1.5)
  944. deck.playAction("a_reg_powerslide2_d", 0,20, layer=trans_layer, play_mode=0, speed=1.5)
  945. trucks.playAction("a_reg_powerslide2_t", 0,20, layer=trans_layer, priority=0, play_mode=0, speed=1.5)
  946. else:
  947. skater.playAction("nreg_powerslide2", 20,80, layer=loop_layer, play_mode=1, speed=.5)
  948. deck.playAction("a_reg_powerslide2_d", 20,80, layer=loop_layer, speed=.5)
  949. trucks.playAction("a_reg_powerslide2_t", 20,80, layer=loop_layer, play_mode=1, speed=.5)
  950. #fak_fs_powerslide
  951. if requestAction == 'fak_fs_powerslide':
  952. actionState = 'fak_fs_powerslide'
  953. if l_actionState != 'fak_fs_powerslide':
  954. skater.playAction("nfak_powerslide", 0,20, layer=trans_layer, play_mode=0, speed=1.5)
  955. deck.playAction("a_fak_powerslide_d", 0,20, layer=trans_layer, play_mode=0, speed=1.5)
  956. trucks.playAction("a_fak_powerslide_t", 0,20, layer=trans_layer, priority=0, play_mode=0, speed=1.5)
  957. else:
  958. skater.playAction("nfak_powerslide", 20,80, layer=loop_layer, play_mode=1, speed=.5)
  959. deck.playAction("a_fak_powerslide_d", 20,80, layer=loop_layer, speed=.5)
  960. trucks.playAction("a_fak_powerslide_t", 20,80, layer=loop_layer, play_mode=1, speed=.5)
  961. #fak_powerslide
  962. if requestAction == 'fak_powerslide':
  963. actionState = 'fak_powerslide'
  964. if l_actionState != 'fak_powerslide':
  965. skater.playAction("nfak_powerslide2", 0,20, layer=trans_layer, play_mode=0, speed=1.5)
  966. deck.playAction("a_fak_powerslide2_d", 0,20, layer=trans_layer, play_mode=0, speed=1.5)
  967. trucks.playAction("a_fak_powerslide2_t", 0,20, layer=trans_layer, priority=0, play_mode=0, speed=1.5)
  968. else:
  969. skater.playAction("nfak_powerslide2", 20,80, layer=loop_layer, play_mode=1, speed=.5)
  970. deck.playAction("a_fak_powerslide2_d", 20,80, layer=loop_layer, speed=.5)
  971. trucks.playAction("a_fak_powerslide2_t", 20,80, layer=loop_layer, play_mode=1, speed=.5)
  972. #reg_roll
  973. if requestAction == 'reg_roll':
  974. if l_actionState == 'reg_pump':
  975. trans_playing = skater.isPlayingAction(trans_layer)
  976. if trans_playing:
  977. cur_frame = skater.getActionFrame(trans_layer)
  978. #cur_frame -= 2
  979. if trans_playing and cur_frame > 1:
  980. skater.playAction("nreg_pump_in", cur_frame,1, layer=trans_layer, play_mode=0, speed=1)
  981. deck.playAction("a_reg", cur_frame,1, layer=trans_layer, play_mode=0, speed=1)
  982. trucks.playAction("a_reg", cur_frame,1, layer=trans_layer, play_mode=0, speed=1)
  983. #print(cur_frame)
  984. else:
  985. skater.playAction("nreg_pump_in", 20,1, layer=trans_layer, play_mode=0, speed=1)
  986. deck.playAction("a_reg", 20,1, layer=trans_layer, play_mode=0, speed=1)
  987. trucks.playAction("a_reg", 20,1, layer=trans_layer, play_mode=0, speed=1)
  988. if l_actionState == 'reg_opos':
  989. trans_playing = skater.isPlayingAction(trans_layer)
  990. if trans_playing:
  991. cur_frame = skater.getActionFrame(trans_layer)
  992. if trans_playing and cur_frame > 1:
  993. skater.playAction("noposin", cur_frame,1, layer=trans_layer, play_mode=0, speed=1)
  994. deck.playAction("a_reg", cur_frame,1, layer=trans_layer, play_mode=0, speed=1)
  995. trucks.playAction("a_reg", cur_frame,1, layer=trans_layer, play_mode=0, speed=1)
  996. else:
  997. own['actionTimer'] = 20
  998. skater.playAction("noposin", 20,1, layer=trans_layer, play_mode=0, speed=1)
  999. deck.playAction("a_reg", 20,1, layer=trans_layer, play_mode=0, speed=1)
  1000. trucks.playAction("a_reg", 20,1, layer=trans_layer, play_mode=0, speed=1)
  1001. if l_requestAction == 'reg_nopos':
  1002. flipping = skater.isPlayingAction(flip_layer)
  1003. if flipping == 0:
  1004. trans_playing = skater.isPlayingAction(trans_layer)
  1005. if trans_playing:
  1006. cur_frame = skater.getActionFrame(trans_layer)
  1007. #cur_frame -= 2
  1008. if trans_playing and cur_frame > 1:
  1009. #skater.stopAction(trans_layer)
  1010. #deck.stopAction(trans_layer)
  1011. #trucks.stopAction(trans_layer)
  1012. skater.playAction("nnoposin", cur_frame,1, layer=trans_layer, play_mode=0, speed=1)
  1013. deck.playAction("a_reg", cur_frame,1, layer=trans_layer, play_mode=0, speed=1)
  1014. trucks.playAction("a_reg", cur_frame,1, layer=trans_layer, play_mode=0, speed=1)
  1015. #print(cur_frame)
  1016. else:
  1017. own['actionTimer'] = 20
  1018. skater.playAction("nnoposin", 20,1, layer=trans_layer, play_mode=0, speed=1)
  1019. deck.playAction("a_reg", 20,1, layer=trans_layer, play_mode=0, speed=1)
  1020. trucks.playAction("a_reg", 20,1, layer=trans_layer, play_mode=0, speed=1)
  1021. if l_requestAction == 'reg_manual':
  1022. trans_playing = skater.isPlayingAction(trans_layer)
  1023. if trans_playing:
  1024. cur_frame = skater.getActionFrame(trans_layer)
  1025. cur_frame -= 2
  1026. if trans_playing and cur_frame > 1:
  1027. skater.playAction("reg_manual", cur_frame,1, layer=trans_layer, play_mode=0, speed=1)
  1028. deck.playAction("a_reg_manual", cur_frame,1, layer=trans_layer, play_mode=0, speed=1)
  1029. trucks.playAction("a_reg_manual", cur_frame,1, layer=trans_layer, play_mode=0, speed=1)
  1030. else:
  1031. skater.playAction("reg_manual", 10,1, layer=trans_layer, play_mode=0, speed=1)
  1032. deck.playAction("a_reg_manual", 10,1, layer=trans_layer, play_mode=0, speed=1)
  1033. trucks.playAction("a_reg_manual", 10,1, layer=trans_layer, play_mode=0, speed=1)
  1034. if l_requestAction == 'reg_nmanual':
  1035. trans_playing = skater.isPlayingAction(trans_layer)
  1036. if trans_playing:
  1037. cur_frame = skater.getActionFrame(trans_layer)
  1038. cur_frame -= 2
  1039. if trans_playing and cur_frame > 1:
  1040. skater.playAction("reg_nmanual", cur_frame,1, layer=trans_layer, play_mode=0, speed=1)
  1041. deck.playAction("a_fak_manual", cur_frame,1, layer=trans_layer, play_mode=0, speed=1)
  1042. trucks.playAction("a_fak_manual", cur_frame,1, layer=trans_layer, play_mode=0, speed=1)
  1043. else:
  1044. skater.playAction("reg_nmanual", 10,1, layer=trans_layer, play_mode=0, speed=1)
  1045. deck.playAction("a_fak_manual", 10,1, layer=trans_layer, play_mode=0, speed=1)
  1046. trucks.playAction("a_fak_manual", 10,1, layer=trans_layer, play_mode=0, speed=1)
  1047. if l_actionState == 'reg_turnLeft':
  1048. trans_playing = skater.isPlayingAction(trans_layer)
  1049. if trans_playing:
  1050. cur_frame = skater.getActionFrame(trans_layer)
  1051. #cur_frame -= 2
  1052. if trans_playing and cur_frame > 1:
  1053. skater.playAction("nreg_left", cur_frame,1, layer=trans_layer, play_mode=0, speed=.5)
  1054. deck.playAction("a_reg_left", cur_frame,1, layer=trans_layer, play_mode=0, speed=.5)
  1055. trucks.playAction("a_reg", cur_frame,1, layer=trans_layer, play_mode=0, speed=.5)
  1056. else:
  1057. own['actionTimer'] = 20
  1058. requestAction = 'reg_turnLeft_out'
  1059. actionState = 'reg_turnLeft_out'
  1060. skater.playAction("nreg_left", 10,1, layer=trans_layer, play_mode=0, speed=.5)
  1061. deck.playAction("a_reg_left", 10,1, layer=trans_layer, play_mode=0, speed=.5)
  1062. trucks.playAction("a_reg", 10,1, layer=trans_layer, play_mode=0, speed=.5)
  1063. if l_actionState == 'reg_Right':
  1064. #requestAction = 'reg_turnRight_out'
  1065. trans_playing = skater.isPlayingAction(trans_layer)
  1066. if trans_playing:
  1067. cur_frame = skater.getActionFrame(trans_layer)
  1068. #cur_frame -= 2
  1069. if trans_playing and cur_frame > 1:
  1070. skater.playAction("nreg_right", cur_frame,1, layer=trans_layer, play_mode=0, speed=.5)
  1071. deck.playAction("a_reg_right", cur_frame,1, layer=trans_layer, play_mode=0, speed=.5)
  1072. trucks.playAction("a_reg", cur_frame,1, layer=trans_layer, play_mode=0, speed=.5)
  1073. else:
  1074. own['actionTimer'] = 20
  1075. skater.playAction("nreg_right", 10,1, layer=trans_layer, play_mode=0, speed=.5)
  1076. deck.playAction("a_reg_right", 10,1, layer=trans_layer, play_mode=0, speed=.5)
  1077. trucks.playAction("a_reg", 10,1, layer=trans_layer, play_mode=0, speed=.5)
  1078. if requestAction == 'reg_roll':
  1079. actionState = 'reg_roll'
  1080. skater.playAction("nreg", 1,60, layer=loop_layer, play_mode=1, speed=.5)
  1081. deck.playAction("a_reg", 1,40, layer=loop_layer, play_mode=1, speed=.5)
  1082. trucks.playAction("a_reg", 1,40, layer=loop_layer, play_mode=1, speed=.5)
  1083. #fak_roll
  1084. if requestAction == 'fak_roll':
  1085. if l_actionState == 'fak_pump':
  1086. trans_playing = skater.isPlayingAction(trans_layer)
  1087. if trans_playing:
  1088. cur_frame = skater.getActionFrame(trans_layer)
  1089. #cur_frame -= 2
  1090. if trans_playing and cur_frame > 1:
  1091. #skater.stopAction(trans_layer)
  1092. #deck.stopAction(trans_layer)
  1093. #trucks.stopAction(trans_layer)
  1094. skater.playAction("nfak_pump_in", cur_frame,1, layer=trans_layer, play_mode=0, speed=1)
  1095. deck.playAction("a_reg", cur_frame,1, layer=trans_layer, play_mode=0, speed=1)
  1096. trucks.playAction("a_reg", cur_frame,1, layer=trans_layer, play_mode=0, speed=1)
  1097. #print(cur_frame)
  1098. else:
  1099. skater.playAction("nfak_pump_in", 20,1, layer=trans_layer, play_mode=0, speed=1)
  1100. deck.playAction("a_reg", 20,1, layer=trans_layer, play_mode=0, speed=1)
  1101. trucks.playAction("a_reg", 20,1, layer=trans_layer, play_mode=0, speed=1)
  1102. if l_actionState == 'fak_opos':
  1103. trans_playing = skater.isPlayingAction(trans_layer)
  1104. if trans_playing:
  1105. cur_frame = skater.getActionFrame(trans_layer)
  1106. #cur_frame -= 2
  1107. if trans_playing and cur_frame > 1:
  1108. #skater.stopAction(trans_layer)
  1109. #deck.stopAction(trans_layer)
  1110. #trucks.stopAction(trans_layer)
  1111. skater.playAction("fak_oposin", cur_frame,1, layer=trans_layer, play_mode=0, speed=1)
  1112. deck.playAction("a_reg", cur_frame,1, layer=trans_layer, play_mode=0, speed=1)
  1113. trucks.playAction("a_reg", cur_frame,1, layer=trans_layer, play_mode=0, speed=1)
  1114. #print(cur_frame)
  1115. else:
  1116. own['actionTimer'] = 20
  1117. skater.playAction("fak_oposin", 20,1, layer=trans_layer, play_mode=0, speed=1)
  1118. deck.playAction("a_reg", 20,1, layer=trans_layer, play_mode=0, speed=1)
  1119. trucks.playAction("a_reg", 20,1, layer=trans_layer, play_mode=0, speed=1)
  1120. if l_requestAction == 'fak_nopos':
  1121. trans_playing = skater.isPlayingAction(trans_layer)
  1122. if trans_playing:
  1123. cur_frame = skater.getActionFrame(trans_layer)
  1124. #cur_frame -= 2
  1125. if trans_playing and cur_frame > 1:
  1126. #skater.stopAction(trans_layer)
  1127. #deck.stopAction(trans_layer)
  1128. #trucks.stopAction(trans_layer)
  1129. skater.playAction("fak_noposin", cur_frame,1, layer=trans_layer, play_mode=0, speed=1)
  1130. deck.playAction("a_reg", cur_frame,1, layer=trans_layer, play_mode=0, speed=1)
  1131. trucks.playAction("a_reg", cur_frame,1, layer=trans_layer, play_mode=0, speed=1)
  1132. #print(cur_frame)
  1133. else:
  1134. own['actionTimer'] = 20
  1135. skater.playAction("fak_noposin", 20,1, layer=trans_layer, play_mode=0, speed=1)
  1136. deck.playAction("a_reg", 20,1, layer=trans_layer, play_mode=0, speed=1)
  1137. trucks.playAction("a_reg", 20,1, layer=trans_layer, play_mode=0, speed=1)
  1138. if l_requestAction == 'fak_manual':
  1139. trans_playing = skater.isPlayingAction(trans_layer)
  1140. if trans_playing:
  1141. cur_frame = skater.getActionFrame(trans_layer)
  1142. #cur_frame -= 2
  1143. if trans_playing and cur_frame > 1:
  1144. skater.playAction("fak_manual", cur_frame,1, layer=trans_layer, play_mode=0, speed=1)
  1145. deck.playAction("a_fak_manual", cur_frame,1, layer=trans_layer, play_mode=0, speed=1)
  1146. trucks.playAction("a_fak_manual", cur_frame,1, layer=trans_layer, play_mode=0, speed=1)
  1147. else:
  1148. skater.playAction("fak_manual", 10,1, layer=trans_layer, play_mode=0, speed=1)
  1149. deck.playAction("a_fak_manual", 10,1, layer=trans_layer, play_mode=0, speed=1)
  1150. trucks.playAction("a_fak_manual", 10,1, layer=trans_layer, play_mode=0, speed=1)
  1151. if l_requestAction == 'fak_nmanual':
  1152. trans_playing = skater.isPlayingAction(trans_layer)
  1153. if trans_playing:
  1154. cur_frame = skater.getActionFrame(trans_layer)
  1155. #cur_frame -= 2
  1156. if trans_playing and cur_frame > 1:
  1157. skater.playAction("fak_nmanual", cur_frame,1, layer=trans_layer, play_mode=0, speed=1)
  1158. deck.playAction("a_reg_manual", cur_frame,1, layer=trans_layer, play_mode=0, speed=1)
  1159. trucks.playAction("a_reg_manual", cur_frame,1, layer=trans_layer, play_mode=0, speed=1)
  1160. else:
  1161. skater.playAction("fak_nmanual", 10,1, layer=trans_layer, play_mode=0, speed=1)
  1162. deck.playAction("a_reg_manual", 10,1, layer=trans_layer, play_mode=0, speed=1)
  1163. trucks.playAction("a_reg_manual", 10,1, layer=trans_layer, play_mode=0, speed=1)
  1164. if l_actionState == 'fak_turnLeft':
  1165. trans_playing = skater.isPlayingAction(trans_layer)
  1166. if trans_playing:
  1167. cur_frame = skater.getActionFrame(trans_layer)
  1168. #cur_frame -= 2
  1169. if trans_playing and cur_frame > 1:
  1170. skater.playAction("nfak_left", cur_frame,1, layer=trans_layer, play_mode=0, speed=.5)
  1171. deck.playAction("a_fak_left", cur_frame,1, layer=trans_layer, play_mode=0, speed=.5)
  1172. trucks.playAction("a_reg", cur_frame,1, layer=trans_layer, play_mode=0, speed=.5)
  1173. else:
  1174. skater.playAction("nfak_left", 10,1, layer=trans_layer, play_mode=0, speed=.5)
  1175. deck.playAction("a_fak_left", 10,1, layer=trans_layer, play_mode=0, speed=.5)
  1176. trucks.playAction("a_reg", 20,1, layer=trans_layer, play_mode=0, speed=.5)
  1177. if l_requestAction == 'fak_turnRight':
  1178. trans_playing = skater.isPlayingAction(trans_layer)
  1179. if trans_playing:
  1180. cur_frame = skater.getActionFrame(trans_layer)
  1181. #cur_frame -= 2
  1182. if trans_playing and cur_frame > 1:
  1183. skater.playAction("nfak_right", cur_frame,1, layer=trans_layer, play_mode=0, speed=.5)
  1184. deck.playAction("a_fak_right", cur_frame,1, layer=trans_layer, play_mode=0, speed=.5)
  1185. trucks.playAction("a_reg", cur_frame,1, layer=trans_layer, play_mode=0, speed=.5)
  1186. else:
  1187. skater.playAction("nfak_right", 10,1, layer=trans_layer, play_mode=0, speed=.5)
  1188. deck.playAction("a_fak_right", 10,1, layer=trans_layer, play_mode=0, speed=.5)
  1189. trucks.playAction("a_reg", 10,1, layer=trans_layer, play_mode=0, speed=.5)
  1190. if requestAction == 'fak_roll':
  1191. actionState = 'fak_roll'
  1192. skater.playAction("nfak", 1,60, layer=loop_layer, play_mode=1, speed=.5)
  1193. deck.playAction("a_reg", 1,40, layer=loop_layer, play_mode=1, speed=.5)
  1194. trucks.playAction("a_reg", 1,40, layer=loop_layer, play_mode=1, speed=.5)
  1195. #reg_opos
  1196. if requestAction == 'reg_opos' and own['actionTimer'] == 0:
  1197. actionState = 'reg_opos'
  1198. #in
  1199. if l_actionState != 'reg_opos':
  1200. skater.playAction("noposin", 1,20, layer=trans_layer, play_mode=0, speed=1)
  1201. deck.playAction("a_reg", 1,20, layer=trans_layer, play_mode=0, speed=1)
  1202. trucks.playAction("a_reg", 1,20, layer=trans_layer, play_mode=0, speed=1)
  1203. #loop
  1204. else:
  1205. skater.playAction("nopos", 1,40, layer=loop_layer, play_mode=1, speed=1)
  1206. deck.playAction("a_reg", 1,40, layer=loop_layer, play_mode=1, speed=1)
  1207. trucks.playAction("a_reg", 1,40, layer=loop_layer, play_mode=1, speed=1)
  1208. #fak_opos
  1209. if requestAction == 'fak_opos':
  1210. actionState = 'fak_opos'
  1211. #in
  1212. if l_actionState != 'fak_opos':
  1213. skater.playAction("fak_oposin", 1,20, layer=trans_layer, play_mode=0, speed=1)
  1214. deck.playAction("a_reg", 1,20, layer=trans_layer, play_mode=0, speed=1)
  1215. trucks.playAction("a_reg", 1,20, layer=trans_layer, play_mode=0, speed=1)
  1216. #loop
  1217. else:
  1218. skater.playAction("fak_opos", 1,40, layer=loop_layer, play_mode=1, speed=1)
  1219. deck.playAction("a_reg", 1,40, layer=loop_layer, play_mode=1, speed=1)
  1220. trucks.playAction("a_reg", 1,40, layer=loop_layer, play_mode=1, speed=1)
  1221. #reg_nopos
  1222. if requestAction == 'reg_nopos':
  1223. actionState = 'reg_nopos'
  1224. #in
  1225. if l_actionState != 'reg_nopos':
  1226. skater.playAction("nnoposin", 1,20, layer=trans_layer, play_mode=0, speed=1)
  1227. deck.playAction("a_reg", 1,20, layer=trans_layer, play_mode=0, speed=1)
  1228. trucks.playAction("a_reg", 1,20, layer=trans_layer, play_mode=0, speed=1)
  1229. #loop
  1230. else:
  1231. skater.playAction("nnopos", 1,40, layer=loop_layer, play_mode=1, speed=1)
  1232. deck.playAction("a_reg", 1,40, layer=loop_layer, play_mode=1, speed=1)
  1233. trucks.playAction("a_reg", 1,40, layer=loop_layer, play_mode=1, speed=1)
  1234. #fak_nopos
  1235. if requestAction == 'fak_nopos':
  1236. actionState = 'fak_nopos'
  1237. #in
  1238. if l_actionState != 'fak_nopos':
  1239. skater.playAction("fak_noposin", 1,20, layer=trans_layer, play_mode=0, speed=1)
  1240. deck.playAction("a_reg", 1,20, layer=trans_layer, play_mode=0, speed=1)
  1241. trucks.playAction("a_reg", 1,20, layer=trans_layer, play_mode=0, speed=1)
  1242. #loop
  1243. else:
  1244. skater.playAction("fak_nopos", 1,40, layer=loop_layer, play_mode=1, speed=1)
  1245. deck.playAction("a_reg", 1,40, layer=loop_layer, play_mode=1, speed=1)
  1246. trucks.playAction("a_reg", 1,40, layer=loop_layer, play_mode=1, speed=1)
  1247. #reg_pump
  1248. if requestAction == 'reg_pump':
  1249. actionState = 'reg_pump'
  1250. if l_actionState != 'reg_pump':
  1251. skater.playAction("nreg_pump_in", 1,20, layer=trans_layer, play_mode=0, speed=1)
  1252. deck.playAction("a_reg", 1,20, layer=trans_layer, play_mode=0, speed=1)
  1253. trucks.playAction("a_reg", 1,20, layer=trans_layer, play_mode=0, speed=1)
  1254. else:
  1255. skater.playAction("nreg_pump", 1,60, layer=loop_layer, play_mode=1, speed=.5)
  1256. deck.playAction("a_reg", 1,60, layer=loop_layer, play_mode=1, speed=1)
  1257. trucks.playAction("a_reg", 1,60, layer=loop_layer, play_mode=1, speed=1)
  1258. #fak_pump
  1259. if requestAction == 'fak_pump':
  1260. actionState = 'fak_pump'
  1261. if l_actionState != 'fak_pump':
  1262. skater.playAction("nfak_pump_in", 1,20, layer=trans_layer, play_mode=0, speed=1)
  1263. deck.playAction("a_reg", 1,20, layer=trans_layer, play_mode=0, speed=1)
  1264. trucks.playAction("a_reg", 1,20, layer=trans_layer, play_mode=0, speed=1)
  1265. else:
  1266. skater.playAction("nfak_pump.001", 1,60, layer=loop_layer, play_mode=1, speed=.5)
  1267. deck.playAction("a_reg", 1,60, layer=loop_layer, play_mode=1, speed=1)
  1268. trucks.playAction("a_reg", 1,60, layer=loop_layer, play_mode=1, speed=1)
  1269. #reg_manual
  1270. if requestAction == 'reg_manual':
  1271. actionState = 'reg_manual'
  1272. #in
  1273. if l_requestAction != 'reg_manual' and l_actionState != 'reg_air_tail':
  1274. skater.playAction("reg_manual", 1,10, layer=trans_layer, play_mode=0, speed=1)
  1275. deck.playAction("a_reg_manual", 1,10, layer=trans_layer, play_mode=0, speed=1)
  1276. trucks.playAction("a_reg_manual", 1,10, layer=trans_layer, play_mode=0, speed=1)
  1277. #loop
  1278. else:
  1279. skater.playAction("reg_manual", 10,70, layer=loop_layer, play_mode=1, speed=.5)
  1280. deck.playAction("a_reg_manual", 10,70, layer=loop_layer, play_mode=1, speed=.5)
  1281. trucks.playAction("a_reg_manual", 10,70, layer=loop_layer, play_mode=1, speed=.5)
  1282. #fak_manual
  1283. if requestAction == 'fak_manual':
  1284. actionState = 'fak_manual'
  1285. #in
  1286. if l_requestAction != 'fak_manual' and l_actionState != 'fak_air_tail':
  1287. skater.playAction("fak_manual", 1,10, layer=trans_layer, play_mode=0, speed=1)
  1288. deck.playAction("a_fak_manual", 1,10, layer=trans_layer, play_mode=0, speed=1)
  1289. trucks.playAction("a_fak_manual", 1,10, layer=trans_layer, play_mode=0, speed=1)
  1290. #loop
  1291. else:
  1292. skater.playAction("fak_manual", 10,70, layer=loop_layer, play_mode=1, speed=.5)
  1293. deck.playAction("a_fak_manual", 10,70, layer=loop_layer, play_mode=1, speed=.5)
  1294. trucks.playAction("a_fak_manual", 10,70, layer=loop_layer, play_mode=1, speed=.5)
  1295. #reg_nmanual
  1296. if requestAction == 'reg_nmanual':
  1297. actionState = 'reg_nmanual'
  1298. #in
  1299. if l_requestAction != 'reg_nmanual' and l_actionState != 'reg_air_nose':
  1300. skater.playAction("reg_nmanual", 1,10, layer=trans_layer, play_mode=0, speed=1)
  1301. deck.playAction("a_fak_manual", 1,10, layer=trans_layer, play_mode=0, speed=1)
  1302. trucks.playAction("a_fak_manual", 1,10, layer=trans_layer, play_mode=0, speed=1)
  1303. #loop
  1304. else:
  1305. skater.playAction("reg_nmanual", 10,70, layer=loop_layer, play_mode=1, speed=.5)
  1306. deck.playAction("a_fak_manual", 10,70, layer=loop_layer, play_mode=1, speed=.5)
  1307. trucks.playAction("a_fak_manual", 10,70, layer=loop_layer, play_mode=1, speed=.5)
  1308. #fak_nmanual
  1309. if requestAction == 'fak_nmanual':
  1310. actionState = 'fak_nmanual'
  1311. #in
  1312. if l_requestAction != 'fak_nmanual' and l_actionState != 'fak_air_nose':
  1313. skater.playAction("fak_nmanual", 1,10, layer=trans_layer, play_mode=0, speed=1)
  1314. deck.playAction("a_reg_manual", 1,10, layer=trans_layer, play_mode=0, speed=1)
  1315. trucks.playAction("a_reg_manual", 1,10, layer=trans_layer, play_mode=0, speed=1)
  1316. #loop
  1317. else:
  1318. skater.playAction("fak_nmanual", 10,70, layer=loop_layer, play_mode=1, speed=.5)
  1319. deck.playAction("a_reg_manual", 10,70, layer=loop_layer, play_mode=1, speed=.5)
  1320. trucks.playAction("a_reg_manual", 10,70, layer=loop_layer, play_mode=1, speed=.5)
  1321. if requestAction == 'reg_air':
  1322. actionState = 'reg_air'
  1323. skater.playAction("reg_air", 1,60, layer=loop_layer, play_mode=1, speed=.5)
  1324. deck.playAction("a_reg", 1,2, layer=loop_layer, play_mode=1, speed=.5)
  1325. trucks.playAction("a_reg", 1,2, layer=loop_layer, play_mode=1, speed=.5)
  1326. if requestAction == 'fak_air':
  1327. actionState = 'fak_air'
  1328. skater.playAction("fak_air", 1,60, layer=loop_layer, play_mode=1, speed=.5)
  1329. deck.playAction("a_reg", 1,2, layer=loop_layer, play_mode=1, speed=.5)
  1330. trucks.playAction("a_reg", 1,2, layer=loop_layer, play_mode=1, speed=.5)
  1331. if requestAction == 'frontside_grab':
  1332. actionState = 'frontside_grab'
  1333. if l_actionState != 'frontside_grab':
  1334. skater.playAction("reg_fg", 1,10, layer=trans_layer, play_mode=0, speed=1)
  1335. deck.playAction("a_reg", 1,10, layer=trans_layer, play_mode=0, speed=1)
  1336. trucks.playAction("a_reg", 1,10, layer=trans_layer, play_mode=0, speed=1)
  1337. else:
  1338. skater.playAction("reg_fg", 10,30, layer=loop_layer, play_mode=1, speed=.5)
  1339. deck.playAction("a_reg", 10,30, layer=loop_layer, play_mode=1, speed=.5)
  1340. trucks.playAction("a_reg", 10,30, layer=loop_layer, play_mode=1, speed=.5)
  1341. if requestAction == 'backside_grab':
  1342. actionState = 'backside_grab'
  1343. if l_actionState != 'backside_grab':
  1344. skater.playAction("reg_bsg2", 1,10, layer=trans_layer, play_mode=0, speed=1)
  1345. deck.playAction("a_reg", 1,10, layer=trans_layer, play_mode=0, speed=1)
  1346. trucks.playAction("a_reg", 1,10, layer=trans_layer, play_mode=0, speed=1)
  1347. else:
  1348. skater.playAction("reg_bsg2", 10,30, layer=loop_layer, play_mode=1, speed=.5)
  1349. deck.playAction("a_reg", 10,30, layer=loop_layer, play_mode=1, speed=.5)
  1350. trucks.playAction("a_reg", 10,30, layer=loop_layer, play_mode=1, speed=.5)
  1351. if requestAction == 'fak_frontside_grab':
  1352. actionState = 'fak_frontside_grab'
  1353. if l_actionState != 'fak_frontside_grab':
  1354. skater.playAction("fak_fg", 1,10, layer=trans_layer, play_mode=0, speed=1)
  1355. deck.playAction("a_reg", 1,10, layer=trans_layer, play_mode=0, speed=1)
  1356. trucks.playAction("a_reg", 1,10, layer=trans_layer, play_mode=0, speed=1)
  1357. else:
  1358. skater.playAction("fak_fg", 10,30, layer=loop_layer, play_mode=1, speed=.5)
  1359. deck.playAction("a_reg", 10,30, layer=loop_layer, play_mode=1, speed=.5)
  1360. trucks.playAction("a_reg", 10,30, layer=loop_layer, play_mode=1, speed=.5)
  1361. if requestAction == 'fak_backside_grab':
  1362. actionState = 'fak_backside_grab'
  1363. if l_actionState != 'fak_backside_grab':
  1364. skater.playAction("fak_bg", 1,10, layer=trans_layer, play_mode=0, speed=1)
  1365. deck.playAction("a_reg", 1,10, layer=trans_layer, play_mode=0, speed=1)
  1366. trucks.playAction("a_reg", 1,10, layer=trans_layer, play_mode=0, speed=1)
  1367. else:
  1368. skater.playAction("fak_bg", 10,30, layer=loop_layer, play_mode=1, speed=.5)
  1369. deck.playAction("a_reg", 10,30, layer=loop_layer, play_mode=1, speed=.5)
  1370. trucks.playAction("a_reg", 10,30, layer=loop_layer, play_mode=1, speed=.5)
  1371. if requestAction == 'frontside_nose_grab':
  1372. actionState = 'frontside_nose_grab'
  1373. if l_actionState != 'frontside_nose_grab':
  1374. skater.playAction("frontside_nose_grab", 1,10, layer=trans_layer, play_mode=0, speed=1)
  1375. deck.playAction("a_reg", 1,10, layer=trans_layer, play_mode=0, speed=1)
  1376. trucks.playAction("a_reg", 1,10, layer=trans_layer, play_mode=0, speed=1)
  1377. else:
  1378. skater.playAction("frontside_nose_grab", 10,30, layer=loop_layer, play_mode=1, speed=.5)
  1379. deck.playAction("a_reg", 10,30, layer=loop_layer, play_mode=1, speed=.5)
  1380. trucks.playAction("a_reg", 10,30, layer=loop_layer, play_mode=1, speed=.5)
  1381. if requestAction == 'backside_nose_grab':
  1382. actionState = 'backside_nose_grab'
  1383. if l_actionState != 'backside_nose_grab':
  1384. skater.playAction("backside_nose_grab", 1,10, layer=trans_layer, play_mode=0, speed=1)
  1385. deck.playAction("a_reg", 1,10, layer=trans_layer, play_mode=0, speed=1)
  1386. trucks.playAction("a_reg", 1,10, layer=trans_layer, play_mode=0, speed=1)
  1387. else:
  1388. skater.playAction("backside_nose_grab", 10,30, layer=loop_layer, play_mode=1, speed=.5)
  1389. deck.playAction("a_reg", 10,30, layer=loop_layer, play_mode=1, speed=.5)
  1390. trucks.playAction("a_reg", 10,30, layer=loop_layer, play_mode=1, speed=.5)
  1391. if requestAction == 'fak_frontside_nose_grab':
  1392. actionState = 'fak_frontside_nose_grab'
  1393. if l_actionState != 'fak_frontside_nose_grab':
  1394. skater.playAction("fak_frontside_nose_grab", 1,10, layer=trans_layer, play_mode=0, speed=1)
  1395. deck.playAction("a_reg", 1,10, layer=trans_layer, play_mode=0, speed=1)
  1396. trucks.playAction("a_reg", 1,10, layer=trans_layer, play_mode=0, speed=1)
  1397. else:
  1398. skater.playAction("fak_frontside_nose_grab", 10,30, layer=loop_layer, play_mode=1, speed=.5)
  1399. deck.playAction("a_reg", 10,30, layer=loop_layer, play_mode=1, speed=.5)
  1400. trucks.playAction("a_reg", 10,30, layer=loop_layer, play_mode=1, speed=.5)
  1401. if requestAction == 'fak_backside_nose_grab':
  1402. actionState = 'fak_backside_nose_grab'
  1403. if l_actionState != 'fak_backside_nose_grab':
  1404. skater.playAction("fak_backside_nose_grab", 1,10, layer=trans_layer, play_mode=0, speed=1)
  1405. deck.playAction("a_reg", 1,10, layer=trans_layer, play_mode=0, speed=1)
  1406. trucks.playAction("a_reg", 1,10, layer=trans_layer, play_mode=0, speed=1)
  1407. else:
  1408. skater.playAction("fak_backside_nose_grab", 10,30, layer=loop_layer, play_mode=1, speed=.5)
  1409. deck.playAction("a_reg", 10,30, layer=loop_layer, play_mode=1, speed=.5)
  1410. trucks.playAction("a_reg", 10,30, layer=loop_layer, play_mode=1, speed=.5)
  1411. if requestAction == 'frontside_tail_grab':
  1412. actionState = 'frontside_tail_grab'
  1413. if l_actionState != 'frontside_tail_grab':
  1414. skater.playAction("frontside_tail_grab", 1,10, layer=trans_layer, play_mode=0, speed=1)
  1415. deck.playAction("a_reg", 1,10, layer=trans_layer, play_mode=0, speed=1)
  1416. trucks.playAction("a_reg", 1,10, layer=trans_layer, play_mode=0, speed=1)
  1417. else:
  1418. skater.playAction("frontside_tail_grab", 10,30, layer=loop_layer, play_mode=1, speed=.5)
  1419. deck.playAction("a_reg", 10,30, layer=loop_layer, play_mode=1, speed=.5)
  1420. trucks.playAction("a_reg", 10,30, layer=loop_layer, play_mode=1, speed=.5)
  1421. if requestAction == 'backside_tail_grab':
  1422. actionState = 'backside_tail_grab'
  1423. if l_actionState != 'backside_tail_grab':
  1424. skater.playAction("backside_tail_grab", 1,10, layer=trans_layer, play_mode=0, speed=1)
  1425. deck.playAction("a_reg", 1,10, layer=trans_layer, play_mode=0, speed=1)
  1426. trucks.playAction("a_reg", 1,10, layer=trans_layer, play_mode=0, speed=1)
  1427. else:
  1428. skater.playAction("backside_tail_grab", 10,30, layer=loop_layer, play_mode=1, speed=.5)
  1429. deck.playAction("a_reg", 10,30, layer=loop_layer, play_mode=1, speed=.5)
  1430. trucks.playAction("a_reg", 10,30, layer=loop_layer, play_mode=1, speed=.5)
  1431. if requestAction == 'fak_frontside_tail_grab':
  1432. actionState = 'fak_frontside_tail_grab'
  1433. if l_actionState != 'fak_frontside_tail_grab':
  1434. skater.playAction("fak_frontside_tail_grab", 1,10, layer=trans_layer, play_mode=0, speed=1)
  1435. deck.playAction("a_reg", 1,10, layer=trans_layer, play_mode=0, speed=1)
  1436. trucks.playAction("a_reg", 1,10, layer=trans_layer, play_mode=0, speed=1)
  1437. else:
  1438. skater.playAction("fak_frontside_tail_grab", 10,30, layer=loop_layer, play_mode=1, speed=.5)
  1439. deck.playAction("a_reg", 10,30, layer=loop_layer, play_mode=1, speed=.5)
  1440. trucks.playAction("a_reg", 10,30, layer=loop_layer, play_mode=1, speed=.5)
  1441. if requestAction == 'fak_backside_tail_grab':
  1442. actionState = 'fak_backside_tail_grab'
  1443. if l_actionState != 'fak_backside_tail_grab':
  1444. skater.playAction("fak_backside_tail_grab", 1,10, layer=trans_layer, play_mode=0, speed=1)
  1445. deck.playAction("a_reg", 1,10, layer=trans_layer, play_mode=0, speed=1)
  1446. trucks.playAction("a_reg", 1,10, layer=trans_layer, play_mode=0, speed=1)
  1447. else:
  1448. skater.playAction("fak_backside_tail_grab", 10,30, layer=loop_layer, play_mode=1, speed=.5)
  1449. deck.playAction("a_reg", 10,30, layer=loop_layer, play_mode=1, speed=.5)
  1450. trucks.playAction("a_reg", 10,30, layer=loop_layer, play_mode=1, speed=.5)
  1451. if requestAction == 'reg_noseg':
  1452. actionState = 'reg_noseg'
  1453. if l_actionState != 'reg_noseg' and l_actionState != 'reg_air_nose':
  1454. skater.stopAction(flip_layer)
  1455. deck.stopAction(flip_layer)
  1456. trucks.stopAction(flip_layer)
  1457. skater.playAction("reg_noseg.002", 1,10, layer=trans_layer, play_mode=0, speed=1)
  1458. deck.playAction("a_reg_noseg.002", 1,10, layer=trans_layer, play_mode=0, speed=1)
  1459. trucks.playAction("a_reg_noseg.002", 1,10, layer=trans_layer, play_mode=0, speed=1)
  1460. else:
  1461. skater.playAction("reg_noseg.002", 11,30, layer=loop_layer, play_mode=1, speed=.5)
  1462. deck.playAction("a_reg_noseg.002", 11,30, layer=loop_layer, play_mode=1, speed=.5)
  1463. trucks.playAction("a_reg_noseg.002", 11,30, layer=loop_layer, play_mode=1, speed=.5)
  1464. if requestAction == 'fak_noseg':
  1465. actionState = 'fak_noseg'
  1466. if l_actionState != 'fak_noseg' and l_actionState != 'fak_air_nose':
  1467. skater.stopAction(flip_layer)
  1468. deck.stopAction(flip_layer)
  1469. trucks.stopAction(flip_layer)
  1470. skater.playAction("fak_noseg", 40,30, layer=trans_layer, play_mode=0, speed=1)
  1471. deck.playAction("a_fak_noseg", 40,30, layer=trans_layer, play_mode=0, speed=1)
  1472. trucks.playAction("a_fak_noseg", 40,30, layer=trans_layer, play_mode=0, speed=1)
  1473. else:
  1474. skater.playAction("fak_noseg", 30,1, layer=loop_layer, play_mode=1, speed=.5)
  1475. deck.playAction("a_fak_noseg", 30,1, layer=loop_layer, play_mode=1, speed=.5)
  1476. trucks.playAction("a_fak_noseg", 30,1, layer=loop_layer, play_mode=1, speed=.5)
  1477. if requestAction == 'reg_tailg':
  1478. actionState = 'reg_tailg'
  1479. if l_actionState != 'reg_tailg' and l_actionState != 'reg_air_tail':
  1480. skater.stopAction(flip_layer)
  1481. deck.stopAction(flip_layer)
  1482. trucks.stopAction(flip_layer)
  1483. skater.playAction("reg_tailg.001", 40,30, layer=trans_layer, play_mode=0, speed=1)
  1484. deck.playAction("a_reg_tailg.001", 40,30, layer=trans_layer, play_mode=0, speed=1)
  1485. trucks.playAction("a_reg_tailg.001", 40,30, layer=trans_layer, play_mode=0, speed=1)
  1486. else:
  1487. skater.playAction("reg_tailg.001", 30,1, layer=loop_layer, play_mode=1, speed=.5)
  1488. deck.playAction("a_reg_tailg.001", 30,1, layer=loop_layer, play_mode=1, speed=.5)
  1489. trucks.playAction("a_reg_tailg.001", 30,1, layer=loop_layer, play_mode=1, speed=.5)
  1490. if requestAction == 'fak_tailg':
  1491. actionState = 'fak_tailg'
  1492. if l_actionState != 'fak_tailg' and l_actionState != 'fak_air_tail':
  1493. skater.stopAction(flip_layer)
  1494. deck.stopAction(flip_layer)
  1495. trucks.stopAction(flip_layer)
  1496. skater.playAction("fak_tailg", 40,30, layer=trans_layer, play_mode=0, speed=1)
  1497. deck.playAction("a_fak_tailg", 40,30, layer=trans_layer, play_mode=0, speed=1)
  1498. trucks.playAction("a_fak_tailg", 40,30, layer=trans_layer, play_mode=0, speed=1)
  1499. else:
  1500. skater.playAction("fak_tailg", 30,1, layer=loop_layer, play_mode=1, speed=.5)
  1501. deck.playAction("a_fak_tailg", 30,1, layer=loop_layer, play_mode=1, speed=.5)
  1502. trucks.playAction("a_fak_tailg", 30,1, layer=loop_layer, play_mode=1, speed=.5)
  1503. if requestAction == 'reg_tailgr':
  1504. actionState = 'reg_tailgr'
  1505. if l_actionState != 'reg_tailgr' and l_actionState != 'reg_air_tail':
  1506. skater.stopAction(flip_layer)
  1507. deck.stopAction(flip_layer)
  1508. trucks.stopAction(flip_layer)
  1509. skater.playAction("reg_tailgR", 40,30, layer=trans_layer, play_mode=0, speed=1)
  1510. deck.playAction("a_reg_tailgR", 40,30, layer=trans_layer, play_mode=0, speed=1)
  1511. trucks.playAction("a_reg_tailgR", 40,30, layer=trans_layer, play_mode=0, speed=1)
  1512. else:
  1513. skater.playAction("reg_tailgR", 30,1, layer=loop_layer, play_mode=1, speed=.5)
  1514. deck.playAction("a_reg_tailgR", 30,1, layer=loop_layer, play_mode=1, speed=.5)
  1515. trucks.playAction("a_reg_tailgR", 30,1, layer=loop_layer, play_mode=1, speed=.5)
  1516. if requestAction == 'fak_tailgr':
  1517. actionState = 'fak_tailgr'
  1518. if l_actionState != 'fak_tailgr' and l_actionState != 'fak_air_tail':
  1519. skater.stopAction(flip_layer)
  1520. deck.stopAction(flip_layer)
  1521. trucks.stopAction(flip_layer)
  1522. skater.playAction("fak_tailgR", 40,30, layer=trans_layer, play_mode=0, speed=1)
  1523. deck.playAction("a_fak_tailgR", 40,30, layer=trans_layer, play_mode=0, speed=1)
  1524. trucks.playAction("a_fak_tailgR", 40,30, layer=trans_layer, play_mode=0, speed=1)
  1525. else:
  1526. skater.playAction("fak_tailgR", 30,1, layer=loop_layer, play_mode=1, speed=.5)
  1527. deck.playAction("a_fak_tailgR", 30,1, layer=loop_layer, play_mode=1, speed=.5)
  1528. trucks.playAction("a_fak_tailgR", 30,1, layer=loop_layer, play_mode=1, speed=.5)
  1529. if requestAction == 'reg_tailgl':
  1530. actionState = 'reg_tailgl'
  1531. if l_actionState != 'reg_tailgl' and l_actionState != 'reg_air_tail':
  1532. skater.stopAction(flip_layer)
  1533. deck.stopAction(flip_layer)
  1534. trucks.stopAction(flip_layer)
  1535. skater.playAction("reg_tailgL", 40,30, layer=trans_layer, play_mode=0, speed=1)
  1536. deck.playAction("a_reg_tailgL", 40,30, layer=trans_layer, play_mode=0, speed=1)
  1537. trucks.playAction("a_reg_tailgL", 40,30, layer=trans_layer, play_mode=0, speed=1)
  1538. else:
  1539. skater.playAction("reg_tailgL", 30,1, layer=loop_layer, play_mode=1, speed=.5)
  1540. deck.playAction("a_reg_tailgL", 30,1, layer=loop_layer, play_mode=1, speed=.5)
  1541. trucks.playAction("a_reg_tailgL", 30,1, layer=loop_layer, play_mode=1, speed=.5)
  1542. if requestAction == 'fak_tailgl':
  1543. actionState = 'fak_tailgl'
  1544. if l_actionState != 'fak_tailgl' and l_actionState != 'fak_air_tail':
  1545. skater.stopAction(flip_layer)
  1546. deck.stopAction(flip_layer)
  1547. trucks.stopAction(flip_layer)
  1548. skater.playAction("fak_tailgL", 40,30, layer=trans_layer, play_mode=0, speed=1)
  1549. deck.playAction("a_fak_tailgL", 40,30, layer=trans_layer, play_mode=0, speed=1)
  1550. trucks.playAction("a_fak_tailgL", 40,30, layer=trans_layer, play_mode=0, speed=1)
  1551. else:
  1552. skater.playAction("fak_tailgL", 30,1, layer=loop_layer, play_mode=1, speed=.5)
  1553. deck.playAction("a_fak_tailgL", 30,1, layer=loop_layer, play_mode=1, speed=.5)
  1554. trucks.playAction("a_fak_tailgL", 30,1, layer=loop_layer, play_mode=1, speed=.5)
  1555. ##############################
  1556. if requestAction == 'reg_nosegr':
  1557. actionState = 'reg_nosegr'
  1558. if l_actionState != 'reg_nosegr' and l_actionState != 'reg_air_tail':
  1559. skater.stopAction(flip_layer)
  1560. deck.stopAction(flip_layer)
  1561. trucks.stopAction(flip_layer)
  1562. skater.playAction("reg_nosegR", 40,30, layer=trans_layer, play_mode=0, speed=1)
  1563. deck.playAction("a_reg_nosegR", 40,30, layer=trans_layer, play_mode=0, speed=1)
  1564. trucks.playAction("a_reg_nosegR", 40,30, layer=trans_layer, play_mode=0, speed=1)
  1565. else:
  1566. skater.playAction("reg_nosegR", 30,1, layer=loop_layer, play_mode=1, speed=.5)
  1567. deck.playAction("a_reg_nosegR", 30,1, layer=loop_layer, play_mode=1, speed=.5)
  1568. trucks.playAction("a_reg_nosegR", 30,1, layer=loop_layer, play_mode=1, speed=.5)
  1569. if requestAction == 'fak_nosegr':
  1570. actionState = 'fak_nosegr'
  1571. if l_actionState != 'fak_nosegr' and l_actionState != 'fak_air_nose':
  1572. skater.stopAction(flip_layer)
  1573. deck.stopAction(flip_layer)
  1574. trucks.stopAction(flip_layer)
  1575. skater.playAction("fak_nosegR", 40,30, layer=trans_layer, play_mode=0, speed=1)
  1576. deck.playAction("a_fak_nosegR", 40,30, layer=trans_layer, play_mode=0, speed=1)
  1577. trucks.playAction("a_fak_nosegR", 40,30, layer=trans_layer, play_mode=0, speed=1)
  1578. else:
  1579. skater.playAction("fak_nosegR", 30,1, layer=loop_layer, play_mode=1, speed=.5)
  1580. deck.playAction("a_fak_nosegR", 30,1, layer=loop_layer, play_mode=1, speed=.5)
  1581. trucks.playAction("a_fak_nosegR", 30,1, layer=loop_layer, play_mode=1, speed=.5)
  1582. if requestAction == 'reg_nosegl':
  1583. actionState = 'reg_nosegl'
  1584. if l_actionState != 'reg_nosegl' and l_actionState != 'reg_air_nose':
  1585. skater.stopAction(flip_layer)
  1586. deck.stopAction(flip_layer)
  1587. trucks.stopAction(flip_layer)
  1588. skater.playAction("reg_nosegL", 40,30, layer=trans_layer, play_mode=0, speed=1)
  1589. deck.playAction("a_reg_nosegL", 40,30, layer=trans_layer, play_mode=0, speed=1)
  1590. trucks.playAction("a_reg_nosegL", 40,30, layer=trans_layer, play_mode=0, speed=1)
  1591. else:
  1592. skater.playAction("reg_nosegL", 30,1, layer=loop_layer, play_mode=1, speed=.5)
  1593. deck.playAction("a_reg_nosegL", 30,1, layer=loop_layer, play_mode=1, speed=.5)
  1594. trucks.playAction("a_reg_nosegL", 30,1, layer=loop_layer, play_mode=1, speed=.5)
  1595. #print("rA:", requestAction)
  1596. if requestAction == 'fak_nosegl':
  1597. actionState = 'fak_nosegl'
  1598. print("fak_nosegl state")
  1599. if l_actionState != 'fak_nosegl' and l_actionState != 'fak_air_nose':
  1600. skater.stopAction(flip_layer)
  1601. deck.stopAction(flip_layer)
  1602. trucks.stopAction(flip_layer)
  1603. skater.playAction("fak_nosegL", 40,30, layer=trans_layer, play_mode=0, speed=1)
  1604. deck.playAction("a_fak_nosegL", 40,30, layer=trans_layer, play_mode=0, speed=1)
  1605. trucks.playAction("a_fak_nosegL", 40,30, layer=trans_layer, play_mode=0, speed=1)
  1606. else:
  1607. skater.playAction("fak_nosegL", 30,1, layer=loop_layer, play_mode=1, speed=.5)
  1608. deck.playAction("a_fak_nosegL", 30,1, layer=loop_layer, play_mode=1, speed=.5)
  1609. trucks.playAction("a_fak_nosegL", 30,1, layer=loop_layer, play_mode=1, speed=.5)
  1610. if requestAction == 'reg_tailslide':
  1611. actionState = 'reg_tailslide'
  1612. if l_actionState != 'reg_tailslide' and l_actionState != 'reg_air_tail' and l_actionState != 'reg_tailslide_out':
  1613. skater.stopAction(flip_layer)
  1614. deck.stopAction(flip_layer)
  1615. trucks.stopAction(flip_layer)
  1616. skater.playAction("fak_noses", 40,30, layer=trans_layer, play_mode=0, speed=1)
  1617. deck.playAction("a_fak_noses", 40,30, layer=trans_layer, play_mode=0, speed=1)
  1618. trucks.playAction("a_fak_noses", 40,30, layer=trans_layer, play_mode=0, speed=1)
  1619. else:
  1620. skater.playAction("fak_noses", 30,1, layer=loop_layer, play_mode=1, speed=.5)
  1621. deck.playAction("a_fak_noses", 30,1, layer=loop_layer, play_mode=1, speed=.5)
  1622. trucks.playAction("a_fak_noses", 30,1, layer=loop_layer, play_mode=1, speed=.5)
  1623. if requestAction == 'fak_tailslide':
  1624. actionState = 'fak_tailslide'
  1625. if l_actionState != 'fak_tailslide' and l_actionState != 'fak_air_tail' and l_actionState != 'reg_tailslide_out':
  1626. skater.stopAction(flip_layer)
  1627. deck.stopAction(flip_layer)
  1628. trucks.stopAction(flip_layer)
  1629. skater.playAction("reg_noses", 40,30, layer=trans_layer, play_mode=0, speed=1)
  1630. deck.playAction("a_reg_noses", 40,30, layer=trans_layer, play_mode=0, speed=1)
  1631. trucks.playAction("a_reg_noses", 40,30, layer=trans_layer, play_mode=0, speed=1)
  1632. else:
  1633. skater.playAction("reg_noses", 30,1, layer=loop_layer, play_mode=1, speed=.5)
  1634. deck.playAction("a_reg_noses", 30,1, layer=loop_layer, play_mode=1, speed=.5)
  1635. trucks.playAction("a_reg_noses", 30,1, layer=loop_layer, play_mode=1, speed=.5)
  1636. if requestAction == 'reg_noseslide':
  1637. actionState = 'reg_noseslide'
  1638. if l_actionState != 'reg_noseslide' and l_actionState != 'reg_air_nose' and l_actionState != 'reg_tailslide_out':
  1639. skater.stopAction(flip_layer)
  1640. deck.stopAction(flip_layer)
  1641. trucks.stopAction(flip_layer)
  1642. skater.playAction("fak_tails", 40,30, layer=trans_layer, play_mode=0, speed=1)
  1643. deck.playAction("a_fak_tails", 40,30, layer=trans_layer, play_mode=0, speed=1)
  1644. trucks.playAction("a_fak_tails", 40,30, layer=trans_layer, play_mode=0, speed=1)
  1645. else:
  1646. skater.playAction("fak_tails", 30,1, layer=loop_layer, play_mode=1, speed=.5)
  1647. deck.playAction("a_fak_tails", 30,1, layer=loop_layer, play_mode=1, speed=.5)
  1648. trucks.playAction("a_fak_tails", 30,1, layer=loop_layer, play_mode=1, speed=.5)
  1649. if requestAction == 'fak_noseslide':
  1650. actionState = 'fak_noseslide'
  1651. if l_actionState != 'fak_noseslide' and l_actionState != 'fak_air_nose' and l_actionState != 'reg_tailslide_out':
  1652. skater.stopAction(flip_layer)
  1653. deck.stopAction(flip_layer)
  1654. trucks.stopAction(flip_layer)
  1655. skater.playAction("reg_tails", 40,30, layer=trans_layer, play_mode=0, speed=1)
  1656. deck.playAction("a_reg_tails", 40,30, layer=trans_layer, play_mode=0, speed=1)
  1657. trucks.playAction("a_reg_tails", 40,30, layer=trans_layer, play_mode=0, speed=1)
  1658. else:
  1659. skater.playAction("reg_tails", 30,1, layer=loop_layer, play_mode=1, speed=.5)
  1660. deck.playAction("a_reg_tails", 30,1, layer=loop_layer, play_mode=1, speed=.5)
  1661. trucks.playAction("a_reg_tails", 30,1, layer=loop_layer, play_mode=1, speed=.5)
  1662. if requestAction == 'reg_5050':
  1663. actionState = 'reg_5050'
  1664. #own['actionTimer'] = 0
  1665. skater.playAction("reg_5050", 1,30, layer=loop_layer, play_mode=1, speed=.5)
  1666. deck.playAction("a_reg", 1,30, layer=loop_layer, play_mode=1, speed=.5)
  1667. trucks.playAction("a_reg", 1,30, layer=loop_layer, play_mode=1, speed=.5)
  1668. if requestAction == 'fak_5050':
  1669. actionState = 'fak_5050'
  1670. own['actionTimer'] = 0
  1671. skater.playAction("fak_5050", 1,30, layer=loop_layer, play_mode=1, speed=.5)
  1672. deck.playAction("a_reg", 1,30, layer=loop_layer, play_mode=1, speed=.5)
  1673. trucks.playAction("a_reg", 1,30, layer=loop_layer, play_mode=1, speed=.5)
  1674. if requestAction == 'reg_bsboard':
  1675. actionState = 'reg_bsboard'
  1676. skater.playAction("reg_BS_Board2", 1,30, layer=loop_layer, play_mode=1, speed=.5)
  1677. deck.playAction("a_reg_BS_Board2", 1,30, layer=loop_layer, play_mode=1, speed=.5)
  1678. trucks.playAction("a_reg_BS_Board2", 1,30, layer=loop_layer, play_mode=1, speed=.5)
  1679. if requestAction == 'fak_bsboard':
  1680. actionState = 'fak_bsboard'
  1681. skater.playAction("fak_BS_Board2", 1,30, layer=loop_layer, play_mode=1, speed=.5)
  1682. deck.playAction("a_fak_BS_Board2", 1,30, layer=loop_layer, play_mode=1, speed=.5)
  1683. trucks.playAction("a_fak_BS_Board2", 1,30, layer=loop_layer, play_mode=1, speed=.5)
  1684. if requestAction == 'reg_fsboard':
  1685. actionState = 'reg_fsboard'
  1686. skater.playAction("reg_FS_Board", 1,30, layer=loop_layer, play_mode=1, speed=.5)
  1687. deck.playAction("a_reg_FS_Board", 1,30, layer=loop_layer, play_mode=1, speed=.5)
  1688. trucks.playAction("a_reg_FS_Board", 1,30, layer=loop_layer, play_mode=1, speed=.5)
  1689. if requestAction == 'reg_air_nose':
  1690. actionState = 'reg_air_nose'
  1691. if l_actionState != 'reg_air_nose':
  1692. skater.stopAction(loop_layer)
  1693. deck.stopAction(loop_layer)
  1694. trucks.stopAction(loop_layer)
  1695. skater.stopAction(flip_layer)
  1696. deck.stopAction(flip_layer)
  1697. trucks.stopAction(flip_layer)
  1698. skater.playAction("reg_noseg.002", 1,10, layer=trans_layer, play_mode=0, speed=1)
  1699. deck.playAction("a_reg_noseg.002", 1,10, layer=trans_layer, play_mode=0, speed=1)
  1700. trucks.playAction("a_reg_noseg.002", 1,10, layer=trans_layer, play_mode=0, speed=1)
  1701. else:
  1702. #pass
  1703. skater.playAction("reg_noseg.002", 11,30, layer=loop_layer, play_mode=1, speed=.5)
  1704. deck.playAction("a_reg_noseg.002", 11,30, layer=loop_layer, play_mode=1, speed=.5)
  1705. trucks.playAction("a_reg_noseg.002", 11,30, layer=loop_layer, play_mode=1, speed=.5)
  1706. if requestAction == 'fak_air_nose':
  1707. actionState = 'fak_air_nose'
  1708. if l_actionState != 'fak_air_nose':
  1709. skater.stopAction(loop_layer)
  1710. deck.stopAction(loop_layer)
  1711. trucks.stopAction(loop_layer)
  1712. skater.stopAction(flip_layer)
  1713. deck.stopAction(flip_layer)
  1714. trucks.stopAction(flip_layer)
  1715. skater.playAction("fak_noseg", 40,30, layer=trans_layer, play_mode=0, speed=1)
  1716. deck.playAction("a_fak_noseg", 40,30, layer=trans_layer, play_mode=0, speed=1)
  1717. trucks.playAction("a_fak_noseg", 40,30, layer=trans_layer, play_mode=0, speed=1)
  1718. else:
  1719. #pass
  1720. skater.playAction("fak_noseg", 30,1, layer=loop_layer, play_mode=1, speed=.5)
  1721. deck.playAction("a_fak_noseg", 30,1, layer=loop_layer, play_mode=1, speed=.5)
  1722. trucks.playAction("a_fak_noseg", 30,1, layer=loop_layer, play_mode=1, speed=.5)
  1723. if requestAction == 'reg_air_tail':
  1724. actionState = 'reg_air_tail'
  1725. if l_actionState != 'reg_air_tail':
  1726. skater.stopAction(loop_layer)
  1727. deck.stopAction(loop_layer)
  1728. trucks.stopAction(loop_layer)
  1729. skater.stopAction(flip_layer)
  1730. deck.stopAction(flip_layer)
  1731. trucks.stopAction(flip_layer)
  1732. skater.playAction("reg_tailg.001", 40,30, layer=trans_layer, play_mode=0, speed=1)
  1733. deck.playAction("a_reg_tailg.001", 40,30, layer=trans_layer, play_mode=0, speed=1)
  1734. trucks.playAction("a_reg_tailg.001", 40,30, layer=trans_layer, play_mode=0, speed=1)
  1735. else:
  1736. #pass
  1737. skater.playAction("reg_tailg.001", 30,1, layer=loop_layer, play_mode=1, speed=.5)
  1738. deck.playAction("a_reg_tailg.001", 30,1, layer=loop_layer, play_mode=1, speed=.5)
  1739. trucks.playAction("a_reg_tailg.001", 30,1, layer=loop_layer, play_mode=1, speed=.5)
  1740. if requestAction == 'fak_air_tail':
  1741. actionState = 'fak_air_tail'
  1742. if l_actionState != 'fak_air_tail':
  1743. skater.stopAction(loop_layer)
  1744. deck.stopAction(loop_layer)
  1745. trucks.stopAction(loop_layer)
  1746. skater.stopAction(flip_layer)
  1747. deck.stopAction(flip_layer)
  1748. trucks.stopAction(flip_layer)
  1749. skater.playAction("fak_tailg", 40,30, layer=trans_layer, play_mode=0, speed=1)
  1750. deck.playAction("a_fak_tailg", 40,30, layer=trans_layer, play_mode=0, speed=1)
  1751. trucks.playAction("a_fak_tailg", 40,30, layer=trans_layer, play_mode=0, speed=1)
  1752. else:
  1753. #pass
  1754. skater.playAction("fak_tailg", 30,1, layer=loop_layer, play_mode=1, speed=.5)
  1755. deck.playAction("a_fak_tailg", 30,1, layer=loop_layer, play_mode=1, speed=.5)
  1756. trucks.playAction("a_fak_tailg", 30,1, layer=loop_layer, play_mode=1, speed=.5)
  1757. if requestAction == 'reg_stop':
  1758. actionState = 'reg_stop'
  1759. if l_actionState != 'reg_stop':
  1760. skater.playAction("reg_stopin", 1,15, layer=trans_layer, play_mode=0, speed=.5)
  1761. deck.playAction("a_reg", 1,15, layer=trans_layer, play_mode=0, speed=.5)
  1762. trucks.playAction("a_reg", 1,15, layer=trans_layer, play_mode=0, speed=.5)
  1763. else:
  1764. skater.playAction("reg_stop", 30,30, layer=loop_layer, play_mode=1, speed=.5)
  1765. deck.playAction("a_reg", 30,30, layer=loop_layer, play_mode=1, speed=.5)
  1766. trucks.playAction("a_reg", 30,30, layer=loop_layer, play_mode=1, speed=.5)
  1767. if requestAction == 'fak_stop':
  1768. actionState = 'fak_stop'
  1769. if l_actionState != 'fak_stop':
  1770. skater.playAction("fak_stopin", 1,15, layer=trans_layer, play_mode=0, speed=.5)
  1771. deck.playAction("a_reg", 1,15, layer=trans_layer, play_mode=0, speed=.5)
  1772. trucks.playAction("a_reg", 1,15, layer=trans_layer, play_mode=0, speed=.5)
  1773. else:
  1774. skater.playAction("fak_stop", 30,30, layer=loop_layer, play_mode=1, speed=.5)
  1775. deck.playAction("a_reg", 30,30, layer=loop_layer, play_mode=1, speed=.5)
  1776. trucks.playAction("a_reg", 30,30, layer=loop_layer, play_mode=1, speed=.5)
  1777. if requestAction == 'reg_fp_rback':
  1778. actionState = 'reg_fp_rback'
  1779. if l_actionState != 'reg_fp_rback':
  1780. skater.playAction("reg_fp_rback", 1,10, layer=trans_layer, play_mode=0, speed=.5)
  1781. deck.playAction("a_reg_fp_rback", 1,10, layer=trans_layer, play_mode=0, speed=.5)
  1782. trucks.playAction("a_reg_fp_rback", 1,10, layer=trans_layer, play_mode=0, speed=.5)
  1783. else:
  1784. skater.playAction("reg_fp_rback", 10,10, layer=loop_layer, play_mode=1, speed=.5)
  1785. deck.playAction("a_reg_fp_rback", 10,10, layer=loop_layer, play_mode=1, speed=.5)
  1786. trucks.playAction("a_reg_fp_rback", 10,10, layer=loop_layer, play_mode=1, speed=.5)
  1787. if requestAction == 'fak_fp_rback':
  1788. actionState = 'fak_fp_rback'
  1789. if l_actionState != 'fak_fp_rback':
  1790. skater.playAction("fak_fp_rback", 1,10, layer=trans_layer, play_mode=0, speed=.5)
  1791. deck.playAction("a_fak_fp_rback", 1,10, layer=trans_layer, play_mode=0, speed=.5)
  1792. trucks.playAction("a_fak_fp_rback", 1,10, layer=trans_layer, play_mode=0, speed=.5)
  1793. else:
  1794. skater.playAction("fak_fp_rback", 10,10, layer=loop_layer, play_mode=1, speed=.5)
  1795. deck.playAction("a_fak_fp_rback", 10,10, layer=loop_layer, play_mode=1, speed=.5)
  1796. trucks.playAction("a_fak_fp_rback", 10,10, layer=loop_layer, play_mode=1, speed=.5)
  1797. if requestAction == 'reg_back_invert':
  1798. actionState = 'reg_back_invert'
  1799. if l_actionState != 'reg_back_invert':
  1800. skater.playAction("reg_back_invert_in", 1,30, layer=trans_layer, play_mode=0, speed=1)
  1801. deck.playAction("a_reg_back_invert_in", 1,30, layer=trans_layer, play_mode=0, speed=1)
  1802. trucks.playAction("a_reg_back_invert_in", 1,30, layer=trans_layer, play_mode=0, speed=1)
  1803. else:
  1804. skater.playAction("reg_back_invert_in", 30,30, layer=loop_layer, play_mode=1, speed=1)
  1805. deck.playAction("a_reg_back_invert_in", 30,30, layer=loop_layer, play_mode=1, speed=1)
  1806. trucks.playAction("a_reg_back_invert_in", 30,30, layer=loop_layer, play_mode=1, speed=1)
  1807. if requestAction == 'fak_fr_invert':
  1808. actionState = 'fak_fr_invert'
  1809. if l_actionState != 'fak_fr_invert':
  1810. skater.playAction("fak_fr_invert", 1,30, layer=trans_layer, play_mode=0, speed=1)
  1811. deck.playAction("a_fak_fr_invert", 1,30, layer=trans_layer, play_mode=0, speed=1)
  1812. trucks.playAction("a_fak_fr_invert", 1,30, layer=trans_layer, play_mode=0, speed=1)
  1813. else:
  1814. skater.playAction("fak_fr_invert", 30,30, layer=loop_layer, play_mode=1, speed=1)
  1815. deck.playAction("a_fak_fr_invert", 30,30, layer=loop_layer, play_mode=1, speed=1)
  1816. trucks.playAction("a_fak_fr_invert", 30,30, layer=loop_layer, play_mode=1, speed=1)
  1817. #$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
  1818. #walk anims
  1819. #reg_idle
  1820. if requestAction == 'reg_idle':
  1821. actionState = 'reg_idle'
  1822. if l_requestAction != 'reg_idle':
  1823. if l_requestAction == 'reg_walk' or l_requestAction == 'reg_walkFast':
  1824. cur_frame = skater.getActionFrame(loop_layer)
  1825. skater.stopAction(loop_layer)
  1826. deck.stopAction(loop_layer)
  1827. trucks.stopAction(loop_layer)
  1828. if cur_frame > 11:
  1829. cur_frame += 1
  1830. skater.playAction("reg_nwalk", cur_frame,35, layer=trans_layer, play_mode=0, speed=.5)
  1831. deck.playAction("a_reg_nwalk", cur_frame,35, layer=trans_layer, play_mode=0, speed=.5)
  1832. trucks.playAction("a_reg_nwalk", cur_frame,35, layer=trans_layer, play_mode=0, speed=.5)
  1833. else:
  1834. cur_frame -= 1
  1835. skater.playAction("reg_nwalk", cur_frame,0, layer=trans_layer, play_mode=0, speed=.5)
  1836. deck.playAction("a_reg_nwalk", cur_frame,0, layer=trans_layer, play_mode=0, speed=.5)
  1837. trucks.playAction("a_reg_nwalk", cur_frame,0, layer=trans_layer, play_mode=0, speed=.5)
  1838. else:
  1839. #print("#####")
  1840. trans_playing = skater.isPlayingAction(trans_layer)
  1841. if trans_playing == 1:
  1842. skater.playAction("reg_idle1", 1,120, layer=loop_layer, play_mode=0, speed=.5)
  1843. #deck.playAction("a_reg_idle1", 1,120, layer=loop_layer, play_mode=0, speed=.5)
  1844. #trucks.playAction("a_reg_idle1", 1,120, layer=loop_layer, play_mode=0, speed=.5)
  1845. #reg_idle_nb
  1846. if requestAction == 'reg_idle_nb':
  1847. actionState = 'reg_idle_nb'
  1848. if l_requestAction != 'reg_idle_nb':
  1849. if l_requestAction == 'reg_walk_nb' or l_requestAction == 'reg_walkFast_nb':
  1850. cur_frame = skater.getActionFrame(loop_layer)
  1851. skater.stopAction(loop_layer)
  1852. deck.stopAction(loop_layer)
  1853. trucks.stopAction(loop_layer)
  1854. if cur_frame > 11:
  1855. cur_frame += 1
  1856. skater.playAction("reg_nwalk_nb.001", cur_frame,35, layer=trans_layer, play_mode=0, speed=.5)
  1857. else:
  1858. cur_frame -= 1
  1859. skater.playAction("reg_nwalk_nb.001", cur_frame,0, layer=trans_layer, play_mode=0, speed=.5)
  1860. else:
  1861. trans_playing = skater.isPlayingAction(trans_layer)
  1862. if trans_playing == 1:
  1863. #pass
  1864. skater.playAction("reg_idle1", 1,120, layer=loop_layer, play_mode=0, speed=.5)
  1865. #fak_idle
  1866. if requestAction == 'fak_idle':
  1867. actionState = 'fak_idle'
  1868. if l_requestAction != 'fak_idle':
  1869. if l_requestAction == 'fak_walk' or l_requestAction == 'fak_walkFast':
  1870. cur_frame = skater.getActionFrame(loop_layer)
  1871. skater.stopAction(loop_layer)
  1872. deck.stopAction(loop_layer)
  1873. trucks.stopAction(loop_layer)
  1874. if cur_frame > 11:
  1875. cur_frame += 1
  1876. skater.playAction("fak_nwalk", cur_frame,35, layer=trans_layer, play_mode=0, speed=.5)
  1877. deck.playAction("a_fak_nwalk", cur_frame,35, layer=trans_layer, play_mode=0, speed=.5)
  1878. trucks.playAction("a_fak_nwalk", cur_frame,35, layer=trans_layer, play_mode=0, speed=.5)
  1879. else:
  1880. cur_frame -= 1
  1881. skater.playAction("fak_nwalk", cur_frame,0, layer=trans_layer, play_mode=0, speed=.5)
  1882. deck.playAction("a_fak_nwalk", cur_frame,0, layer=trans_layer, play_mode=0, speed=.5)
  1883. trucks.playAction("a_fak_nwalk", cur_frame,0, layer=trans_layer, play_mode=0, speed=.5)
  1884. else:
  1885. trans_playing = skater.isPlayingAction(trans_layer)
  1886. if trans_playing == 1:
  1887. #pass
  1888. skater.playAction("fak_idle1", 1,120, layer=loop_layer, play_mode=0, speed=.5)
  1889. #fak_idle_nb
  1890. if requestAction == 'fak_idle_nb':
  1891. actionState = 'fak_idle_nb'
  1892. if l_requestAction != 'fak_idle_nb':
  1893. if l_requestAction == 'fak_walk_nb' or l_requestAction == 'fak_walkFast_nb':
  1894. cur_frame = skater.getActionFrame(loop_layer)
  1895. skater.stopAction(loop_layer)
  1896. deck.stopAction(loop_layer)
  1897. trucks.stopAction(loop_layer)
  1898. if cur_frame > 11:
  1899. cur_frame += 1
  1900. skater.playAction("fak_nwalk_nb.001", cur_frame,35, layer=trans_layer, play_mode=0, speed=.5)
  1901. else:
  1902. cur_frame -= 1
  1903. skater.playAction("fak_nwalk_nb.001", cur_frame,0, layer=trans_layer, play_mode=0, speed=.5)
  1904. else:
  1905. trans_playing = skater.isPlayingAction(trans_layer)
  1906. if trans_playing == 1:
  1907. #pass
  1908. skater.playAction("fak_idle1", 1,120, layer=loop_layer, play_mode=0, speed=.5)
  1909. #reg_walk
  1910. if requestAction == 'reg_walk':
  1911. actionState = 'reg_walk'
  1912. #in
  1913. if l_requestAction != 'reg_walk':
  1914. if l_requestAction == 'reg_walkFast':
  1915. cur_frame = skater.getActionFrame(loop_layer)
  1916. skater.playAction("reg_nwalk", 0,35, layer=loop_layer, play_mode=1, speed=.5)
  1917. deck.playAction("a_reg_nwalk", 0,35, layer=loop_layer, play_mode=1, speed=.5)
  1918. trucks.playAction("a_reg_nwalk", 0,35, layer=loop_layer, play_mode=1, speed=.5)
  1919. skater.setActionFrame(cur_frame, loop_layer)
  1920. deck.setActionFrame(cur_frame, loop_layer)
  1921. trucks.setActionFrame(cur_frame, loop_layer)
  1922. #loop
  1923. else:
  1924. skater.playAction("reg_nwalk", 0,35, layer=loop_layer, play_mode=1, speed=.5)
  1925. deck.playAction("a_reg_nwalk", 0,35, layer=loop_layer, play_mode=1, speed=.5)
  1926. trucks.playAction("a_reg_nwalk", 0,35, layer=loop_layer, play_mode=1, speed=.5)
  1927. #reg_walk_nb
  1928. if requestAction == 'reg_walk_nb':
  1929. actionState = 'reg_walk_nb'
  1930. #in
  1931. if l_requestAction != 'reg_walk_nb':
  1932. if l_requestAction == 'reg_walkFast_nb':
  1933. cur_frame = skater.getActionFrame(loop_layer)
  1934. skater.playAction("reg_nwalk_nb.001", 0,35, layer=loop_layer, play_mode=1, speed=.5)
  1935. skater.setActionFrame(cur_frame, loop_layer)
  1936. #loop
  1937. else:
  1938. skater.playAction("reg_nwalk_nb.001", 0,35, layer=loop_layer, play_mode=1, speed=.5)
  1939. #reg_walkFast
  1940. if requestAction == 'reg_walkFast':
  1941. actionState = 'reg_walkFast'
  1942. #in
  1943. if l_requestAction != 'reg_walkFast':
  1944. if l_requestAction == 'reg_walk':
  1945. cur_frame = skater.getActionFrame(loop_layer)
  1946. skater.playAction("reg_nwalk", 0,35, layer=loop_layer, play_mode=1, speed=1)
  1947. deck.playAction("a_reg_nwalk", 0,35, layer=loop_layer, play_mode=1, speed=1)
  1948. trucks.playAction("a_reg_nwalk", 0,35, layer=loop_layer, play_mode=1, speed=1)
  1949. skater.setActionFrame(cur_frame, loop_layer)
  1950. deck.setActionFrame(cur_frame, loop_layer)
  1951. trucks.setActionFrame(cur_frame, loop_layer)
  1952. print("set last walk frame", cur_frame)
  1953. #loop
  1954. else:
  1955. skater.playAction("reg_nwalk", 0,35, layer=loop_layer, play_mode=1, speed=1)
  1956. deck.playAction("a_reg_nwalk", 0,35, layer=loop_layer, play_mode=1, speed=1)
  1957. trucks.playAction("a_reg_nwalk", 0,35, layer=loop_layer, play_mode=1, speed=1)
  1958. #reg_walkFast_nb
  1959. if requestAction == 'reg_walkFast_nb':
  1960. actionState = 'reg_walkFast_nb'
  1961. #in
  1962. if l_requestAction != 'reg_walkFast_nb':
  1963. if l_requestAction == 'reg_walk_nb':
  1964. cur_frame = skater.getActionFrame(loop_layer)
  1965. skater.playAction("reg_nwalk_nb.001", 0,35, layer=loop_layer, play_mode=1, speed=1)
  1966. skater.setActionFrame(cur_frame, loop_layer)
  1967. #loop
  1968. else:
  1969. skater.playAction("reg_nwalk_nb.001", 0,35, layer=loop_layer, play_mode=1, speed=1)
  1970. #fak_walk
  1971. if requestAction == 'fak_walk':
  1972. #in
  1973. actionState = 'fak_walk'
  1974. if l_requestAction != 'fak_walk':
  1975. if l_requestAction == 'fak_walkFast':
  1976. cur_frame = skater.getActionFrame(loop_layer)
  1977. #actionState = 'fak_walk'
  1978. skater.playAction("fak_nwalk", 0,35, layer=loop_layer, play_mode=1, speed=.5)
  1979. deck.playAction("a_fak_nwalk", 0,35, layer=loop_layer, play_mode=1, speed=.5)
  1980. trucks.playAction("a_fak_nwalk", 0,35, layer=loop_layer, play_mode=1, speed=.5)
  1981. skater.setActionFrame(cur_frame, loop_layer)
  1982. deck.setActionFrame(cur_frame, loop_layer)
  1983. trucks.setActionFrame(cur_frame, loop_layer)
  1984. #pass
  1985. #loop
  1986. else:
  1987. skater.playAction("fak_nwalk", 0,35, layer=loop_layer, play_mode=1, speed=.5)
  1988. deck.playAction("a_fak_nwalk", 0,35, layer=loop_layer, play_mode=1, speed=.5)
  1989. trucks.playAction("a_fak_nwalk", 0,35, layer=loop_layer, play_mode=1, speed=.5)
  1990. #fak_walk_nb
  1991. if requestAction == 'fak_walk_nb':
  1992. actionState = 'fak_walk_nb'
  1993. #in
  1994. if l_requestAction != 'fak_walk_nb':
  1995. if l_requestAction == 'fak_walkFast_nb':
  1996. cur_frame = skater.getActionFrame(loop_layer)
  1997. skater.playAction("fak_nwalk_nb.001", 0,35, layer=loop_layer, play_mode=1, speed=.5)
  1998. skater.setActionFrame(cur_frame, loop_layer)
  1999. #loop
  2000. else:
  2001. skater.playAction("fak_nwalk_nb.001", 0,35, layer=loop_layer, play_mode=1, speed=.5)
  2002. #fak_walkFast
  2003. if requestAction == 'fak_walkFast':
  2004. actionState = 'fak_walkFast'
  2005. #in
  2006. if l_requestAction != 'fak_walkFast':
  2007. if l_requestAction == 'fak_walk':
  2008. cur_frame = skater.getActionFrame(loop_layer)
  2009. #actionState = 'fak_walkFast'
  2010. skater.playAction("fak_nwalk", 0,35, layer=loop_layer, play_mode=1, speed=1)
  2011. deck.playAction("a_fak_nwalk", 0,35, layer=loop_layer, play_mode=1, speed=1)
  2012. trucks.playAction("a_fak_nwalk", 0,35, layer=loop_layer, play_mode=1, speed=1)
  2013. skater.setActionFrame(cur_frame, loop_layer)
  2014. deck.setActionFrame(cur_frame, loop_layer)
  2015. trucks.setActionFrame(cur_frame, loop_layer)
  2016. #pass
  2017. #loop
  2018. else:
  2019. skater.playAction("fak_nwalk", 0,35, layer=loop_layer, play_mode=1, speed=1)
  2020. deck.playAction("a_fak_nwalk", 0,35, layer=loop_layer, play_mode=1, speed=1)
  2021. trucks.playAction("a_fak_nwalk", 0,35, layer=loop_layer, play_mode=1, speed=1)
  2022. #fak_walkFast_nb
  2023. if requestAction == 'fak_walkFast_nb':
  2024. actionState = 'fak_walkFast_nb'
  2025. #in
  2026. if l_requestAction != 'fak_walkFast_nb':
  2027. if l_requestAction == 'fak_walk_nb':
  2028. cur_frame = skater.getActionFrame(loop_layer)
  2029. skater.playAction("fak_nwalk_nb.001", 0,35, layer=loop_layer, play_mode=1, speed=1)
  2030. skater.setActionFrame(cur_frame, loop_layer)
  2031. #loop
  2032. else:
  2033. skater.playAction("fak_nwalk_nb.001", 0,35, layer=loop_layer, play_mode=1, speed=1)
  2034. own['actionState'] = actionState
  2035. else:
  2036. pass
  2037. #actionTimer = 60
  2038. #try:
  2039. #own['actionTimer'] = 60
  2040. #except: pass
  2041. #print(actionState)
  2042. own['actionState'] = actionState
  2043. return actionState
  2044. #if (l_actionState == 'reg_land' and own['actionState'] != 'reg_land') or (l_actionState == 'fak_land' and own['actionState'] != 'fak_land'):
  2045. #if (own['actionState'] != 'reg_land') and (own['actionState'] != 'fak_land'):
  2046. l_playing = skater.isPlayingAction(loop_layer)
  2047. t_playing = skater.isPlayingAction(trans_layer)
  2048. if l_playing == 1 and t_playing == 1:
  2049. skater.stopAction(loop_layer)
  2050. trucks.stopAction(loop_layer)
  2051. deck.stopAction(loop_layer)
  2052. ###
  2053. if own['actionTimer'] > 0:
  2054. own['actionTimer'] -= 1
  2055. #requestAction = 'empty'
  2056. ##############
  2057. #turn off land for manuals
  2058. if (requestAction == 'reg_manual' or requestAction == 'fak_manual' or requestAction == 'reg_nmanual' or requestAction == 'fak_nmanual') and (actionState == 'reg_land' or actionState == 'fak_land'):
  2059. own['actionTimer'] = 0
  2060. #turn off land for grinds
  2061. #if requestAction == 'reg_noseg' or requestAction == 'reg_5050' or requestAction == 'fak_5050':
  2062. #own['actionTimer'] = 0
  2063. if (own['actionTimer'] == 0 or requestAction == 'reg_land' or requestAction == 'fak_land') or requestAction in jump_overrideList:
  2064. actionState = updateAction(requestAction, actionState)
  2065. #own['actionState'] = actionState
  2066. ###################
  2067. #debug
  2068. print("rA:", requestAction, "|aS:", own['actionState'], "q", queueAction, own['actionTimer'])
  2069. cur_frame = skater.getActionFrame(trans_layer)
  2070. #print(cur_frame)
  2071. def printplaying():
  2072. splaying_layers = "S: "
  2073. playing_layers = "D: "
  2074. tplaying_layers = "T: "
  2075. for x in range(9900):
  2076. if skater.isPlayingAction(x):
  2077. #if trucks.isPlayingAction(x):
  2078. #if skater.isPlayingAction(x):
  2079. splaying_layers += str(x)
  2080. splaying_layers += " "
  2081. if deck.isPlayingAction(x):
  2082. #if trucks.isPlayingAction(x):
  2083. #if skater.isPlayingAction(x):
  2084. playing_layers += str(x)
  2085. playing_layers += " "
  2086. if trucks.isPlayingAction(x):
  2087. #if trucks.isPlayingAction(x):
  2088. #if skater.isPlayingAction(x):
  2089. tplaying_layers += str(x)
  2090. tplaying_layers += " "
  2091. print(splaying_layers, playing_layers, tplaying_layers)
  2092. #printplaying()
  2093. if actionState == 'empty':
  2094. print("EMPTY ACTION!!!")
  2095. skater.stopAction(loop_layer)
  2096. deck.stopAction(loop_layer)
  2097. trucks.stopAction(loop_layer)
  2098. #set last variables
  2099. own['l_actionState'] = actionState
  2100. own['l_requestAction'] = requestAction
  2101. #own['actionTimer'] = actionTimer
  2102. own['queueAction'] = queueAction
  2103. main()