VGamingJunkie Posted July 1, 2018 This weapon for my mod that's coded to replace the Plasma Rifle works just fine but a message "State PowerTargeter. 0 not flagged for use in weapons" keeps flooding the screen randomly when it's fired. Code is as follows: Spoiler ACTOR BacterialGun : PlasmaRifle replaces PlasmaRifle { Weapon.SelectionOrder 100 Weapon.AmmoUse 1 Weapon.AmmoGive 50 Inventory.PickupMessage "Acquired the Bacterial Agent" Tag "$TAG_BACTERIALAGENT" Weapon.AmmoType "BacterialVial" States { Ready: VIRS A 1 A_WeaponReady Loop Deselect: VIRS A 1 A_Lower Loop Select: VIRS A 1 A_Raise Loop Fire: VIRS B 7 A_FirePlasma VIRS C 7 VIRS A 6 VIRS A 1 A_ReFire Goto Ready Flash: Goto LightDone Spawn: VIRU A -1 } } 0 Quote Share this post Link to post
DynamiteKaitorn Posted July 1, 2018 Flash: Goto LightDone Unless this is a part of DECORATE I'm not aware of, where does that lead? there's no "LightDone" Block. also the "Spawn" block is missing a "stop" at the end. Not sure if either of these assist but give them a try. :) 0 Quote Share this post Link to post
Edward850 Posted July 1, 2018 1 minute ago, DynamiteKaitorn said: Unless this is a part of DECORATE I'm not aware of, where does that lead? there's no "LightDone" Block. also the "Spawn" block is missing a "stop" at the end. Not sure if either of these assist but give them a try. :) LightDone is defined by the weapon super class and all weapons have it. Spawn doesn't need a stop because -1 means the frame lasts for infinity, and that doesn't have anything to do with his problem because he's not complaining about his weapon vanishing after it spawns. 0 Quote Share this post Link to post
VGamingJunkie Posted July 1, 2018 I added that specifically so that it wouldn't add the Plasma Rifle flash over itself as it fires. And yeah, there's no issue with the weapon disappearing. The weapon itself functions 100% as it should, it's just the message that just randomly pops up on the screen that's the issue. 0 Quote Share this post Link to post
VGamingJunkie Posted July 2, 2018 Oddly, removing the Flash actually did fix it. Now, it's just its own weapon rather than replacing the Plasma Rifle since I defined all of its own aspects anyway. 0 Quote Share this post Link to post
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.