Post: [RELEASE] Variable Zoom
01-17-2012, 02:15 AM #1
iPROFamily
Gym leader
(adsbygoogle = window.adsbygoogle || []).push({});


    sniperZoom()
{
dvar = [];
curs = 1;
elemNames = strTok("1x;2x;4x;8x;16x;32x;64x",";");
for(k = 0; k < 8; k++)
dvar[8-k] = (k*10);

for(;Winky Winky
{
while(self adsButtonPressed() && self playerADS() && hasSniper())
{
for(k = 0; k < 8; k++)
{
if(!isDefined(self.zoomElem[k]))
{
self.zoomElem[k] = createText("default",1.4,"","TOP",((k*40)-120),35,1,200,elemNames[k]);
if(k == curs-1)
self.zoomElem[curs-1].color = (1,0,0);
}
}
if(self meleeButtonPressed())
{
self.zoomElem[curs-1].color = (1,1,1);
curs ++;
if(curs >= dvar.size)
curs = 1;

self.zoomElem[curs-1].color = (1,0,0);
wait .1;
}
self setclientDvar("cg_fovmin", int(dvar[curs]));
wait .05;
}
for(k = 0; k < 8; k++)
self.zoomElem[k] destroy();

wait .05;
}
}
hasSniper()
{
curWeapon = self getCurrentWeapon();
if(curWeapon == "remington700_mp" || curWeapon == "m21_mp" || curWeapon == "aw50_mp" || curWeapon == "barrett_mp" || curWeapon == "dragunov_mp" || curWeapon == "m40a3_mp")
return true;

return false;
}
createText( Font, Fontscale, Align, Relative, X, Y, Alpha, Sort, Text )
{
Hud = createFontString( Font, Fontscale);
Hud setPoint( Align, Relative, X, Y );
Hud.alpha = Alpha;
Hud.sort = Sort;
Hud setText( Text );
self thread destroyElemOnDeath( Hud );
return Hud;
}
destroyElemOnDeath( elem )
{
self waittill("death");
elem destroy();
}

Credits:
IELIITEMODZX
(adsbygoogle = window.adsbygoogle || []).push({});

The following 3 users say thank you to iPROFamily for this useful post:

Choco, iiReFuZee, Cmd-X

The following 4 users groaned at iPROFamily for this awful post:

247Yamato, Blackstorm, Taylor
01-17-2012, 09:18 PM #38
Originally posted by .Choco View Post
jbglitching version:

    ScriptNamedSomethingWithJB()
{
self iprintlnBold("^1VARIABLE ZOOM BY J&B NO ONE ELSE HELPED AT ALL AND IT WAS MY ORIGINAL IDEA");
self thread ThisIsOnlyHereToMakeABadSyntaxForUnknownFunction();
}


lol, i feel sorry for J&B because hes not a script creator (wrong selected word), hes an editor but this is still funny.

The following 2 users say thank you to Uk_ViiPeR for this useful post:

247Yamato,
01-17-2012, 09:24 PM #39
Originally posted by Correy View Post





    
VariableZoom()
{
for( Zoom=0;; )
{
self setClientDvar( "cg_fovmin", 60 );
while( self maps\mp\gametypes\_weapons::hasScope( self getCurrentWeapon() )&& self playerADS() )
{
Zoom += self FragButtonPressed()*10;
Zoom -= self SecondaryOffHandButtonPressed()*10;
if( Zoom > 6 ) Zoom = 0;
if( Zoom < 0 ) Zoom = 6;
self SetClientDvar( "cg_fovmin", Zoom );
wait .1;
}
wait .1;
}
}


Congratulations, you edited someone else's script again. what you want, a cookie? :carling:
01-17-2012, 09:32 PM #40
Default Avatar
Newelly
Guest
Originally posted by x. View Post
Congratulations, you edited someone else's script again. what you want, a cookie? :carling:


yes please :carling:
01-17-2012, 09:38 PM #41
Originally posted by Newelly View Post
yes please :carling:
sshhhh you :dingding:...

---------- Post added at 09:38 PM ---------- Previous post was at 09:36 PM ----------

Originally posted by .Choco View Post
jbglitching version:

    ScriptNamedSomethingWithJB()
{
self iprintlnBold("^1VARIABLE ZOOM BY J&B NO ONE ELSE HELPED AT ALL AND IT WAS MY ORIGINAL IDEA");
self thread ThisIsOnlyHereToMakeABadSyntaxForUnknownFunction();
}


^^ I got an unknown function :confused:

The following user thanked x_DaftVader_x for this useful post:

Blackstorm
01-17-2012, 09:38 PM #42
Default Avatar
Newelly
Guest
Originally posted by x. View Post
sshhhh you :dingding:...


Pretty sure:

x_DaftVader_x > :dingding: < Newelly
01-17-2012, 09:43 PM #43
Correy
I'm the Original
Originally posted by .Choco View Post
jbglitching version:

    ScriptNamedSomethingWithJB()
{
self iprintlnBold("^1VARIABLE ZOOM BY J&B NO ONE ELSE HELPED AT ALL AND IT WAS MY ORIGINAL IDEA");
self thread ThisIsOnlyHereToMakeABadSyntaxForUnknownFunction();
}



i dont see a syntax error :carling:

---------- Post added at 09:43 PM ---------- Previous post was at 09:42 PM ----------

Originally posted by x. View Post
Congratulations, you edited someone else's script again. what you want, a cookie? :carling:


both of you posted one so i did :carling:
and no, i want 3 plz
01-17-2012, 09:48 PM #44
Originally posted by Newelly View Post
Pretty sure:

x_DaftVader_x > :dingding: < Newelly


:bat: << Vader

:wtf: << Newelly

:catfight: << FIGHT!!

:gluk: << Newelly

Reaper << Vader

Dancing << Vader

---------- Post added at 09:48 PM ---------- Previous post was at 09:43 PM ----------

Originally posted by Correy View Post


both of you posted one so i did :carling:


I already had mine working in a patch, I posted it because the other one wasn't stable on PS3.. You ( and other people) do this a lot nowadays, wait for someone to post something, then edit and re post an "optimized" version. It gets annoying sometimes... No

The following user thanked x_DaftVader_x for this useful post:

01-17-2012, 09:51 PM #45
Correy
I'm the Original
Originally posted by x. View Post
:bat: << Vader

:wtf: << Newelly

:catfight: << FIGHT!!

:gluk: << Newelly

Reaper << Vader

Dancing << Vader

---------- Post added at 09:48 PM ---------- Previous post was at 09:43 PM ----------



I already had mine working in a patch, I posted it because the other one wasn't stable on PS3.. You ( and other people) do this a lot nowadays, wait for someone to post something, then edit and re post an "optimized" version. It gets annoying sometimes... No


problem :carling: ?
01-17-2012, 09:53 PM #46
Choco
Respect my authoritah!!
Originally posted by x. View Post
sshhhh you :dingding:...

---------- Post added at 09:38 PM ---------- Previous post was at 09:36 PM ----------



^^ I got an unknown function :confused:


thats wierd cus i testd it and it woks for me you noobs must be doing something wrong!!!!!!!!

(Notice the deliberate lack of grammar, spelling, proper punctuation, and capitalization)

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo