Post: [Script] - Get to Cover
07-19-2012, 01:35 AM #1
Correy
I'm the Original
(adsbygoogle = window.adsbygoogle || []).push({}); i haven't really done any scripting for a while, but i was playing survival mode on Modern Warfare 3 and decided to re-create the 'Get to cover' script which you receive upon near-death.

its nothing big, but hey.. it's something new!

    
get_to_cover()
{
self endon( "death" );

maxhealth = 100;
if( getDvarInt( "scr_hardcore" ) == 1 )
maxhealth = 30;

hint["text"] = self createfontstring("defualt", 3 );
hint["text"] setpoint( "CENTER", "CENTER" );
for(;Winky Winky
{
hint["text"] settext("");
if( self.health < maxhealth - 15 )
hint["text"] settext( "You're hurt. Get to cover!" );

hint["text"].alpha = 1;
if( self.health > maxhealth - 15 )
hint["text"].alpha -= .3;

wait .3;
}
}
(adsbygoogle = window.adsbygoogle || []).push({});

The following 10 users say thank you to Correy for this useful post:

247Yamato, Harry, INSAN3LY_D34TH, iPROFamily, Kush Friendly, LightModz, Simple-_-Modz, Taylor, tylerallmighty, Uk_ViiPeR
07-19-2012, 01:39 AM #2
Jeremy
Former Staff
lol Correy =Z

:wub:
07-19-2012, 01:40 AM #3
Correy
I'm the Original
Originally posted by Advisable View Post
lol Correy =Z

:wub:


i admit, the function isn't all that good.. but it's something new. Smile
07-19-2012, 01:46 AM #4
Jeremy
Former Staff
Originally posted by Correy View Post
i admit, the function isn't all that good.. but it's something new.
Make something cool please :fa: so i dont regret buying elite Gasp
07-19-2012, 01:48 AM #5
Correy
I'm the Original
Originally posted by Advisable View Post
Make something cool please :fa: so i dont regret buying elite Gasp


all the cool stuff goes into elite. all the cool stuff is coming soon Smile
07-19-2012, 01:49 AM #6
Jeremy
Former Staff
Originally posted by Correy View Post
all the cool stuff goes into elite. all the cool stuff is coming soon Smile

Havent found anything worth it yet :whistle: Gasp
07-19-2012, 01:50 AM #7
Correy
I'm the Original
Originally posted by Advisable View Post
Havent found anything worth it yet :whistle: Gasp


hang in there bro. Enzo
07-19-2012, 01:53 AM #8
Jeremy
Former Staff
Originally posted by Correy View Post
hang in there bro.
knee grow tell me what you've got in store stare
07-19-2012, 08:24 AM #9
247Yamato
< ^ > < ^ >
Not really new :carling: Its in MW3 :dumb:

The following 4 users say thank you to 247Yamato for this useful post:

Correy, iiReFuZee, x_DaftVader_x
07-19-2012, 02:57 PM #10
Taylor
Former Black Knight.
Originally posted by Correy View Post
i haven't really done any scripting for a while, but i was playing survival mode on Modern Warfare 3 and decided to re-create the 'Get to cover' script which you receive upon near-death.

its nothing big, but hey.. it's something new!

    
get_to_cover()
{
self endon( "death" );

maxhealth = 100;
if( getDvarInt( "scr_hardcore" ) == 1 )
maxhealth = 30;

hint["text"] = self createfontstring("defualt", 3 );
hint["text"] setpoint( "CENTER", "CENTER" );
for(;Winky Winky
{
hint["text"] settext("");
if( self.health < maxhealth - 15 )
hint["text"] settext( "You're hurt. Get to cover!" );

hint["text"].alpha = 1;
if( self.health > maxhealth - 15 )
hint["text"].alpha -= .3;

wait .3;
}
}


Currey, use iPrintlnBold, Doesn't use text strings.....

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo