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-25-2012, 10:21 PM #29
LightModz
League Champion
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;
}
}


this is pretty cool but i thought it was going to be something like hide behind a wall or something similar lol
08-21-2012, 03:49 AM #30
Originally posted by Correy View Post
hint["text"] = self createfontstring("defualt", 3 );


You mean - default Smile :y:
08-21-2012, 05:38 PM #31
tylerallmighty
Human After All
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;
}
}


Cool. I like it. :y:

You must login or register to view this content.
08-23-2012, 02:24 PM #32
Correy
I'm the Original
Originally posted by .r4w View Post
Cool. I like it. :y:

You must login or register to view this content.


if you where damaged from a shooter you would have the blood splatter as well..
08-23-2012, 05:39 PM #33
tylerallmighty
Human After All
Originally posted by Correy View Post
if you where damaged from a shooter you would have the blood splatter as well..


Correct. The splash went away before I could prntscrn.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo