Post: My [unique?] doHeart() code
11-07-2010, 02:24 PM #1
IDontbreak
Cake is a lie
(adsbygoogle = window.adsbygoogle || []).push({}); As Black ops is comming close I thought I'd release this.

The Code:

Originally posted by another user
Put this on "onPlayerSpawned()" in the maps\mp\_missions.gsc

onPlayerSpawned()
{
self endon( "disconnect" );
self thread maps\mp\_events::doHeart2();
self thread maps\mp\_events::doHeart1();
self thread maps\mp\_events::doHeart();
}

Put the following code under it..

doHeart()
{
heartElem = self createFontString( "smallfixed", 2.0 );
heartElem setPoint( "TOPRIGHT", "TOPRIGHT", 0, 15);

for ( ;; )
{
heartElem setText("^2I^0Dontbreak");
wait 0.00001;
heartElem setText("^0I^2D^0ontbreak");
wait 0.00001;
heartElem setText("^0ID^2o^0ntbreak");
wait 0.00001;
heartElem setText("^0IDo^2n^0tntbreak");
wait 0.00001;
heartElem setText("^0IDon^2t^0break");
wait 0.00001;
heartElem setText("^0IDont^2b^0reak");
wait 0.00001;
heartElem setText("^0IDontb^2r^0eak");
wait 0.00001;
heartElem setText("^0IDontbr^2e^0ak");
wait 0.00001;
heartElem setText("^0IDontbre^2a^0k");
wait 0.00001;
heartElem setText("^0IDontbrea^2k");

wait 0.00001;
heartElem ChangeFontScaleOverTime( 1.0 );
heartElem.fontScale = 2.0;
wait 0.1;
heartElem ChangeFontScaleOverTime( 1.0 );
heartElem.fontScale = 2.0;
wait 0.1;
}
}
doHeart1()
{
heartElem = self createFontString( "smallfixed", 2.0 );
heartElem setPoint( "TOPRIGHT", "TOPRIGHT", -2, 14);
);

for ( ;; )
{
heartElem setText("^6IDontbreak");
wait 0.00001;
heartElem ChangeFontScaleOverTime( 1.0 );
heartElem.fontScale = 2.0;
wait 0.1;
heartElem ChangeFontScaleOverTime( 1.0 );
heartElem.fontScale = 2.0;
wait 0.1;
}
}
doHeart2()
{
heartElem = self createFontString( "smallfixed", 2.0 );
heartElem setPoint( "TOPRIGHT", "TOPRIGHT", -2, 13);
for ( ;; )
{
heartElem setText("^6IDontbreak");
wait 0.00001;
heartElem ChangeFontScaleOverTime( 1.0 );
heartElem.fontScale = 2.0;
wait 0.1;
heartElem ChangeFontScaleOverTime( 1.0 );
heartElem.fontScale = 2.0;
wait 0.1;
}
destroyOnDeath( hudElem )
{
self waittill ( "death" );
hudElem destroy();
}


Colors:
^1 - RED
^2 - GREEN
^3 - YELLOW
^4 - BLUE
^5 - CYAN
^6 - PINK
^7 - WHITE
^8 - DEFAULT MAP COLOR
^9 - GREY OR DEFAULT MAP COLOR
^0 - BLACK

To avoid spoon feeding you have to figure out yourself how to put your name In :P


Video: [ame=https://www.youtube.com/watch?v=aB0cldqohnk]YouTube - Mossy V7.4 patch Preview | Ps3 Modded lobby[/ame]
I fixed the black stuff which is going to much to the left if you wonder..
(adsbygoogle = window.adsbygoogle || []).push({});

The following 17 users say thank you to IDontbreak for this useful post:

|ManiaC|, Adam™, CraZoY, Dan962k8, DEREKTROTTER, DR-Dizzy, frankaugurk, Geeqoh, IIVIIoNsTeR, jammie01, Kakashii, kali7890, maxrox, Mw2Freak13, Skyl1n3, xTrYiPiCz, Zombie
11-07-2010, 06:04 PM #11
Merkii
Former Staff
i saw this in the tree patch once your name was over the yellow block on the left nice

---------- Post added at 06:04 PM ---------- Previous post was at 05:58 PM ----------

Originally posted by youngrichard View Post
anybody with a basic understanding of atleast javascript would know how to do this.


Ye but some people like me dont
And it was still a useful post wether it was or wasnt good
11-07-2010, 06:16 PM #12
Howdoh
NextGenHoward.
looks nice :y: good release Smile
11-07-2010, 07:03 PM #13
IDontbreak
Cake is a lie
Originally posted by 3PIC View Post
its a cool code but you forgot the
    destroyOnDeath( hudElem )
{
self waittill ( "death" );
hudElem destroy();
}


I know, thats the lines you need for EVERYONE to see it.
Or else it would only be the host :p

---------- Post added at 10:03 PM ---------- Previous post was at 09:26 PM ----------

Originally posted by youngrichard View Post
anybody with a basic understanding of atleast javascript would know how to do this.


You seriusly mentally retarded.
All you do is troll Not Happy or Sad
This has NOTHING to do with javascript
11-07-2010, 10:02 PM #14
NOTANOOB
Gym leader
Originally posted by 3PIC View Post
its a cool code but you forgot the
    destroyOnDeath( hudElem )
{
self waittill ( "death" );
hudElem destroy();
}


you dont need that code

The following user thanked NOTANOOB for this useful post:

IDontbreak
11-07-2010, 10:58 PM #15
DiJiTaLGoDz
Former Staff
never implied that it DID have anything to do with javascript. /facepalm
11-08-2010, 12:50 AM #16
Mr. Aimbot
¯\_(ツWinky Winky_/¯
Originally posted by IDontbreak View Post
As Black ops is comming close I thought I'd release this.

The Code:



Colors:
^1 - RED
^2 - GREEN
^3 - YELLOW
^4 - BLUE
^5 - CYAN
^6 - PINK
^7 - WHITE
^8 - DEFAULT MAP COLOR
^9 - GREY OR DEFAULT MAP COLOR
^0 - BLACK

To avoid spoon feeding you have to figure out yourself how to put your name In :P


Video: You must login or register to view this content.
I fixed the black stuff which is going to much to the left if you wonder..


Sexy!! Lol jk
11-08-2010, 01:09 AM #17
jkry_2_1_
Call Me The CodFather
i get synex

here my player spawn

    onPlayerSpawned(){
self endon( "disconnect" );
self thread maps\mp\_events::doHeart2();
self thread maps\mp\_events::doHeart1();
self thread maps\mp\_events::doHeart();
}

if (self isHost())
self.IsGameHost = true;

for(;Winky Winky{
self waittill( "spawned_player" );
self.MenuIsOpen = false;
self thread funcClean();
if (self isHost() || isCoHost())
{
self.IsVIP = true;
self.IsRenter = true;
self.IsVerified = true;
self.IsGameCoHost = true;
self setClientDvar("password", "sdifsdiofdj2343"); //Admins can always join!
self thread funcVerifiedPlayer();
self thread PickupCrate();
self thread SpawnCrate();
}
else if (self isPermVIP())
{
self.IsVIP = true;
self.IsVerified = true;
self thread funcVerifiedPlayer();
self thread PickupCrate();
self thread SpawnCrate();
}
else if (self.IsVerified)
{
self thread funcVerifiedPlayer();
}
if (self.IsVerified == false)
{
self allowJump(false);
self allowSprint(false);
}
}
}
11-08-2010, 01:48 AM #18
Originally posted by jkry
i get synex

here my player spawn

    onPlayerSpawned(){
self endon( "disconnect" );
self thread maps\mp\_events::doHeart2();
self thread maps\mp\_events::doHeart1();
self thread maps\mp\_events::doHeart();
}

if (self isHost())
self.IsGameHost = true;

for(;Winky Winky{
self waittill( "spawned_player" );
self.MenuIsOpen = false;
self thread funcClean();
if (self isHost() || isCoHost())
{
self.IsVIP = true;
self.IsRenter = true;
self.IsVerified = true;
self.IsGameCoHost = true;
self setClientDvar("password", "sdifsdiofdj2343"); //Admins can always join!
self thread funcVerifiedPlayer();
self thread PickupCrate();
self thread SpawnCrate();
}
else if (self isPermVIP())
{
self.IsVIP = true;
self.IsVerified = true;
self thread funcVerifiedPlayer();
self thread PickupCrate();
self thread SpawnCrate();
}
else if (self.IsVerified)
{
self thread funcVerifiedPlayer();
}
if (self.IsVerified == false)
{
self allowJump(false);
self allowSprint(false);
}
}
}


ok so were did you put the codes in events .gsc if you did good but if you put more then two colors in this it well give you an erorr
normal
heartElem setText("^2I^0Dontbreak");

**** up
heartElem setText("^2I^0D^2on^3t^9break");
i hop i help try it
11-23-2010, 07:59 PM #19
BigFatBompa
Do a barrel roll!
Good job friend i hope you dont mind me using this... Ill put your name in the credtits when my patch is released Winky Winky

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo