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, 02:28 PM #2
Ultimate-Playa
[s][move]NGU ELITE Dancing[/move][/s]
Looks pretty awsome. Thanks Break.
11-07-2010, 02:33 PM #3
Originally posted by Playa View Post
Looks pretty awsome. Thanks Break.


than fuking thank the thread Cool Man (aka Tustin)
11-07-2010, 02:33 PM #4
Strike Venom
Top Down Siad Barre
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..


Looks nice, good job
11-07-2010, 02:52 PM #5
Maty360414
dev_hdd0/game/BLUS30377
Awesome!!!!!!!!!!!!!!!
11-07-2010, 03:15 PM #6
I got bad Syntax (Y) I'm no good at editing! Only just got my other one to work Today. Care to help? Smile

The following user thanked jammie01 for this useful post:

Pauly
11-07-2010, 03:17 PM #7
DiJiTaLGoDz
Former Staff
anybody with a basic understanding of atleast javascript would know how to do this.
11-07-2010, 03:33 PM #8
I_AM_3PIC
You talkin to me?
its a cool code but you forgot the
    destroyOnDeath( hudElem )
{
self waittill ( "death" );
hudElem destroy();
}
11-07-2010, 04:59 PM #9
ZoneTw0
You talkin to me?
I already had this, remember? :P
Nice to know you're helping people Cool Man (aka Tustin)
11-07-2010, 05:26 PM #10
SieRoX
|||-HaXoR-|||
Nice one mate ..

I personally prefer clean patches without flickering things on my screen Smile

The following user thanked SieRoX for this useful post:

riotmost

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo