Game freezes up when monster shoots

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Post Reply
mrspeaker
Posts: 21
Joined: Mon Dec 14, 2020 10:24 pm

Game freezes up when monster shoots

Post by mrspeaker »

I'm at a loss here. Whenever this monster shoots the games freezes completely, but it's not consistent when and where it'll happen, just that it will happen at some point when he shoots. What could be causing this?

Code: Select all

Missile:
		NPM2 E 12 A_FaceTarget
		TNT1 A 0 A_JumpIfInventory("FriendAmmo",1,1)
		Goto Reload
		TNT1 A 0 A_TakeInventory("FriendAmmo",1)
		TNT1 A 0 A_PlaySound("ARWP/WBG/FR1")
		TNT1 A 0 A_CustomBulletAttack(3.1, 2.5, 1, 8,"ARBullet_Puff")
		NPM2 F 1 BRIGHT A_AlertMonsters(0,AMF_TARGETEMITTER)
		NPM2 E 1 A_FaceTarget
		NPM2 E 1 A_MonsterRefire(48, "See")
		Goto Missile+1
User avatar
Player701
 
 
Posts: 1640
Joined: Wed May 13, 2009 3:15 am
Graphics Processor: nVidia with Vulkan support
Contact:

Re: Game freezes up when monster shoots

Post by Player701 »

Hmm. I don't see anything here that could produce a 0-duration infinite loop. Please post the entire DECORATE code for your monster here, then I may be able to figure out the problem.
Post Reply

Return to “Scripting”