Post: Cod4 CarePackages That Are Solid + Code
02-24-2011, 04:38 PM #1
nay1995
The Master
(adsbygoogle = window.adsbygoogle || []).push({}); This is from a Se7ensins member DJQUICKSILVER

So i just brought it to the NGU community

All credit goes to DJQUICKSILVER

I know a lot of people want to know how to make bunkers and skybases like the ones in MW2 so i thought I would give a shot at coding solid models.
Unfortunately Call of Duty 4 doesn't support the ability to turn models solid so I have had to create a new function that allows you to create a barrier.

level.solid = spawn( "trigger_radius", ( 0, 0, 0 ), 0, 65, 30 ); //spawns the barrier
level.solid.origin = (0,0,0); //sets the location
level.solid.angles = (0, 90, 0); //sets the angles
level.solid setContents( 1 ); //sets the contents of the barrier

Example: stairway to heaven from MW2

self thread stairz(70); //add to onPlayerSpawned
self thread stair(70); //add to onPlayerSpawned

stairz(size)
{
stairz = [];
stairPos = self.origin+(100, 0, 0);
for(i=0;i<=size;i++)
{
newPos = (stairPos + ((58 * i / 2 ), 0, (17 * i / 2)));
stairz = spawn("script_model", newPos);
stairz.angles = (0, 90, 0);
wait .1;
stairz setModel( "com_plasticcase_green_big" );
}
}

stair(size)
{
stairz = [];
stairPos = self.origin+(100, 0, 0);
for(i=0;i<=size;i++)
{
newPos = (stairPos + ((58 * i / 2 ), 0, (17 * i / 2)));
level.packo = spawn( "trigger_radius", ( 0, 0, 0 ), 0, 65, 30 );
level.packo.origin = newpos;
level.packo.angles = (0, 90, 0);
level.packo setContents( 1 );
}
}
(adsbygoogle = window.adsbygoogle || []).push({});
02-24-2011, 04:44 PM #2
MeowDev
Power to the Premium
Nice code, would've loved this to be bypass. Is it the same as the mw2 carepackage?
02-24-2011, 04:52 PM #3
!x-MONKEY-BOMB!
League Champion
Originally posted by Telepot View Post
Nice code, would've loved this to be bypass. Is it the same as the mw2 carepackage?


I believe its the hq with out the laptop Smile
02-24-2011, 05:01 PM #4
oX-matto-Xo
#1 Chaos MW3
This code isnt really a full solid carepackage. Its just a barrier covering the top of the HQ Box. This is usefull if you want to block of places on the map.
02-24-2011, 06:23 PM #5
Battler624
I’m too L33T
saw it before and btw its really extremely glitchy
02-24-2011, 07:41 PM #6
oX-matto-Xo
#1 Chaos MW3
Originally posted by Battler624 View Post
saw it before and btw its really extremely glitchy


Very glitchy. :evil:
02-24-2011, 08:51 PM #7
Battler624
I’m too L33T
Originally posted by Xo View Post
Very glitchy. :evil:


yup glichy to the end :evil: maniac
03-01-2011, 08:10 AM #8
Vultra
Can’t trickshot me!
Originally posted by Xo View Post
Very glitchy. :evil:


every time i look at u name i look down and look at that sexy girl

The following user thanked Vultra for this useful post:

tylerallmighty
03-01-2011, 08:54 AM #9
little_legz
SleepinIsCheatin
My care package box :p I spent ages looking for that model and trying to get some collision so I just gave up on it haha.
03-01-2011, 09:05 AM #10
jossy456
Little One
Originally posted by kane View Post
my care package box :p i spent ages looking for that model and trying to get some collision so i just gave up on it haha.


omg my name's kaneSmileSmile
+reppp!!

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo