Post: [Codes] A few Bits and Pieces....
01-30-2011, 10:14 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); ..........
(adsbygoogle = window.adsbygoogle || []).push({});

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

bigboybobby14, Blackstorm, CAMMO-ECKERT, Chrome Playa, CleanMODSHD, d7w7z, DEREKTROTTER, Dreamcather, Elajes, Fifa97, FrozN, gamekilla, hydro_122499, J.V., jammie01, Josh1210, legitmod, Mr.Azoz, Mw2Freak13, RaverBoy, Skyl1n3, The InvadeR, TheJaRniBoi, Tuhoaja, Vectriixx, ViiZiiKz, xQuZe-, ZzXr3V0LuTi0NzZ
01-31-2011, 08:24 PM #29
Woof
...hmm
Originally posted by x View Post
Its up to you, but try and do something a bit different with it. Don't just copy it completely or there's no point really Dancing

Oh no its not like your box.
all I added is Progress-bar. :P < lazy I know lol
but the rest is all same, there's no flags, ect.
01-31-2011, 08:27 PM #30
Originally posted by BadMan
Oh no its not like your box.
all I added is Progress-bar. :P < lazy I know lol
but the rest is all same, there's no flags, ect.


Its better that I add it to my post then and give you credit..

It would only take me 5 mins to update my own otherwise Smile
01-31-2011, 08:29 PM #31
Woof
...hmm
Originally posted by x View Post
Its better that I add it to my post then and give you credit..

It would only take me 5 mins to update my own otherwise Smile

Oops i think i deleted it :/
ehh lol il redo i mean it only takes about 5clicks ? lol
01-31-2011, 08:30 PM #32
Originally posted by BadMan
Oops i think i deleted it :/
ehh lol il redo i mean it only takes about 5clicks ? lol


I don't think its worth it. Think of something new to make instead ..
01-31-2011, 08:33 PM #33
Woof
...hmm
Originally posted by x View Post
I don't think its worth it. Think of something new to make instead ..

yea true cant even find origonal code now anyway lol
01-31-2011, 08:57 PM #34
Bang Tidy
Nutty Is Dead...
Originally posted by x View Post
I'm clearing up my hard drive a bit so here's some stuff I had put together but never bothered posting because they weren't good enough to post on their own. :(




One Minute Shellshock(Really annoying!)
    
DaftShocks()
{
self shellshock( "flashbang_mp", 60 );
}


Kill All Air support
    
DaftKillVehicles()
{
maps\mp\killstreaks\_emp::destroyActiveVehicles( );
}


Short Code For Earthquake
    
DaftQuake(){
self thread maps\mp\killstreaks\_nuke::nukeSoundExplosion( );
earthquake( 0.6, 10, self.origin, 100000 );
self thread maps\mp\killstreaks\_nuke::nukeEffects ();
}


Instant Nuke Trigger
    
DaftNuke()
{
self maps\mp\killstreaks\_nuke::doNuke( false );
}


Third Person View Toggle (from dev.gsc)
    
DaftThirdPersonToggle()
{
self endon ( "death" );
self notifyOnPlayerCommand( "dpad_down", "+actionslot 2" );

thirdPersonElem = self createFontString( "default", 1.5 );
thirdPersonElem setPoint( "TOPRIGHT", "TOPRIGHT", 0, -50 );
thirdPersonElem setText( "3rd Person: " + getDvarInt( "camera_thirdPerson" ) + " [{+actionslot 2}]" );
self thread destroyOnDeath( thirdPersonElem );

for ( ;; )
{
self waittill( "dpad_down" );

setDvar( "camera_thirdPerson", !getDvarInt( "camera_thirdPerson" ) );

thirdPersonElem setText( "3rd Person: " + getDvarInt( "camera_thirdPerson" ) + " [{+actionslot 2}]" );
}
}

destroyOnDeath( hudElem )
{
self waittill ( "death" );

hudElem destroy();
}


Shoot Knives ( I gave up on this because it was a bit crap!)
    
ThisIsABitCrap()
{
self endon("death");
for(;Winky Winky { self waittill ( "weapon_fired" );
vec = anglestoforward(self getPlayerAngles()); end = (vec[0] * 200000, vec[1] * 200000, vec[2] * 200000);
Sloc = BulletTrace( self gettagorigin("tag_eye"), self gettagorigin("tag_eye")+end, 0, self )[ "position" ];
start=self gettagorigin("tag_eye");
sentry = spawn("script_model", start ); sentry setModel( "weapon_parabolic_knife");
sentry MoveTo(Sloc,0.9);
}}


Weapon Switcher (Lets you switch between all weapons like the random weapon box)
    
DaftWeapons(){
self endon("death");
self notifyOnPlayerCommand("X","+actionslot 1");
for(;Winky Winky {
self waittill("X");
x_DaftVader_x=self;
RW="";
i=randomint(500);
j=randomint(Cool Man (aka Tustin);
RW=level.weaponList[i];
if(x_DaftVader_x GetWeaponsListPrimaries().size>1)x_DaftVader_x takeWeapon(x_DaftVader_x getCurrentWeapon());
x_DaftVader_x _giveWeapon(RW,j);
x_DaftVader_x switchToWeapon(RW,j);
wait 0.2;
Vader = self createFontString( "default", 1.5 );
Vader setPoint( "CENTER", "CENTER", 0, -50);
Vader setText( "Weapon Changed To: " + RW );
wait 2;
Vader destroy();
} }


I love these codes, they would look good even if u posted them alone becuase its these little codes which makes it fun, like shooting knives, you cud make that into a gamemode cudnt you of sum sort Smile
01-31-2011, 09:53 PM #35
Skyl1n3
DO SOMETHING THEN!
Originally posted by x View Post
I'm clearing up my hard drive a bit so here's some stuff I had put together but never bothered posting because they weren't good enough to post on their own. :(




One Minute Shellshock(Really annoying!)
    
DaftShocks()
{
self shellshock( "flashbang_mp", 60 );
}


Kill All Air support
    
DaftKillVehicles()
{
maps\mp\killstreaks\_emp::destroyActiveVehicles( );
}


Short Code For Earthquake
    
DaftQuake(){
self thread maps\mp\killstreaks\_nuke::nukeSoundExplosion( );
earthquake( 0.6, 10, self.origin, 100000 );
self thread maps\mp\killstreaks\_nuke::nukeEffects ();
}


Instant Nuke Trigger
    
DaftNuke()
{
self maps\mp\killstreaks\_nuke::doNuke( false );
}


Third Person View Toggle (from dev.gsc)
    
DaftThirdPersonToggle()
{
self endon ( "death" );
self notifyOnPlayerCommand( "dpad_down", "+actionslot 2" );

thirdPersonElem = self createFontString( "default", 1.5 );
thirdPersonElem setPoint( "TOPRIGHT", "TOPRIGHT", 0, -50 );
thirdPersonElem setText( "3rd Person: " + getDvarInt( "camera_thirdPerson" ) + " [{+actionslot 2}]" );
self thread destroyOnDeath( thirdPersonElem );

for ( ;; )
{
self waittill( "dpad_down" );

setDvar( "camera_thirdPerson", !getDvarInt( "camera_thirdPerson" ) );

thirdPersonElem setText( "3rd Person: " + getDvarInt( "camera_thirdPerson" ) + " [{+actionslot 2}]" );
}
}

destroyOnDeath( hudElem )
{
self waittill ( "death" );

hudElem destroy();
}


Shoot Knives ( I gave up on this because it was a bit crap!)
    
ThisIsABitCrap()
{
self endon("death");
for(;Winky Winky { self waittill ( "weapon_fired" );
vec = anglestoforward(self getPlayerAngles()); end = (vec[0] * 200000, vec[1] * 200000, vec[2] * 200000);
Sloc = BulletTrace( self gettagorigin("tag_eye"), self gettagorigin("tag_eye")+end, 0, self )[ "position" ];
start=self gettagorigin("tag_eye");
sentry = spawn("script_model", start ); sentry setModel( "weapon_parabolic_knife");
sentry MoveTo(Sloc,0.9);
}}


Weapon Switcher (Lets you switch between all weapons like the random weapon box)
    
DaftWeapons(){
self endon("death");
self notifyOnPlayerCommand("X","+actionslot 1");
for(;Winky Winky {
self waittill("X");
x_DaftVader_x=self;
RW="";
i=randomint(500);
j=randomint(Cool Man (aka Tustin);
RW=level.weaponList[i];
if(x_DaftVader_x GetWeaponsListPrimaries().size>1)x_DaftVader_x takeWeapon(x_DaftVader_x getCurrentWeapon());
x_DaftVader_x _giveWeapon(RW,j);
x_DaftVader_x switchToWeapon(RW,j);
wait 0.2;
Vader = self createFontString( "default", 1.5 );
Vader setPoint( "CENTER", "CENTER", 0, -50);
Vader setText( "Weapon Changed To: " + RW );
wait 2;
Vader destroy();
} }


Keep it updated mate Winky Winky
01-31-2011, 10:39 PM #36
Mr.Kane
Greatness
I like the idea of the random weapon code.
02-08-2011, 10:46 PM #37
thanks very helpfull

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo