Post: W@W Codjumper bounce gun
12-09-2015, 09:22 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Hey guys I was wondering how I would port this script over to multiplayer I tried many times and it was not working. I've changed the gun and switched the model to a model from multiplayer and removed the sounds and it still isn't working. Anyone able to help me out?

spawnthing()
{
self endon("death");
self thread JumpText();
self setclientdvar( "g_gravity", "150" );
for(;Winky Winky {
self waittill("weapon_fired");
if(self getcurrentweapon() == "walther") {
self GiveMaxAmmo( "walther" );
self setWeaponAmmoClip( "walther", self GetWeaponAmmoClip("walther")+1 );
if(IsDefined(self.cans)) { for(o=0;o<=self.cans.size-1;o++) { self.cans[o] delete(); self notify("newtramp"); } }
vec = anglestoforward(self getPlayerAngles());
end = (vec[0] * 200000, vec[1] * 200000, vec[2] * 200000);
l = BulletTrace( self gettagorigin("tag_eye"), self gettagorigin("tag_eye")+end, 0, self)[ "position" ];
self.cans = [];
for(x=-2;x<=2;x++) {
for(y=-2;y<=2;y++) {
i = self.cans.size;
self.cans = spawn("script_model", (l[0]+(x*10), l[1]+(y*10), l[2]));
self.cans setModel("zombie_ammocan");
playfxontag(level._effect[ "powerup_on" ], self.cans, "tag_origin");
}
}
self thread watchjump(self.cans);
}
}
}
watchjump(cans)
{
self endon("death");
self endon("newtramp");
for(;Winky Winky {
for(i=0;i<=cans.size-1;i++) {
if(distance(self.origin, cans.origin) < 10 ) {
v = self getVelocity();
z = randomIntRange(9000,10000);
cans rotateYaw(360, .3);
self setVelocity((v[0],v[1],z));
}
}
wait 0.05;
}
}
JumpText()
{
self endon("death");
self.guntext = self createFontString( "objective", 2, self );
self.guntext setPoint( "CENTER", "CENTER", 0, 125 );
self thread JumpThingsDelete();
for(;Winky Winky
{
if(self getcurrentweapon() == "walther")
{
self.guntext settext( "^5Jump ^1Gun" );
} else {
self.guntext settext( "" );
}
self waittill("weapon_change");
}
}
JumpThingsDelete() {
self waittill("death");
self.guntext destroy();
if(IsDefined(self.cans)) { for(o=0;o<=self.cans.size-1;o++) { self.cans[o] delete(); } }
}
12-14-2015, 12:00 PM #2
whothedaddy1990
Can’t trickshot me!
first your missing so many parts off that function && what error do you get: unknown function or bad syntax???

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo