(adsbygoogle = window.adsbygoogle || []).push({});
put this in the init() thread:
level thread drawTrampoline();
and put this in the onPlayerSpawned() thread:
self thread monitorTramp();
put this were ever you want:
drawTrampoline()
{
level.tramp = [];
trampNum = 0;
for(x=1;x<=18;x++) {
for(y=1;y<=19;y++) {
level.tramp[trampNum] = spawn("script_model", (0+(x*5

, 0+(y*2

,44.5));
level.tramp[trampNum] setModel("com_plasticcase_friendly");
trampNum++;
}
}
}
monitorTramp()
{
self endon("death");
self endon("disconnect");
for(;

{
foreach(pkg in level.tramp) {
if(distance(self.origin, pkg.origin)<20){
self iprintln("You should be jumping!");
v = self getVelocity();
z = randomIntRange(700,900);
pkg rotateYaw(360, 0.05);
foreach(dbag in level.players) {
if(distance(dbag, self)<15)
self setVelocity((v[0],v[1],z+300));
else
self setVelocity((v[0],v[1],z));
}
}
}
wait 0.05;
}
}
special thanks to:kiwimoosical
also this is for terminal.not sure how it will work on other maps