Modme Forums

UrbanSpiral’s Shootable Teddy Bear Song

Game Asset Reversing | Releases


ModmeBot:

Thread By: UrbanSpiral
Hey, So i was bored one day and i decided to make this script, The script is a shootable teddy bear song, You can put your own song on this and make as many bears as you want! :)



Instructions :

Step 1 : Open up your Mapname Gsc and put this at the very bottom of it

Bear_1() {
    Bear_1 = GetEnt("bear_1", "targetname");
    Bear_1 waittill("trigger");
    Bear_1 Delete();

    level.BearsDamaged++;

    iprintln("You have found 1 Bear! " + level.BearsDamaged + " bear 1 has been damaged!");

    if (level.BearsDamaged == 3) {
        level thread All_Bears();
    }
}
Bear_2() {
    Bear_2 = GetEnt("bear_2", "targetname");
    Bear_2 waittill("trigger");
    Bear_2 Delete();

    level.BearsDamaged++;

    iprintln("You have found 2 Bears! " + level.BearsDamaged + " bear 2 has been damaged!");

    if (level.BearsDamaged == 3) {
        level thread All_Bears();
    }
}
Bear_3() {
    Bear_3 = GetEnt("bear_3", "targetname");
    Bear_3 waittill("trigger");
    Bear_3 Delete();

    level.BearsDamaged++;

    iprintln("You found all 3 Bears! " + level.BearsDamaged + " bear 3 has been damaged!");

    if (level.BearsDamaged == 3) {
        level thread All_Bears();
    }
}
All_Bears() {
    players = get_players();
    for (i = 0; i < players.size; i++)

    {
        players[i] playsound("YOURSONG");
    }
}







Step 2 : In Your map name gsc and press Ctrl + F and find this "level thread DLC3_threadCalls();"







Put These lines under it







Level thread bear_1();
Level thread bear_2();
Level thread bear_3();
Level.bearsDamaged = 0;







Step 3 : Go into Radiant and place whatever model you want, Then place a Trigger Damage Over it and give it the Kvps "Targetname" "Bear_1"







Do this for how many Bears you have etc Bear_2, Bear_3







THATS IT ENJOY!









//Cleaned up by DTZxPorter 9/11/2016


ModmeBot:

Reply By: Jerri13hdez
Can you atleast put the instructions in a brighter color?


ModmeBot:

Reply By: Hero115

Jerri13hdezCan you atleast put the instructions in a brighter color?


What's wrong with it ? I can see everything Like Sunshine...

Anyways, Good Script Op +1.


ModmeBot:

Reply By: Kryptix
This work for World at war?


ModmeBot:

Reply By: UrbanSpiral

KryptixThis work for World at war?


Yes.


ModmeBot:

Reply By: AyeImKenny
I don't have "level thread DLC3_threadCalls();" ?


ModmeBot:

Reply By: CrossFire

UrbanSpiral(OP)



//koan edit: please avoid quoting the entire OP, thanks


i dont have a level thread DLC3_threadCalls();" and where do i put the actual song?


ModmeBot:

Reply By: MrGuacamole115
I don't have "level thread DLC3_threadCalls();" in my mapname.gsc


ModmeBot:

Reply By: ByPsicoYT
It doesn't let my map start.