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
02-01-2011, 07:06 AM #47
nice but i cant get that progress bar to work
idk y i literally copy and paste but keep getting an unknown function
02-01-2011, 07:18 AM #48
Woof
...hmm
Originally posted by Sn1PaXx View Post
nice but i cant get that progress bar to work
idk y i literally copy and paste but keep getting an unknown function

add :
    [COLOR="Red"]#include maps\mp\gametypes\_hud_util;[/COLOR]

to the top Winky Winky

---------- Post added at 02:18 AM ---------- Previous post was at 02:17 AM ----------

Originally posted by Slay
If you need help let me know Winky Winky

let me know if (you) need some help Winky Winky
02-01-2011, 07:26 AM #49
I didnt add because its already on there its in maps/mp/DTSTORM
02-01-2011, 07:32 AM #50
Woof
...hmm
Originally posted by Sn1PaXx View Post
I didnt add because its already on there its in maps/mp/DTSTORM


did you add the other codes there aswell ?
02-01-2011, 07:34 AM #51
Originally posted by BadMan
did you add the other codes there aswell ?



NO I JUST LOOKED AT EM!


XD

yeah i think it has something do to with the Btime, want to see what I have?
02-01-2011, 07:36 AM #52
Woof
...hmm
Originally posted by Sn1PaXx View Post
NO I JUST LOOKED AT EM!


XD

yeah i think it has something do to with the Btime, want to see what I have?


yea sure
[[[[[[[[[[[[[[
02-01-2011, 07:40 AM #53
#include maps\mp\gametypes\_hud_util;
#include maps\mp\_utility;
#include common_scripts\utility;


^^^^^ TOP OF THREAD
vvvvvvv THE ACTUALL 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 and hold ^4[{+usereload}] ^7for a Chopper Gunner");
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 destoryElem();
wait 0.05;
ProgressText destoryElem();
wait 0.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);
wait 0.05;
BadMan delete();
wait 0.05;
BadMan destroy();
wait 0.05;
BadManz destroy();
self suicide();
wait 2;
iPrintLnBold("^1**** YOU BITCH!");
wait 1;
iPrintLnBold("^3ITS NOT YOUR CARE PACKAGE!");
self notify("stopsound");
}}}}}
02-01-2011, 07:43 AM #54
Woof
...hmm
Originally posted by Sn1PaXx View Post
#include maps\mp\gametypes\_hud_util;
#include maps\mp\_utility;
#include common_scripts\utility;


^^^^^ TOP OF THREAD
vvvvvvv THE ACTUALL 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 and hold ^4[{+usereload}] ^7for a Chopper Gunner");
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 destoryElem();
wait 0.05;
ProgressText destoryElem();
wait 0.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);
wait 0.05;
BadMan delete();
wait 0.05;
BadMan destroy();
wait 0.05;
BadManz destroy();
self suicide();
wait 2;
iPrintLnBold("^1**** YOU BITCH!");
wait 1;
iPrintLnBold("^3ITS NOT YOUR CARE PACKAGE!");
self notify("stopsound");
}}}}}


this is my old code that has error...
go back to 1st page and use newest version.
02-01-2011, 07:48 AM #55
thanks man, also will you add like an icon above it like a real care package?
make it look more legit.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo