Advertisement
CaptainManiac999

I modified this code and it crashes Zandronum and GZDoom

Apr 6th, 2018
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.96 KB | None | 0 0
  1. actor JetThruster : CustomInventory 11000
  2. {
  3.   Inventory.PickupMessage "Jet Thruster!"
  4.   Inventory.Amount 1
  5.   Inventory.MaxAmount 5
  6.   Inventory.PickupSound "misc/p_pkup"
  7.   Inventory.UseSound "misc/jetthruster"
  8.   Inventory.Icon "ARTIJET"
  9.   +INVENTORY.FANCYPICKUPSOUND
  10.   +INVBAR
  11.   +COUNTITEM
  12.   states
  13.   {
  14.   Spawn:
  15.     JETT A -1
  16.     Stop
  17.   Use:
  18.     TNT1 A 0 A_JumpIf(GetPlayerInput(-1,BT_USE) & CheckInventory("PowerFlymo",1),"Fail")
  19.     TNT1 A 0 A_GiveInventory("PowerFlymo",1)
  20.     loop
  21.   Fail:
  22.     TNT1 A 0 A_JumpIf(GetPlayerInput(-1,BT_USE) & CheckInventory("PowerFlymo",0),"Use")
  23.     TNT1 A 0 A_TakeInventory("PowerFlymo",1)
  24.     loop
  25.   }
  26. }
  27.  
  28. So,i tried to make this a constant jetpack as i planned(originally a 1 minute jetpack for use only once) and when i try to run in Zandronum it gives me very fatal error with Calling unknown ACS FUnction GetPlayerInput and in GZDOOM latest version,Sprite Names Must be Exactly 4 characters on a line where is a state name.Whyyy?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement