Modme

New Modme platform coming soon!
Dig Sites (sort of)
Viewed 275 time(s)
Topic created on 1502586323
Original post
Modme User
3 wins

I was wondering if anyone had or could make me a script fir some "dig sites"

 

What I basically want are backpacks around the map that you can "Press E to search backpack" and they give you points, powerups, guns, ammo and very very rarely perks. I don't want them to regenerate after some rounds though. I hope this isn't to hard and maybe someone can help me out.

 

Also if it isn't much trouble, I would like to have models of a gun on the floor that you can pick up, but after you pick one up you cant pick up the other ones (there's four in total)


Random graphic designer that likes making zombie things.
Reply #1 on 1502595130
Modme User
50 wins

BlackMamba231

I was wondering if anyone had or could make me a script fir some "dig sites"   What I basically want are backpacks around the map that you can "Press E to search backpack" and they give you points, powerups, guns, ammo and very very rarely perks. I don't want them to regenerate after some rounds though. I hope this isn't to hard and maybe someone can help me out.   Also if it isn't much trouble, I would like to have models of a gun on the floor that you can pick up, but after you pick one up you cant pick up the other ones (there's four in total)

 well judging by the amount of different rewards, and interesting spawn mechanics, this would take awhile to script. You'd also have to be much more specific on how they spawn, where they spawn, when they spawn.

 

 

Still though... It's possible. 


Reply #2 on 1502605700
Modme User
27 wins

I made a shootable teddy script but modified it to work for you (kind of)

What you need is a trigger(_use in your case) and call it "trig_ee1_teddy" in this case.

Now get a model and make it the target of the trigger. Save the trigger and model as a prefab and copy/paste it around the map as many times as you want.

 

I added some rewards for you but you'll need to add #using at the top of the script

function teddys_array()
{
	wait(5);
trigs = GetEntArray("trig_ee1_teddy","targetname");
level.teddy_trigs = trigs.size;
for( i = 0; i < trigs.size; i++)
{
	trigs[i] thread teddys();
}
}


function teddys()
{
model = GetEnt( self.target, "targetname" );

self waittill("trigger", player);
//IPrintLnBold(level.teddys_shot);
model PlaySoundOnTag("backback_searched","tag_origin");

self thread teddy_reward();

model Delete();
self Delete();
}


function teddy_reward()
{
//random rewards
                    switch( RandomIntRange(0,3))
                    {
                        case 0: 
                            //insert reward 0 here
zm_powerups::specific_powerup_drop("fire_sale", self.origin,undefined ,undefined ,undefined , undefined, true);
                            break;
                        case 1:
zm_powerups::specific_powerup_drop("full_ammo", self.origin,undefined ,undefined ,undefined , undefined, true); 
                            //insert reward 1 here 
                            break;
                        case 2:
level thread zm_ai_dogs::special_dog_spawn( 2, undefined, undefined); 
                            //insert reward 2 here
                            break;
                        case 3: 
                            //insert reward 3 here 
                            break;
                    }

}

 

 

--

 


I've tried nothing and I'm out of ideas.
My creations:
DE gate trap
Debug (on/off)
Jukebox
Gum Anti-cheat
Kino box locator
Reply #3 on 1502667464
Modme User
3 wins

Abnormal202

BlackMamba231 I was wondering if anyone had or could make me a script fir some "dig sites"   What I basically want are backpacks around the map that you can "Press E to search backpack" and they give you points, powerups, guns, ammo and very very rarely perks. I don't want them to regenerate after some rounds though. I hope this isn't to hard and maybe someone can help me out.   Also if it isn't much trouble, I would like to have models of a gun on the floor that you can pick up, but after you pick one up you cant pick up the other ones (there's four in total)  well judging by the amount of different rewards, and interesting spawn mechanics, this would take awhile to script. You'd also have to be much more specific on how they spawn, where they spawn, when they spawn.     Still though... It's possible. 

 The gun thing is totally apart from the dig sites and isn't really important, its just something I thought would be cool. The backpacks though, I think it's better if it's just points and/or ammo. The backpacks don't respawn.


Random graphic designer that likes making zombie things.