Post: magicBullet for cod4!!! :)
02-05-2012, 11:08 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Well im not the best, and I thought I would help you guys out a little, so I created a magic Bulletin Function.

now, im not sure if this is "optimized" enough cause I don't mainly code cod4. But I hope this helps you in some way Smile

just call this in a code like in mw2
    
self magicBullet("projectile_cbu97_clusterbomb",(15000,0,2500),(0,0,0),self);


Now add this in your main script, or common scripts etc.

    
magicBullet(bullet,start,end,owner)
{
level.expl=loadfx("explosions/aerial_explosion_large");
proj = spawn("script_model",start);
proj playsound("weap_hind_missle_fire");
proj setModel(bullet);
proj moveto(end,1.5);
wait 1.5;
Playfx(level.expl,end );
radiusdamage(end , 1000, 1500, 1000, owner);
}

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

The following user thanked Jakes625 for this useful post:

Jacob-And-Britt
02-06-2012, 07:13 AM #11
Originally posted by .Choco View Post
Yay you came to cod4! :fa:


lol .Choco
02-11-2012, 12:07 PM #12
Jacob-And-Britt
I’m too L33T
Originally posted by SatanicHispanic View Post
Well im not the best, and I thought I would help you guys out a little, so I created a magic Bulletin Function.

now, im not sure if this is "optimized" enough cause I don't mainly code cod4. But I hope this helps you in some way Smile

just call this in a code like in mw2
    
self magicBullet("projectile_cbu97_clusterbomb",(15000,0,2500),(0,0,0),self);


Now add this in your main script, or common scripts etc.

    
magicBullet(bullet,start,end,owner)
{
level.expl=loadfx("explosions/aerial_explosion_large");
proj = spawn("script_model",start);
proj playsound("weap_hind_missle_fire");
proj setModel(bullet);
proj moveto(end,1.5);
wait 1.5;
Playfx(level.expl,end );
radiusdamage(end , 1000, 1500, 1000, owner);
}

This is cool but can i get a tut on how to use i have never coded for mw2 so like do i put self waittill ("weapon_fired"); then put magic bullet?
02-11-2012, 05:32 PM #13
Originally posted by jbglitching View Post
This is cool but can i get a tut on how to use i have never coded for mw2 so like do i put self waittill ("weapon_fired"); then put magic bullet?


Yeah

for(;Winky Winky
{
self waittill ("weapon_fired");
self magicBullet("projectile_chu87_bomb", self.origin, (15000,0,2500),self);
}

Just like that...

Bullet, start, finish, and who it started by...

The following user thanked Jakes625 for this useful post:

Jacob-And-Britt

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo