Post: {CODE] Custom Sights (V 1.01) !!
01-29-2011, 12:27 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); ..........
(adsbygoogle = window.adsbygoogle || []).push({});

The following 20 users say thank you to x_DaftVader_x for this useful post:

Alfa, Amanda, d7w7z, DR-Dizzy, Dreamcather, EliteMossy, GeorgeGreen, Ghost1990, Hawk, Jake9, kingofkarate400, LINUX♥, Mw2Freak13, oGHOSTLYMODZ, Skyl1n3, TehMike, The InvadeR, Tuhoaja, Vampytwistッ
01-29-2011, 12:42 AM #11
Originally posted by TheEliteMossy View Post
You might want to do this
    
KillVader(a){
self endon("disconnect");
self waittill ("death");
a destroy();
}


also you are missing the self notifyonplayercommand Winky Winky


Where am I missing onPlayercommand?

like I said, i got bored of messing with it...

can you get the attachment only working ?

I tried all the if ( !isSubStr( etc,... "acog")

etc stuff but none of it works..

And it needs a true/false added really..

---------- Post added at 12:42 AM ---------- Previous post was at 12:41 AM ----------

Originally posted by TheEliteMossy View Post
You might want to do this
    
KillVader(a){
self endon("disconnect");
self waittill ("death");
a destroy();
}


also you are missing the self notifyonplayercommand Winky Winky


nvm, my patch has an inibuttons(); Winky Winky
01-29-2011, 12:44 AM #12
Default Avatar
Newelly
Guest
i have also added this to my thread for you mr.vader Smile

You must login or register to view this content.
01-29-2011, 12:44 AM #13
d7w7z
Bounty hunter
Originally posted by x View Post
Ok, this is far from perfect but it will give you all something to play with.

This could be FAR smaller.
    
Dot( C )
{
self waittill("Right");
x_DaftVader_x = createIcon( C, 25, 25 );
x_DaftVader_x setPoint( "CENTER","CENTER",0,0 );
x_DaftVader_x.alpha = 0.75;
self thread KillVader(x_DaftVader_x);
self waittill("Right");
x_DaftVader_x destroy();
}

Dot( "cardicon_prestige10_02" );
Dot( "cardicon_prestige10" );
Or something like that Winky Winky
01-29-2011, 12:44 AM #14
EliteMossy
TheDigitalBoard.com
what you mean attachment thing?

like

    

cW=self getCurrentWeapon();
if(isSubStr(cW,"acog")) //If they have acog scope
{
do Blah
}
01-29-2011, 12:50 AM #15
Originally posted by TheEliteMossy View Post
what you mean attachment thing?

like

    

cW=self getCurrentWeapon();
if(isSubStr(cW,"acog")) //If they have acog scope
{
do Blah
}


Yes, I wanted it to only work if you had a scope attached but i tried that exactly as you have it but it didnt work..

---------- Post added at 12:50 AM ---------- Previous post was at 12:49 AM ----------

Originally posted by d7w7z View Post
This could be FAR smaller.
    
Dot( C )
{
self waittill("Right");
x_DaftVader_x = createIcon( C, 25, 25 );
x_DaftVader_x setPoint( "CENTER","CENTER",0,0 );
x_DaftVader_x.alpha = 0.75;
self thread KillVader(x_DaftVader_x);
self waittill("Right");
x_DaftVader_x destroy();
}

Dot( "cardicon_prestige10_02" );
Dot( "cardicon_prestige10" );
Or something like that Winky Winky


Thanks, I'll test it and add it to the OP..

I just took it straight out of my test patch, I didnt bother "optimizing it " Smile
01-29-2011, 12:57 AM #16
Skyl1n3
DO SOMETHING THEN!
Originally posted by x View Post
Ok, this is far from perfect but it will give you all something to play with. It was just an idea but I don't want to spend loads of time on this..

I have it toggled from the right D-Pad in the video but you can add the button command for "L2" or "ADS"..

The second function is just a quick fix to destroy on death because destroy on death doesn't work. It needs a true/false statement added really..

If anyone wants to improve this code, Pm me and I will add it and give full credit.


If anyone can get it to only work with guns attached with sights I will post it and rep link you Smile

PLEASE do not start hundreds of posts with "MY CUSTOM SIGHTS"
If you want to add cool icons I will add them to this thread..
( If anyone knows the name of the spinning nuke icon let me know!)


You must login or register to view this content.




    VaderSights(){    
self endon("death");
self endon("disconnect");
self notifyOnPlayerCommand( "Right", "+actionslot 4" );
for(;Winky Winky{

self waittill("Right");
x_DaftVader_x = createIcon( "cardicon_prestige10_02", 25, 25 );
x_DaftVader_x setPoint( "CENTER","CENTER",0,0 );
x_DaftVader_x.alpha = 0.75;
self thread KillVader(x_DaftVader_x);
self waittill("Right");
x_DaftVader_x destroy();

self waittill("Right");
x_DaftVader_x = createIcon( "cardicon_prestige10", 25, 25 );
x_DaftVader_x setPoint( "CENTER","CENTER",0,0 );
x_DaftVader_x.alpha = 0.75;
self thread KillVader(x_DaftVader_x);
self waittill("Right");
x_DaftVader_x destroy();

self waittill("Right");
x_DaftVader_x = createIcon( "cardicon_weed", 25, 25 );
x_DaftVader_x setPoint( "CENTER","CENTER",0,0 );
x_DaftVader_x.alpha = 0.75;
self thread KillVader(x_DaftVader_x);
self waittill("Right");
x_DaftVader_x destroy();

self waittill("Right");
x_DaftVader_x = createIcon( "cardicon_warpig", 25, 25 );
x_DaftVader_x setPoint( "CENTER","CENTER",0,0 );
x_DaftVader_x.alpha = 0.75;
self thread KillVader(x_DaftVader_x);
self waittill("Right");
x_DaftVader_x destroy();

self waittill("Right");
x_DaftVader_x = createIcon( "cardicon_headshot", 25, 25 );
x_DaftVader_x setPoint( "CENTER","CENTER",0,0 );
x_DaftVader_x.alpha = 0.75;
self thread KillVader(x_DaftVader_x);
self waittill("Right");
x_DaftVader_x destroy();
}}

KillVader(a){
self waittill ("death");
a destroy();
}


Maybe you can list us with all different emblems we can put in? Smile
01-29-2011, 12:58 AM #17
Amanda
Can’t trickshot me!
Originally posted by x View Post
If anyone knows the name of the spinning nuke icon let me know!


    cardicon_tacticalnuke

The following user thanked Amanda for this useful post:

xChronicModz
01-29-2011, 01:01 AM #18
Originally posted by Skyl1n3 View Post
Maybe you can list us with all different emblems we can put in? Smile


They are in DT's C++ sticky but the nuke was missing.
01-29-2011, 01:01 AM #19
Skyl1n3
DO SOMETHING THEN!
Originally posted by x View Post
They are in DT's C++ sticky but the nuke was missing.


Oo, alright Smile

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo