Post: [SCRIPT] Nova Gas Grenades
02-02-2012, 01:26 AM #1
Choco
Respect my authoritah!!
(adsbygoogle = window.adsbygoogle || []).push({}); Just a simple script, it spawns a smoke nade that does damage. Thanks to advisable for testing =D

Script:
    NovaNade()
{
self giveWeapon("smoke_grenade_mp");
self iPrintln("Press [{+smoke}] to throw Nova Gas");
self waittill("grenade_fire", grenade, weaponName);
if(weaponName == "smoke_grenade_mp")
{
nova = spawn("script_model", grenade.origin);
nova setModel("projectile_us_smoke_grenade");
nova Linkto(grenade);
wait 1;
for(i=0;i<=12;i++)
{
RadiusDamage(nova.origin,300,100,50,self);
wait 1;
}
nova delete();
}
}


Enjoy guys Winky Winky
(adsbygoogle = window.adsbygoogle || []).push({});

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

247Yamato, Baby-panama, Blackstorm, Correy, Jacob-And-Britt, Jeremy, Neff, Taylor, Uk_ViiPeR, User2340034u
02-02-2012, 01:28 AM #2
Jeremy
Former Staff
Originally posted by .Choco View Post
Just a simple script, it spawns a smoke nade that does damage. Thanks to advisable for testing =D

Script:
    NovaNade()
{
self giveWeapon("smoke_grenade_mp");
self iPrintln("Press [{+smoke}] to throw Nova Gas");
self waittill("grenade_fire", grenade, weaponName);
if(weaponName == "smoke_grenade_mp")
{
nova = spawn("script_model", grenade.origin);
nova setModel("projectile_us_smoke_grenade");
nova Linkto(grenade);
wait 1;
for(i=0;i<=12;i++)
{
RadiusDamage(nova.origin,300,100,50,self);
wait 1;
}
nova delete();
}
}


Enjoy guys Winky Winky
Nice work once again Winky Winky
02-02-2012, 04:56 AM #3
Jacob-And-Britt
I’m too L33T
Originally posted by .Choco View Post
Just a simple script, it spawns a smoke nade that does damage. Thanks to advisable for testing =D

Script:
    NovaNade()
{
self giveWeapon("smoke_grenade_mp");
self iPrintln("Press [{+smoke}] to throw Nova Gas");
self waittill("grenade_fire", grenade, weaponName);
if(weaponName == "smoke_grenade_mp")
{
nova = spawn("script_model", grenade.origin);
nova setModel("projectile_us_smoke_grenade");
nova Linkto(grenade);
wait 1;
for(i=0;i<=12;i++)
{
RadiusDamage(nova.origin,300,100,50,self);
wait 1;
}
nova delete();
}
}


Enjoy guys Winky Winky
Why does people do the {
Think its such a waste of space {
}
}

The following 10 users groaned at Jacob-And-Britt for this awful post:

Woof, Correy, INSAN3LY_D34TH, Jeremy, Karoolus, Taylor, Uk_ViiPeR, x_DaftVader_x, xRaW
02-02-2012, 06:40 AM #4
Karoolus
I'm the W@W Menu Guy !
Originally posted by jbglitching View Post
Why does people do the {
Think its such a waste of space {
}
}

it's called clean coding, you moron..

The following 5 users say thank you to Karoolus for this useful post:

Jeremy, Taylor, txlonghorn97, Vampytwistッ, xRaW
02-02-2012, 12:20 PM #5
Choco
Respect my authoritah!!
Originally posted by Karoolus View Post
it's called clean coding, you moron..


Not only that but isn't it needed if you want more than 1 variable in your for(;Winky Winky loop?
02-02-2012, 01:29 PM #6
INSAN3LY_D34TH
INSAN3LY GAMING
Originally posted by jbglitching View Post
Why does people do the {
Think its such a waste of space {
}
}


Seriously! Your going to say that, get the **** off this site/section until you learn how to code
02-02-2012, 03:28 PM #7
Originally posted by .Choco View Post
Just a simple script, it spawns a smoke nade that does damage. Thanks to advisable for testing =D

Script:
    NovaNade()
{
self giveWeapon("smoke_grenade_mp");
self iPrintln("Press [{+smoke}] to throw Nova Gas");
self waittill("grenade_fire", grenade, weaponName);
if(weaponName == "smoke_grenade_mp")
{
nova = spawn("script_model", grenade.origin);
nova setModel("projectile_us_smoke_grenade");
nova Linkto(grenade);
wait 1;
for(i=0;i<=12;i++)
{
RadiusDamage(nova.origin,300,100,50,self);
wait 1;
}
nova delete();
}
}


Enjoy guys Winky Winky

Nice Work =D
02-02-2012, 03:33 PM #8
Default Avatar
Newelly
Guest
Originally posted by Karoolus View Post
it's called clean coding, you moron..


his are cleaner :carling:

britts_amazing_super_nuke_v1_v2_soon()
{
//300 lines of code { { {
}
}
}

:carling:

---------- Post added at 03:33 PM ---------- Previous post was at 03:31 PM ----------

Originally posted by jbglitching View Post
Why does people do the {
Think its such a waste of space {
}
}


you has a syntax :carling:

{ = 1
} = 2 :derp:

:carling: :carling:
02-02-2012, 04:46 PM #9
Originally posted by Newelly View Post
his are cleaner :carling:

britts_amazing_super_nuke_v1_v2_soon()
{
//300 lines of code { { {
}
}
}

:carling:

---------- Post added at 03:33 PM ---------- Previous post was at 03:31 PM ----------



you has a syntax :carling:

{ = 1
} = 2 :derp:

:carling: :carling:


you make me think of optimization *cough* reScript *cough* stare
02-02-2012, 08:26 PM #10
awww your all so mean to jbglitching xD

OT: Looks good

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo