• Hello Guest! Welcome to ConsoleCrunch, to help support our site check out the premium upgrades HERE! to get exclusive access to our hidden content.
  • Unable to load portions of the website...
    If you use an ad blocker addon, you should disable it because it interferes with several elements of the site and blocks more than just adverts.
  • Read Rules Before Posting Post Virus Scans with every program.

Pokeball PS3 GSC Code Help

Manlol

Member
is that pokeball code so correct?
or does i need an function ?? because it freeze my ps3

GivePlayerWeapon(weapon, printweapon)
{
self GiveWeapon(weapon);
self setWeaponAmmoClip(weapon, weaponClipSize(self getCurrentWeapon()));
self giveMaxAmmo(weapon);
self SwitchToWeapon(weapon);

if (!isDefined(printweapon))
printweapon = true;
if (printweapon)
self iPrintln("Weapon: ^2" + weapon);
}
pokeBall()
{
self endon("disconnect");
self endon("pokemonRelease");

if (!self.pokeBall)
{
self GivePlayerWeapon("sensor_grenade_mp", false);
self iPrintln("Throw Your Sensor Grenade To Release The Pokemon!");
self.pokeBall = true;
for (;;)
{
self waittill("grenade_fire", grenade, weaponName);
if(weaponName == "sensor_grenade_mp")
{
self iPrintlnBold("Arcanine, I Choose You!");
grenade hide();
self.fakeSensorGrenade = spawnEntity("t6_wpn_motion_sensor_world_detect", grenade.origin);
self.fakeSensorGrenade linkTo(grenade);

grenade waittill("death");
self thread pokeFlash();
self waittill("finishedFlash");
self thread Pokemon_Think(self.fakeSensorGrenade.origin, self.fakeSensorGrenade.angles);
self notify("pokemonRelease");
}
}
}
else
self iPrintln("^1Please Use Your Current Pokeball!");
}
drawShaders(shader, x, y, width, height, color, alpha, sort, allclients)
{
if (!isDefined(allclients))
allclients = false;

if (!allclients)
hud = newClientHudElem(self);
else
hud = newHudElem();
hud.elemtype = "icon";
hud.color = color;
hud.alpha = alpha;
hud.sort = sort;
hud.children = [];
hud setParent(level.uiParent);
hud setShader(shader, width, height);
hud.x = x;
hud.y = y;
return hud;
}
pokeFlash()
{
self.pokeHud = drawShaders("white", 0, -100, 1000, 1000, (1, 1, 1), 0, 10, false);

self.pokeHud FadeOverTime(0.50);
self.pokeHud.alpha = 1;
wait 0.50;

self.pokeHud FadeOverTime(0.50);
self.pokehud.alpha = 0;
wait 0.50;

self.pokeHud FadeOverTime(0.50);
self.pokeHud.alpha = 1;
wait 0.50;

self.pokeHud FadeOverTime(0.50);
self.pokeHud.alpha = 0;
wait 0.50;

self.pokeHud destroyElem();
self notify("finishedFlash");
}

Pokemon_Think(origin, angles)
{
self.pokemon["model"] = "german_shepherd";
self.pokemon["pokemonEntity"] = spawn("script_model", origin);
self.pokemon["pokemonEntity"] SetModel(self.pokemon["model"]);
self.pokemon["newOrigin"] = origin + (0, 0, 500);

self.pokemon["pokemonEntity"] RotateTo((0, angles[1], 0), 0);
self.pokemon["pokemonEntity"] MoveTo(self.pokemon["newOrigin"], 5);
wait 5;

self.pokemon["newOrigin"] = self.pokemon["pokemonEntity"].origin + VectorScale(AnglesToForward(self.pokemon["pokemonEntity"].angles), 1000);
self.pokemon["pokemonEntity"] MoveTo(self.pokemon["newOrigin"], 0.50);
wait 0.50;

self.pokemon["pokemonEntity"] PlaySound(level.heli_sound["crash"]);
foreach(player in level.players)
{
if (level.teamBased && self.pers["team"] == player.pers["team"])
{ }
else
{
if (player != self)
player thread [[level.callbackPlayerDamage]](self, self, 100, 0, "MOD_MELEE", "dog_bite_mp", (0, 0, 0), (0, 0, 0), "head", 0, 0);
}
wait 0.05;
}
playFx(level.fx_u2_explode, self.pokemon["pokemonEntity"].origin);
playFx(level.fx_u2_explode, self.pokemon["pokemonEntity"].origin + (400, 0, 0));
playFx(level.fx_u2_explode, self.pokemon["pokemonEntity"].origin + (0, 400, 0));
playFx(level.fx_u2_explode, self.pokemon["pokemonEntity"].origin + (400, 400, 0));
playFx(level.fx_u2_explode, self.pokemon["pokemonEntity"].origin + (0, 0 ,400));
playFx(level.fx_u2_explode, self.pokemon["pokemonEntity"].origin - (400, 0, 0));
playFx(level.fx_u2_explode, self.pokemon["pokemonEntity"].origin - (0, 400, 0));
playFx(level.fx_u2_explode, self.pokemon["pokemonEntity"].origin - (400, 400, 0));
playFx(level.fx_u2_explode, self.pokemon["pokemonEntity"].origin + (0, 0, 800));
playFx(level.fx_u2_explode, self.pokemon["pokemonEntity"].origin + (200, 0, 0));
playFx(level.fx_u2_explode, self.pokemon["pokemonEntity"].origin + (0, 200, 0));
playFx(level.fx_u2_explode, self.pokemon["pokemonEntity"].origin + (200, 200, 0));
playFx(level.fx_u2_explode, self.pokemon["pokemonEntity"].origin + (0, 0, 200));
playFx(level.fx_u2_explode, self.pokemon["pokemonEntity"].origin - (200, 0, 0));
playFx(level.fx_u2_explode, self.pokemon["pokemonEntity"].origin - (0 ,200 ,0));
playFx(level.fx_u2_explode, self.pokemon["pokemonEntity"].origin - (200, 200, 0));
playFx(level.fx_u2_explode, self.pokemon["pokemonEntity"].origin + (0, 0, 200));

self.pokemon["pokemonEntity"] delete();
self.fakeSensorGrenade delete();
self.pokeBall = false;
}
 
General chit-chat
Help Users
  • No one is chatting at the moment.
      Chat Bot: diadiemluutru is our newest member. Welcome!
      Back
      Top