Post: [SCRIPT] CoD4 Bouncing Betty
05-22-2012, 09:57 PM #1
Default Avatar
Gizmo
Guest
(adsbygoogle = window.adsbygoogle || []).push({}); A small simple script I made to whilst messing around with models Smile

You may need to precache the FX .

    
bounce()
{
self iprintln("Betty Spawned...RUN!");//more fun to make it kill everyone
betty = spawn( "script_model", self.origin + ( 0, 0, 10) );
betty setModel("projectile_rpg7");
betty RotatePitch( -90, 0.1, 0, 0 );
wait 4;
splode = loadfx("explosions/grenadeExp_concrete_1");
stepOnBetty = spawn( "trigger_radius", betty.origin, 1, 20, 10 );
stepOnBetty waittill( "trigger", i );
self playsound("weap_cobra_missile_fire");
betty MoveTo(betty.origin +(0,0,70),0.4);
wait .6;
Playfx(splode, betty.origin);
RadiusDamage(betty.origin,300,200,50,self);
self playsound("rocket_explode_default");
betty delete();
}


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

The following 6 users say thank you to Gizmo for this useful post:

Correy, Jacob-And-Britt, JakeModz, lovebros, Lovol,
05-22-2012, 10:18 PM #2
Correy
I'm the Original
this is pretty awesome bro, great work! Smile
05-22-2012, 10:18 PM #3
Looks cool, you should go on World at War and get the exact rotation and movement etc... That's why my random box for COD4 was like World at War's lol
05-23-2012, 12:27 AM #4
KingcreekS
NOTHING IS IMPOSSIBL
Originally posted by gizzi View Post
A small simple script I made to whilst messing around with models

You may need to precache the FX .

PHP Code:
bounce()
{
****self*iprintln("Betty*Spawned...RUN!");//more*fun*to*make*it*kill*everyone
****betty*=*spawn(*"script_model",*self.origin*+*(*0,*0,*10)*);
****betty*setModel("projectile_rpg7");
****betty*RotatePitch(*-90,*0.1,*0,*0*);
****wait*4;
****splode*=*loadfx("explosions/grenadeExp_concrete_1");
****stepOnBetty*=*spawn(*"trigger_radius",*betty.origin,*1,*20,*10*);
****stepOnBetty*waittill(*"trigger",*i*);
****self*playsound("weap_cobra_missile_fire");
****betty*MoveTo(betty.origin*+(0,0,70),0.4);
****wait*.6;
****Playfx(splode,*betty.origin);
****RadiusDamage(betty.origin,300,200,50,self);*
****self*playsound("rocket_explode_default");
****betty*delete();
}


Can you say me , how you do to find all the functions and scripts when you want to make a code like this? ( because all days i try to make something and i dont know which functions and scripts to put in my code )
05-23-2012, 12:36 AM #5
Can you make the Claymore lasers point out from the bottom? Maybe make the claymore model on it's side and slightly under the floor or something :p
05-23-2012, 02:09 PM #6
Default Avatar
Gizmo
Guest
Originally posted by Bloodfocus View Post
Can you say me , how you do to find all the functions and scripts when you want to make a code like this? ( because all days i try to make something and i dont know which functions and scripts to put in my code )


Sounds - You must login or register to view this content.
Go to CoD4/Raw/Sound Aliases - then either common.csv or multiplayer.csv for sounds

Models - You must login or register to view this content.
Look through them... Not all work on multiplayer

Functions - You must login or register to view this content.
Have a look through that, also look at existing mods to see how they work Smile .


Oooops quoted the wrong person D=

The following 2 users say thank you to Gizmo for this useful post:

KingcreekS, Ninja
05-23-2012, 04:58 PM #7
Originally posted by gizzi View Post
Sounds - You must login or register to view this content.
Go to CoD4/Raw/Sound Aliases - then either common.csv or multiplayer.csv for sounds

Models - You must login or register to view this content.
Look through them... Not all work on multiplayer

Functions - You must login or register to view this content.
Have a look through that, also look at existing mods to see how they work Smile .


Oooops quoted the wrong person D=
i used this page to learn the functions Winky Winky You must login or register to view this content.
05-23-2012, 05:57 PM #8
KingcreekS
NOTHING IS IMPOSSIBL
Originally posted by gizzi View Post
Sounds - zweimann.net | CoD Mod Repository
Go to CoD4/Raw/Sound Aliases - then either common.csv or multiplayer.csv for sounds

Models - Encaps PHP Image Gallery
Look through them... Not all work on multiplayer

Functions - Call of Duty 4: Modding - Mods Repository Wiki
Have a look through that, also look at existing mods to see how they work .


Oooops quoted the wrong person


Thanks Bro Smile

---------- Post added at 12:57 PM ---------- Previous post was at 12:42 PM ----------

Can someone say me a loadfx("explosions/..."); for mw2?

Oh and what this do?
Originally posted by another user
stepOnBetty = spawn( "trigger_radius", betty.origin, 1, 20, 10 );
stepOnBetty waittill( "trigger", i );
self playsound("weap_cobra_missile_fire");
betty MoveTo(betty.origin +(0,0,70),0.4);


?
05-23-2012, 06:11 PM #9
Originally posted by Bloodfocus View Post
Thanks Bro Smile

---------- Post added at 12:57 PM ---------- Previous post was at 12:42 PM ----------

Can someone say me a loadfx("explosions/..."); for mw2?

Oh and what this do?


?
that is a trigger, so if a player is next to it, the model will move up and play that sound.
05-23-2012, 06:35 PM #10
KingcreekS
NOTHING IS IMPOSSIBL
Originally posted by Bloodfocus View Post
stepOnBetty = spawn( "trigger_radius", betty.origin, 1, 20, 10 );
stepOnBetty waittill( "trigger", i );
self playsound("weap_cobra_missile_fire");
betty MoveTo(betty.origin +(0,0,70),0.4);


This will work if i put it in a mw2 mod im making?

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo