MODSonline Subscriptions
View in iTunes
Please help us to raise in the ranks of podcasting and subscribe to our itunes feed using the link above.
The next MODSonair show will air LIVE on:
03/21/2010 12:03 EDT

Time remaining:
We Dontated to PixelEquity
"Mods can significantly outshine and/or continue the success of the original game even when it is dated." 1
 
Site News   |   Aggregated News   |   Forums   |   Tutorials   |   Downloads   |   Projects   |   Weblinks
Latest Forum Threads 
CoD4 MP Mapping.. Posts: (5) Views: (76) by infinet
CoDWW MP Mapping.. Posts: (1) Views: (15) by [ZCT]CoDMapper
CoD4 MP Mapping.. Posts: (29) Views: (477) by {UST}Hogan
CoD4 General.. Posts: (82) Views: (102) by techno2sl
General Gaming.. Posts: (1) Views: (13) by Cerebral_Assassin
General Gaming.. Posts: (1) Views: (10) by Cerebral_Assassin
CoD2 MP Mapping.. Posts: (8) Views: (76) by PanZerReBorN
CoDWW Map + Mod .. Posts: (35) Views: (317) by dundy
CoD2 MP Mapping.. Posts: (4) Views: (55) by liltc64
CoD4 MP Mapping.. Posts: (10) Views: (148) by Infern4ll
Back to Home Page
MODSCON 2010 L4D2 Contest
Art of War Central
Register/Login to Add a Tutorial
Tutorials
CoD Mapping
ratings:
Awful Rating
Poor Rating
Average Rating
Good Rating
Excellent Rating
Adding a bobbing boat to your map
Versions: You must be logged in to view history.
This tutorial by br3nt shows you how to add a bobbing boat.

---=== HOW TO MAKE A BOBBING BOAT ===---

---=== BY: BR3NT ===---



1/First Create A Small Test Map Put Some Water In it Somewhere. I`ve Made a small Pool Added Some Water.
You Cant See It....But Its There....

2/Creat a Script_model and add these parameters:

KEY:model
VALUE:xmodel/ship_supplyboat

KEY:targetname
VALUE:boat

Thats it Compile Your Map.

Reference Pics Below:
scripmodel.jpg


Now for the Script...

In you main() section of your script plave this line:

thread boatbobbing();

Then Place this Function at the Bottom of Your Script:

boatbobbing()
{
boat = getent("boat","targetname"); // Get the name of the script_model
wait (randomfloat (1.5)); // Generate a random Number of Seconds Between Bobbings
org = (-64, 96, 72); // Define Origin or Location of Your Boat/script_model
timer = 1; // Speed of the Bobbing - Higer Number Slower Bobbing
while (1)
{
boat moveto (org + (0,0,2), timer, timer*0.5, timer*0.5); // 2 is the number of units to go Above Original Location
wait (timer);
boat moveto (org + (0,0,-2), timer, timer*0.5, timer*0.5); // 2 is the number of units to go Below Original Location
wait (timer);
}
}

Thats it..Time to See If It Works.....



Remember This Function Can Also Be Used By Making A Script_Brushmodel of a Plank or Anything You Can Build Basically.

Isnt Scripting FUN.........