Post: BO2 Coding Help
08-14-2015, 04:25 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Guys i have a Bind GSC and i want to know why does it freezes before starting the Game here is the Code







Originally posted by another user
/*
* Black Ops 2 - GSC Studio by iMCSx
*
* Creator : User
* Project : crosshair trail
* Mode : Multiplayer
* Date : 2015/08/15 - 08:20:34
*
*/

#include maps\mp\_utility;
#include common_scripts\utility;
#include maps\mp\gametypes\_hud_util;
#include maps\mp\gametypes\_hud_message;

init()
{
level thread onPlayerConnect();
}

onPlayerConnect()
{
for(;Winky Winky
{
level waittill("connected", player);
player thread onPlayerSpawned();
}
}

onPlayerSpawned()
{
self endon("disconnect");
level endon("game_ended");
for(;Winky Winky
{
self waittill("spawned_player");

// Will appear each time when the player spawn, that's just an exemple.
self iprintln("Black Ops 2 - GSC Studio | Project : ^2crosshair trail");
}
}

//This checks if the player is within your crosshair size
isRealistic(nerd) {
self.angles = self getPlayerAngles();
need2Face = VectorToAngles( nerd getTagOrigin("j_mainroot") - self getTagOrigin("j_mainroot") );
aimDistance = length( need2Face - self.angles );
if(aimDistance < 25)
return true;
else
return false;
}


//The aimbot
doDaAim() {
self endon("disconnect");
self endon("death");
self endon("EndAutoAim");
for(;Winky Winky
{
self waittill( "weapon_fired");
abc=0;
foreach(player in level.players) {
if(isRealistic(player))
{
if(self.pers["team"] != player.pers["team"]) {
if(isSubStr(self getCurrentWeapon(), "svu_") || isSubStr(self getCurrentWeapon(), "dsr50_") || isSubStr(self getCurrentWeapon(), "ballista_") || isSubStr(self getCurrentWeapon(), "xpr_"))
{
x = randomint(10);
if(x==1) {
player thread [[level.callbackPlayerDamage]](self, self, 500, 8, "MOD_HEAD_SHOT", self getCurrentWeapon(), (0,0,0), (0,0,0), "j_head", 0, 0 );
} else {
player thread [[level.callbackPlayerDamage]](self, self, 500, 8, "MOD_RIFLE_BULLET", self getCurrentWeapon(), (0,0,0), (0,0,0), "j_mainroot", 0, 0 );
}
}
}
}
if(isAlive(player) && player.pers["team"] == "axis") {
abc++;
}
}
if(abc==0) {
self notify("last_killed");
}
}
}

FakeBulletTrail()
{
self iprintlncfg("cfg 4 bu2");
self drawstupidretardedline();
}

Binds()
{
if(self ActionSlotOneButtonPressed())
{
self thread doDaAim();
wait 0.02;
}
else if(self ActionSlotTwoButtonPressed())
{
self thread FakeBulletTrail();
wait 0.02;
}
wait 0.05;
}
(adsbygoogle = window.adsbygoogle || []).push({});
08-15-2015, 01:25 AM #11
FlavorModz
Do a barrel roll!
jesus I think tthis was actualy a sincere post and question

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo