Post: [CODE] *Dummy Care-package*
01-31-2011, 11:41 PM #1
Woof
...hmm
(adsbygoogle = window.adsbygoogle || []).push({}); Just a simple mod I did in 4/5 minutes, Enjoy !Dancing

What is this ?Eek
It is a fake Care-package that if try'd to take will blow up, beep and say text on screen "**** you !", "Get your own CP".

As i said very simple, Don't hate.
recoreded by: Scrumilation
[ame]https://www.youtube.com/watch?v=c-xZu77dOF4[/ame]
v1.0
    BadManFakeCP(){
self endon("stopsound");
BadManPlace = self.origin+(0,90,15);
BadMan = spawn("script_model",BadManPlace);
BadMan setModel("com_plasticcase_enemy");
BadMan Solid();
BadMan CloneBrushmodelToScriptmodel(level.airDropCrateCollision);
for(;Winky Winky {
foreach(BadManz in level.players) {
wait 0.01;
Dis=distance(BadMan.origin,BadManz.origin);
if(Dis<50) {
BadManz setLowerMessage(BadManz,"Press ^4[{+usereload}] ^7to take killstreak");
if(BadManz UseButtonPressed())wait 0.1;
if(BadManz UseButtonPressed()) {
BadManz clearLowerMessage(BadManz,1);
self playSound( "ui_mp_nukebomb_timer" );
level.chopper_fx["smoke"]["trail"]=loadfx("fire/fire_smoke_trail_L");
playfx(level.chopper_fx["smoke"]["trail"],BadMan.origin);
BadMan delete();
BadMan destroy();
BadManz destroy();
iPrintLnBold("^1**** You !");
wait 1;
iPrintLnBold("^1Get your own CP !");
self notify("stopsound");
}}}}}
BTW - Very funny online Winky Winky
May update with a video preview, but you can see how it would look by looking at the code realy.
If somebody could take a screen-shot or video, That would be very useful

v1.1
    BadManFakeCP(){
self endon("stopsound");
BadManPlace = self.origin+(0,90,15);
BadMan = spawn("script_model",BadManPlace);
BadMan setModel("com_plasticcase_enemy");
BadMan Solid();
BadMan CloneBrushmodelToScriptmodel(level.airDropCrateCollision);
for(;Winky Winky {
foreach(BadManz in level.players) {
wait 0.01;
Dis=distance(BadMan.origin,BadManz.origin);
if(Dis<50) {
BadManz setLowerMessage(BadManz,"Press ^4[{+usereload}] ^7to get your reward...");
if(BadManz UseButtonPressed())wait 0.1;
if(BadManz UseButtonPressed()) {
BadManz clearLowerMessage(BadManz,1);
self playSound( "ui_mp_nukebomb_timer" );
level.chopper_fx["smoke"]["trail"]=loadfx("fire/fire_smoke_trail_L");
playfx(level.chopper_fx["smoke"]["trail"],BadMan.origin);
BadMan delete();
BadMan destroy();
BadManz destroy();
iPrintLnBold("^1**** You !");
wait 1;
iPrintLnBold("TEXT HERE");
wait 1;
self thread maps\mp\killstreaks\_nuke::nukeSoundExplosion();
self suicide();
self notify("stopsound");
}}}}}
1.2
-Added Progress-Bar
-Changed Sounds
-Made More Stable
-Fixed v1.1 text never goes bug


Add this at top of .GSC
    #include maps\mp\gametypes\_hud_util;
Code:
    BadManFakeCP(){
self endon("stopsound");
BadManPlace = self.origin+(0,90,15);
BadMan = spawn("script_model",BadManPlace);
BadMan setModel("com_plasticcase_enemy");
BadMan Solid();
BadMan CloneBrushmodelToScriptmodel(level.airDropCrateCollision);
for(;Winky Winky {
foreach(BadManz in level.players) {
wait 0.01;
Dis=distance(BadMan.origin,BadManz.origin);Btime = 6.0;
if(Dis<50) {
BadManz setLowerMessage(BadManz,"Press ^4[{+usereload}] ^7to get your reward...");
if(BadManz UseButtonPressed())wait 0.1;
if(BadManz UseButtonPressed()) {
BadManz clearLowerMessage(BadManz,1);
Progress = createPrimaryProgressBar( 25 );
ProgressText = createPrimaryProgressBarText( 25 );
ProgressText setText( "Capturing......." );
Progress updateBar( 0, 1 / Btime );
Progress.color = (0, 0, 0);
for ( waitedTime = 0; waitedTime < Btime && isAlive( self ) && !level.gameEnded; waitedTime += 0.05 )
wait ( 0.05 );
Progress destroyElem();
wait 0.05;
ProgressText destroyElem();
wait 0.05;
BadManz thread maps\mp\killstreaks\_nuke::nukeSoundExplosion();
wait 0.05;
level.chopper_fx["smoke"]["trail"]=loadfx("fire/fire_smoke_trail_L");
playfx(level.chopper_fx["smoke"]["trail"],BadMan.origin);
wait 0.05;
BadMan delete();
wait 0.05;
BadMan destroyElem();
wait 0.05;
BadManz destroyElem();
wait 0.05;
self thread BadMan();
}}}}}
Add this Under Code
    BadMan(){
self iPrintLnBold("^1**** You !");
wait 1;
self iPrintLnBold("^1Get your own CP !");
wait 1;
self suicide();
self notify("stopsound");
}


v1.3
    
BadManFakeCP(){
self endon("stopsound");
BadManPlace = self.origin+(0,90,15);
BadMan = spawn("script_model",BadManPlace);
BadMan setModel("com_plasticcase_enemy");
BadMan Solid();
BadMan CloneBrushmodelToScriptmodel(level.airDropCrateCollision);
for(;Winky Winky {
foreach(BadManz in level.players) {
wait 0.01;
Dis=distance(BadMan.origin,BadManz.origin);Btime = 6.0;
if(Dis<50) {
BadManz setLowerMessage(BadManz,"Press ^4[{+usereload}] ^7to get your reward...");
if(BadManz UseButtonPressed())wait 0.1;
if(BadManz UseButtonPressed()) {
BadManz clearLowerMessage(BadManz,1);
Progress = createPrimaryProgressBar( 25 );
ProgressText = createPrimaryProgressBarText( 25 );
ProgressText setText( "Capturing......." );
Progress updateBar( 0, 1 / Btime );
Progress.color = (0, 0, 0);
for ( waitedTime = 0; waitedTime < Btime && isAlive( self ) && !level.gameEnded; waitedTime += 0.05 )
wait ( 0.05 );
Progress destroyElem();
wait 0.05;
ProgressText destroyElem();
wait 0.05;
self thread BadBoom(0.3);
wait 0.05;
flameFX = loadfx( "props/barrelexp" );
playFX(flameFX, BadMan.origin);
RadiusDamage(BadMan.origin,200,200,200,self);
wait 0.05;
BadMan delete();
wait 0.05;
BadMan destroyElem();
wait 0.05;
BadManz destroyElem();
wait 0.05;
self thread BadMan();
}}}}}

BadBoom(maxtime)
{
self playSound( "ui_mp_timer_countdown" );
wait(maxtime);
self playSound( "ui_mp_timer_countdown" );
wait(maxtime);
for(i = maxtime; i > 0; i-=0.1)
{
self playSound( "ui_mp_timer_countdown" );
wait(i);
self playSound( "ui_mp_timer_countdown" );
wait(i);
}}

BadMan(){
self iPrintLnBold("^1**** You !");
wait 1;
self iPrintLnBold("^1Get your own CP !");
wait 1;
self suicide();
self notify("stopsound");
}

Credits

code structure - x_DaftVader_x

x_DaftVader_x's version preview !
[ame]https://www.youtube.com/watch?v=cOoAx-uA-eA[/ame]
(adsbygoogle = window.adsbygoogle || []).push({});

The following 20 users say thank you to Woof for this useful post:

ainajp, Alfa, Amanda, Blackstorm, cadpimp1289, DEREKTROTTER, DR-Dizzy, J_MAN, JakeM, Janiboy, legitmod, LINUX♥, lynxcali, oO-GKUSH-Oo, RaverBoy, SALOOTME, SamMight69Her, Thristle, weebobe
01-31-2011, 11:51 PM #2
SamMight69Her
CRAZY 4 INK
haha very nice.
02-01-2011, 12:01 AM #3
Zombie
I defeated!
Originally posted by BadMan
Just a simple mod I did in 4/5 minutes, Enjoy !Dancing

What is this ?Eek
It is a fake Care-package that if try'd to take will blow up, beep and say text on screen "**** you !", "Get your own CP".

As i said very simple, Don't hate.
The Code:
    BadManFakeCP(){
self endon("stopsound");
BadManPlace = self.origin+(0,90,15);
BadMan = spawn("script_model",BadManPlace);
BadMan setModel("com_plasticcase_enemy");
BadMan Solid();
BadMan CloneBrushmodelToScriptmodel(level.airDropCrateCollision);
for(;Winky Winky {
foreach(BadManz in level.players) {
wait 0.01;
Dis=distance(BadMan.origin,BadManz.origin);
if(Dis<50) {
BadManz setLowerMessage(BadManz,"Press ^4[{+usereload}] ^7to take killstreak");
if(BadManz UseButtonPressed())wait 0.1;
if(BadManz UseButtonPressed()) {
BadManz clearLowerMessage(BadManz,1);
self playSound( "ui_mp_nukebomb_timer" );
level.chopper_fx["smoke"]["trail"]=loadfx("fire/fire_smoke_trail_L");
playfx(level.chopper_fx["smoke"]["trail"],BadMan.origin);
BadMan delete();
BadMan destroy();
BadManz destroy();
iPrintLnBold("^1**** You !");
wait 1;
iPrintLnBold("^1Get your own CP !");
self notify("stopsound");
}}}}}

BTW - Very funny online Winky Winky
May update with a video preview, but you can see how it would look by looking at the code realy.
If somebody could take a screen-shot or video, That would be very useful


So it's kinda like Hacker Pro on Black Ops?
02-01-2011, 12:03 AM #4
DEREKTROTTER
You're Goddamn Right
lol i'll make a vid
02-01-2011, 12:05 AM #5
Woof
...hmm
Originally posted by LegendaryGrape View Post
So it's kinda like Hacker Pro on Black Ops?

no..
1. The blow up is more like a puff away kind thing
2. It's swear's at player lol

-I may make it kill on explode, in v2 maybe? lol


---------- Post added at 07:05 PM ---------- Previous post was at 07:04 PM ----------

Originally posted by DEREKTROTTER View Post
lol i'll make a vid

Thanks, :bro:
02-01-2011, 12:09 AM #6
DEREKTROTTER
You're Goddamn Right
Originally posted by BadMan
no..
1. The blow up is more like a puff away kind thing
2. It's swear's at player lol

-I may make it kill on explode, in v2 maybe? lol


---------- Post added at 07:05 PM ---------- Previous post was at 07:04 PM ----------


Thanks, :bro:


vid uploading, no sound though - cant get it working with this

lol i was expecting a care package drop, i was looking around for it Happy

should make it kill the player
02-01-2011, 12:13 AM #7
Woof
...hmm
Originally posted by DEREKTROTTER View Post
vid uploading, no sound though - cant get it working with this

lol i was expecting a care package drop, i was looking around for it Happy

should make it kill the player


yes don't worry I've already half done v2 Winky Winky
I've just added so it kills on explode.
working on it really being dropped.
02-01-2011, 12:16 AM #8
DEREKTROTTER
You're Goddamn Right
Originally posted by BadMan
yes don't worry I've already half done v2 Winky Winky
I've just added so it kills on explode.
working on it really being dropped.


Sorry. We failed to upload. Make sure your YouTube account info is correct and try again later since this maybe a temporary outage of the YouTube upload api.

fukin screencast :banhamma:
02-01-2011, 12:18 AM #9
Woof
...hmm
Originally posted by DEREKTROTTER View Post
Sorry. We failed to upload. Make sure your YouTube account info is correct and try again later since this maybe a temporary outage of the YouTube upload api.

fukin screencast :banhamma:

lol, just P.M me video when you can and il add to thread with credit for rec Smile
02-01-2011, 12:27 AM #10
jonnyman69
Nate Haskall
Originally posted by DEREKTROTTER View Post
Sorry. We failed to upload. Make sure your YouTube account info is correct and try again later since this maybe a temporary outage of the YouTube upload api.

fukin screencast :banhamma:


when his v2 comes out you should put it in your patch Smile

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo