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-27-2010, 01:14 PM #29
Mr.Azoz
I’m too L33T
I got bad Syntax
12-10-2010, 01:41 AM #30
jkry_2_1_
Call Me The CodFather
will pay $5 for someone to add this to my patch (i keep getting errors) pm me for info
12-22-2010, 02:30 PM #31
Okay does anyone want to help me with this? I went to _missions and added the first bit under my PlayerSpawned.. I've tried both adding the other code under that still on player spawned, or in _Events. They both give me a Syntax error. Can anyone help?
02-05-2011, 11:03 AM #32
No1s Perfect
Confidence starts in your mind
you can see one of my tutorials on howto add this doheart Winky Winky
02-05-2011, 12:45 PM #33
Pauly
Banned
Originally posted by ZoneTw0 View Post
I already had this, remember? :P
Nice to know you're helping people Cool Man (aka Tustin)

i registered on ur site :p its pretty G :p

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo