#  ![](https://www.realm667.com/media/kunena/topic_icons/realm667_repo/user/rep_approved.png) \[UPDATE\] ZScriptification, A through M

##

- **Ghastly**
- ![Ghastly's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar64.png) Topic Author
- Administrator
- ![Administrator](https://www.realm667.com/media/kunena/ranks/rank_20_barrel.png)

 Less More- Posts: 33
-
-
-

   7 years 4 months ago - 7 years 3 months ago [\#7382](#7382) by Ghastly  *[\[UPDATE\] ZScriptification, A through M](https://www.realm667.com/forum/closed-submissions/1264-update-zscriptification-a-through-m#7382 "Apotheosis, BFG10k, Blood Scepter, Cult Staff, Double Grenade Launcher, Flamethrower, Flashlight, Frost Fang, KDiZD Grenade Launcher, Skulltag Grenade Launcher, Hellstorm Cannon, Karasawa,...")* was created by *Ghastly*

 Apotheosis, BFG10k, Blood Scepter, Cult Staff, Double Grenade Launcher, Flamethrower, Flashlight, Frost Fang, KDiZD Grenade Launcher, Skulltag Grenade Launcher, Hellstorm Cannon, Karasawa, Lightbringer, and Minigun. All should work the same as they did before with the following changes:
> Apotheosis:
> Added SXF\_TRANSFERPOINTERS to the BoltShooter actor, so kills are properly credited to the player who fired the weapon. Also had to remove the ~ from the name of the powered version in the ZScript version.
>
> BFG10K:
> Removed a reference to an obituary string in the bulletpuff actor with no corresponding Language lump. It was unnecessary anyway because the weapon already had an obituary.
>
> Blood Scepter:
> Streamlined the monster death state in the Decorate and ZScript version. Had to remove the ~ from the name of the powered version in the ZScript version.
>
> Cult Staff:
> I'm pretty sure "Random(1,-1)\*frandom(0,![8)](https://www.realm667.com/bigeyes.gif "8)")" was supposed to be in the Pitch parameter and not in Flags parameter, in CultShot2 and 3. Fixed it, and added CMF\_TRACKOWNER so it properly tracks kills. Also, changed the FRandom damage parameter to Random because Damage is in integers.
>
> Frost Fang:
> Ammo no longer replaces BlasterAmmo (doesn't really matter, but still).
>
> Grenade Launcher (KDiZD):
> Marked the projectile trail client side.
>
> Grenade Launcher:
> Commented out the +ExplodeOnDeath flag, since it seems to have to do with Skulltag medals and it gives a warning that it's deprecated.
>
> Karasawa:
> Added the NoDelay state property to the projectile's first state so the "fly" sound plays properly, and fixed the SNDINFO so it actually uses it right (checked IGPack to make sure).
>
> Lightbringer:
> Removed the ~ from the powered weapon's name, and fixed a broken dynamic light.

https://www.dropbox.com/s/muaqy04pk3lbz60/ZScriptification-Armory-AthroughM.zip?dl=0

 Last edit: 7 years 3 months ago by Blue Shadow.

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2Nsb3NlZC1zdWJtaXNzaW9ucy8xMjY0LXVwZGF0ZS16c2NyaXB0aWZpY2F0aW9uLWEtdGhyb3VnaC1t&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **Blue Shadow**
- ![Blue Shadow's Avatar](https://www.realm667.com/media/kunena/core/svg/person.svg)
- Administrator
- ![Administrator](https://www.realm667.com/media/kunena/ranks/rank_20_barrel.png)

 Less More- Posts: 1131
-
-
-

   7 years 3 months ago [\#7394](#7394) by Blue Shadow  Replied by *Blue Shadow* on topic *[\[UPDATE\] ZScriptification, A through M](https://www.realm667.com/forum/closed-submissions/1264-update-zscriptification-a-through-m#7394 "Apotheosis, BFG10k, Blood Scepter, Cult Staff, Double Grenade Launcher, Flamethrower, Flashlight, Frost Fang, KDiZD Grenade Launcher, Skulltag Grenade Launcher, Hellstorm Cannon, Karasawa,...")*

 Right. Done with these. Here's what I've got:

 Warning: Spoiler!

 **BloodScepter**- The test monster replaces the original monster. It shouldn't do that.
- Very minor: there are references in the comments to the altfire mode. To avoid confusion, these should be changed to refer to the powered mode.
- Have you thought about using [ event handlers](https://zdoom.org/wiki/Events_and_handlers) to handle the health steal ability instead of handling it by injecting code into monsters' code? This way it'd work out-of-the-box (I can help you with this if you'd like).

**CultStaff**- Line 60: deprecation warning about A\_FireCustomMissile.
- Line 140: the state is missing the "Bright" keyword.

**Flamethrower**- Lines 24 and 27: missing semi-colon at the end of the lines.

**FrostFang**- Lines 45 and 85: deprecation warning about A\_FireCustomMissile.
- Line 113: deprecation warning about VelX, VelY and VelZ.
- Lines 41, 42, 43, 44, 80, 81, 82, 83 and 143: floating point truncation warning

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2Nsb3NlZC1zdWJtaXNzaW9ucy8xMjY0LXVwZGF0ZS16c2NyaXB0aWZpY2F0aW9uLWEtdGhyb3VnaC1t&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **Ghastly**
- ![Ghastly's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar64.png) Topic Author
- Administrator
- ![Administrator](https://www.realm667.com/media/kunena/ranks/rank_20_barrel.png)

 Less More- Posts: 33
-
-
-

   7 years 3 months ago [\#7395](#7395) by Ghastly  Replied by *Ghastly* on topic *[\[UPDATE\] ZScriptification, A through M](https://www.realm667.com/forum/closed-submissions/1264-update-zscriptification-a-through-m#7395 "Apotheosis, BFG10k, Blood Scepter, Cult Staff, Double Grenade Launcher, Flamethrower, Flashlight, Frost Fang, KDiZD Grenade Launcher, Skulltag Grenade Launcher, Hellstorm Cannon, Karasawa,...")*

> Blue Shadow wrote: Have you thought about using [ event handlers](https://zdoom.org/wiki/Events_and_handlers) to handle the health steal ability instead of handling it by injecting code into monsters' code? This way it'd work out-of-the-box (I can help you with this if you'd like).

I thought about it, but I couldn't see a way on the wiki to restrict it to the Blood Scepter with the WorldThingDied event.

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2Nsb3NlZC1zdWJtaXNzaW9ucy8xMjY0LXVwZGF0ZS16c2NyaXB0aWZpY2F0aW9uLWEtdGhyb3VnaC1t&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **Blue Shadow**
- ![Blue Shadow's Avatar](https://www.realm667.com/media/kunena/core/svg/person.svg)
- Administrator
- ![Administrator](https://www.realm667.com/media/kunena/ranks/rank_20_barrel.png)

 Less More- Posts: 1131
-
-
-

   7 years 3 months ago - 7 years 3 months ago [\#7396](#7396) by Blue Shadow  Replied by *Blue Shadow* on topic *[\[UPDATE\] ZScriptification, A through M](https://www.realm667.com/forum/closed-submissions/1264-update-zscriptification-a-through-m#7396 "Apotheosis, BFG10k, Blood Scepter, Cult Staff, Double Grenade Launcher, Flamethrower, Flashlight, Frost Fang, KDiZD Grenade Launcher, Skulltag Grenade Launcher, Hellstorm Cannon, Karasawa,...")*

 Checking whether or not a monster got killed by the projectile should be enough.

 Last edit: 7 years 3 months ago by Blue Shadow.

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2Nsb3NlZC1zdWJtaXNzaW9ucy8xMjY0LXVwZGF0ZS16c2NyaXB0aWZpY2F0aW9uLWEtdGhyb3VnaC1t&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **Blue Shadow**
- ![Blue Shadow's Avatar](https://www.realm667.com/media/kunena/core/svg/person.svg)
- Administrator
- ![Administrator](https://www.realm667.com/media/kunena/ranks/rank_20_barrel.png)

 Less More- Posts: 1131
-
-
-

   6 years 9 months ago [\#7673](#7673) by Blue Shadow  Replied by *Blue Shadow* on topic *[\[UPDATE\] ZScriptification, A through M](https://www.realm667.com/forum/closed-submissions/1264-update-zscriptification-a-through-m#7673 "Apotheosis, BFG10k, Blood Scepter, Cult Staff, Double Grenade Launcher, Flamethrower, Flashlight, Frost Fang, KDiZD Grenade Launcher, Skulltag Grenade Launcher, Hellstorm Cannon, Karasawa,...")*

 Any updates on this?

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2Nsb3NlZC1zdWJtaXNzaW9ucy8xMjY0LXVwZGF0ZS16c2NyaXB0aWZpY2F0aW9uLWEtdGhyb3VnaC1t&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **Blue Shadow**
- ![Blue Shadow's Avatar](https://www.realm667.com/media/kunena/core/svg/person.svg)
- Administrator
- ![Administrator](https://www.realm667.com/media/kunena/ranks/rank_20_barrel.png)

 Less More- Posts: 1131
-
-
-

   5 years 11 months ago [\#8582](#8582) by Blue Shadow  Replied by *Blue Shadow* on topic *[\[UPDATE\] ZScriptification, A through M](https://www.realm667.com/forum/closed-submissions/1264-update-zscriptification-a-through-m#8582 "Apotheosis, BFG10k, Blood Scepter, Cult Staff, Double Grenade Launcher, Flamethrower, Flashlight, Frost Fang, KDiZD Grenade Launcher, Skulltag Grenade Launcher, Hellstorm Cannon, Karasawa,...")*

 I took care of the problematic weapons listed above. All weapons have been updated on the repository.

A couple of notes regarding the Blood Scepter and Frost Fang:

**Blood Scepter**- I've gone with my idea of using an event handler for the health steal ability.

**Frost Fang**- Replaced Random() with FRandom() to resolve the floating point truncation warnings. This means it now behaves as was intended, as opposed to how it actually behaved.

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2Nsb3NlZC1zdWJtaXNzaW9ucy8xMjY0LXVwZGF0ZS16c2NyaXB0aWZpY2F0aW9uLWEtdGhyb3VnaC1t&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

[Powered by](https://www.realm667.com/forum/credits) [Kunena Forum](https://www.kunena.org)
