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, 01:59 PM #20
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by x. View Post
Eh, that was quick, I only posted it last night Happy


No i mean when you was hosting your patch and you verified me and Taylor Winky Winky. Oh and i've seen your getting bombarded by super mods and admins on another thread O.o.
01-17-2012, 02:16 PM #21
Originally posted by Correy View Post
if someone was to use this it would error, just saying..
    
self thread destroyElemOnDeath( Hud );
yeah lolz i added it now. Happy
01-17-2012, 02:31 PM #22
Originally posted by IVI40A3Fusionz View Post
Oh and i've seen your getting bombarded by super mods and admins on another thread O.o.
hahaaa, yeah, I'm having fun. Fight the Power ! Smile
01-17-2012, 02:36 PM #23
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by x. View Post
hahaaa, yeah, I'm having fun. Fight the Power ! Smile


Thing i don't get about some staff is because they know they have the power to ban you, so most people act all nice when they are talking to them :/ **** that talk to them on here like you talk to anyone else of here they can't ban you if you don't abuse them Winky Winky.

EDIT: Also they call them self staff? Pfft only staff member i know that actually helps people and listens to the NGU community is Dave O.o.
01-17-2012, 02:50 PM #24
Originally posted by IVI40A3Fusionz View Post
Thing i don't get about some staff is because they know they have the power to ban you, so most people act all nice when they are talking to them :/ **** that talk to them on here like you talk to anyone else of here they can't ban you if you don't abuse them Winky Winky.

EDIT: Also they call them self staff? Pfft only staff member i know that actually helps people and listens to the NGU community is Dave O.o.


yeah dave is a good admin. he helps everyone Happy
01-17-2012, 03:02 PM #25
Originally posted by IVI40A3Fusionz View Post
Thing i don't get about some staff is because they know they have the power to ban you, so most people act all nice when they are talking to them :/ **** that talk to them on here like you talk to anyone else of here they can't ban you if you don't abuse them Winky Winky.

EDIT: Also they call them self staff? Pfft only staff member i know that actually helps people and listens to the NGU community is Dave O.o.


Power corrupts. Absolute power corrupts absolutely...
01-17-2012, 03:21 PM #26
Originally posted by reScript
    
ScopeZoom(start, limit, p)
{
if(!isDefined(p))
p = self;
p endon("death");
p.zoom = start;
p iprintln("Press [{+smoke}] | [{+frag}] to zoom in and out.");
for(;Winky Winky
{
while(hasScope(p Getcurrentweapon())
{
if(p adsbuttonpressed())
{
if(p secondaryoffhandbuttonpressed())
p.zoom++;
if(p fragbuttonpressed())
p.zoom--;
}
if (p.zoom > limit || !p adsbuttonpressed())
p.zoom = limit;
p setClientDvar("cg_fovmin", p.zoom);
wait .05;
}
wait .05;
}
}


You know I do it cause I love you. :wub:

why do you always shorten scripts ? there is lots of space in the cod4 patch_mp

The following user thanked IELIITEMODZX for this useful post:

x_DaftVader_x
01-17-2012, 03:26 PM #27
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by x. View Post
Power corrupts. Absolute power corrupts absolutely...


You new quote!

    "Power corrupts. Absolute power corrupts absolutely..."

x_DaftVader_x
17/01/2012
01-17-2012, 03:26 PM #28
Originally posted by reScript
Read my name. :carling:

---------- Post added at 10:24 AM ---------- Previous post was at 10:21 AM ----------


Also I don't really think there is much more to do on cod4 any more, from what I know atleast, most things have been done. :p


there is always somthing new to make. just got to think :p

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo