[ZM] Iron Fist on Round 1 of Origins
-
The Iron Fists/ One Inch Punch has been my favorite melee since it's debut. I know the steps to require it can take some time and by the time to get it the Iron Fist is a two-hit kill!
-
CREDIT: https://forum.plutonium.pw/topic/16828/resource-gsc-give-yourself-the-one_inch_punch-correctly
-
I updated the code and also allowed the Iron Fist to be a one-shot kill for further rounds!
-
I will make an update for the upgraded version and the elemental versions too!
-
Iron Fist and Damage Mod for it was be separate in-case you just want the fist by itself!
-
Command will be through in-game chat by typing and entering "#fist"
-
Setup for the correct placements for the scripts:
Put the iron_fist.gsc and iron_fist_infdmg.gsc in zm_tomb, so it should be "Plutonium/storage/t6/scripts/zm/zm_tomb".
Create a new folder within zm, so it should be "Plutonium/storage/t6/scripts/zm/replaced", and put infdmgfist.gsc in there!
NOTE you can edit the damage, have fun and enjoy!
Raw Code:
#include maps\mp\_utility; #include maps\mp\zombies\_zm_weap_one_inch_punch; init() { level thread on_player_connect(); level thread command_bar(); } on_player_connect() { for (;;) { level waittill("connected", player); player thread on_player_spawned(); } } on_player_spawned() { self endon("disconnect"); for (;;) { self waittill("spawned_player"); } } command_bar() { level endon("end_game"); prefix = "#"; for (;;) { level waittill("say", message, player); if (!isDefined(message) || !isDefined(player)) continue; message = toLower(message); if (message[0] == prefix) { args = strtok(message, " "); command = getSubStr(args[0], 1); switch (command) { case "fist": player thread give_iron_fist(); break; } } } } give_iron_fist() { self endon("disconnect"); self freezecontrols(true); current_weapon = self getcurrentweapon(); if (isDefined(current_weapon)) self takeweapon(current_weapon); // Optional flourish animation self giveweapon("zombie_one_inch_punch_upgrade_flourish"); self switchtoweapon("zombie_one_inch_punch_upgrade_flourish"); wait 1.5; self freezecontrols(false); self takeweapon("zombie_one_inch_punch_upgrade_flourish"); // Give & activate regular Iron Fist self giveweapon("one_inch_punch_zm"); self switchtoweapon("one_inch_punch_zm"); // Enable proper Iron Fist melee handling self thread monitor_melee_swipe(); self iprintlnbold("Iron Fist Equipped!"); } monitor_melee_swipe() { self endon("disconnect"); for (;;) { self waittill("melee"); // add hit effect logic here if desired } } -
-
thanks
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login