Droppable Weapons
-
Is is possible for someone to make a weapon drop feature for bo2????
if there's already one can you send me the link please -
Is is possible for someone to make a weapon drop feature for bo2????
if there's already one can you send me the link please//Put this in onPlayerSpawned() self thread drop_weapon(); //Put this anywhere in your script drop_weapon() { level endon("end_game"); self endon("disconnect"); for (;;) { if (self meleebuttonpressed()) { duration = 0; while (self meleebuttonpressed()) { duration += 1; if (duration == 25) { weap = self getCurrentWeapon(); self dropItem(weap); break; } wait 0.05; } } wait 0.05; } } //Credits: Script from BOCW Mod by teh_bandit https://forum.plutonium.pw/topic/15807/release-zombies-cold-war-mod-final-update?_=1670881299406 -
//Put this in onPlayerSpawned() self thread drop_weapon(); //Put this anywhere in your script drop_weapon() { level endon("end_game"); self endon("disconnect"); for (;;) { if (self meleebuttonpressed()) { duration = 0; while (self meleebuttonpressed()) { duration += 1; if (duration == 25) { weap = self getCurrentWeapon(); self dropItem(weap); break; } wait 0.05; } } wait 0.05; } } //Credits: Script from BOCW Mod by teh_bandit https://forum.plutonium.pw/topic/15807/release-zombies-cold-war-mod-final-update?_=1670881299406@TheGreatReaper How can i create and use this script i just can t do it
-
Next time post in the right category.
A question is not a releaseBasically what you need is this
weap = self getCurrentWeapon(); self dropItem(weap);I wrote the rest of the script to make it work
Here's a download to the compiled file
Once the script is loaded, holding the knife key for around 2.5s will drop your current weapon on the ground
Instructions to load itSource code
:::init() { level thread onPlayerConnect(); } onPlayerConnect() { for (;;) { level waittill("connected", player); player thread onPlayerSpawned(); } } onPlayerSpawned() { for(;;) { self waittill("spawned_player"); self thread drop_weapon(); } } drop_weapon() { level endon("end_game"); self endon("disconnect"); for (;;) { if (self meleebuttonpressed()) { duration = 0; while (self meleebuttonpressed()) { duration += 1; if (duration == 25) { weap = self getCurrentWeapon(); self dropItem(weap); break; } wait 0.05; } } wait 0.05; } } //Credits: Script from BOCW Mod by teh_bandit https://forum.plutonium.pw/topic/15807/release-zombies-cold-war-mod-final-update?_=1670881299406:::
-
Resxt thx bro
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