Affiliates
image
image
image
image
---------------------
image
Navigation :: The Cut Throats
FAQ :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in
Log in
Username:    Password:      Log me on automatically each visit    
Adding Rain

 
Post new topic   Reply to topic    The Cut Throats Forum Index -> BFPirates
View previous topic :: View next topic  
Author Message
Messy Recipe
El Gran Capitán
<b>El Gran Capitán</b>


Joined: 13 Mar 2005
Location: Inter Veritates
PostPosted: Fri Jan 16, 2009 7:10 pm 
Post subject: Adding Rain
Top Reply with quote

The Rain object is a small block that spawns the rain effect. To fill the map with this, use the objects RainStorm1024 or RainStorm2048, depending on the size of the map. Place the object in the center of the map.

To do so, in StaticObjects.con, add one of the following:

Code:
Object.create RainStorm1024
Object.absolutePosition 512/40/512
Object.rotation 0.00/0.00/0.00


Code:
Object.create RainStorm2048
Object.absolutePosition 1024/40/1024
Object.rotation 0.00/0.00/0.00


Note that these are placed at height of 40 -- this is because the rain falls for about this distance. If portions of the map allow you to climb higher than this height and therefore above the rain, add another block at height 80, and so on my multiples of 40 until you can stand at the map's highest point and still have the rain spawn high enough above you.

For example, BFP_Scurvy_Cove has this, because the highest towers allow you to go above the first RainStorm2048 block:

Code:
Object.create RainStorm2048
Object.absolutePosition 1024/40/1024
Object.rotation 0.00/0.00/0.00

Object.create RainStorm2048
Object.absolutePosition 1024/80/1024
Object.rotation 0.00/0.00/0.00

_________________
ABC News wrote:
Birds can disable planes, Ostrom said, by flying into the engines and shutting them down.
Back to top
View user's profile Send private message Send e-mail
Messy Recipe
El Gran Capitán
<b>El Gran Capitán</b>


Joined: 13 Mar 2005
Location: Inter Veritates
PostPosted: Fri Jan 16, 2009 7:15 pm 
Post subject:
Top Reply with quote

If you wish to fill smaller portions of the map with rain, you can also use the smaller "building blocks" used to create the larger RainStorm1024 or RainStorm2048 objects.

Here are the contents of Objects.rfa/Rainstorm/Objects.con. The smallest rain-creator able to be placed is simply called "Rain," a small block of several raindrop-creators.


Code:
rem Bundles by USAF 777, so it doesn't take 81 separate objects for the smallest map or the 1024 object.
rem RainStorm1024 fills 1024x1024 size map when placed in center, RainStorm2048 for 2048x2048 maps.

rem -------------------------------------
ObjectTemplate.create Bundle RainStorm2048
rem -------------------------------------
ObjectTemplate.addTemplate RainStorm1024
ObjectTemplate.setPosition 562.5/0/562.5
ObjectTemplate.addTemplate RainStorm1024
ObjectTemplate.setPosition -562.5/0/-562.5
ObjectTemplate.addTemplate RainStorm1024
ObjectTemplate.setPosition 562.5/0/-562.5
ObjectTemplate.addTemplate RainStorm1024
ObjectTemplate.setPosition -562.5/0/562.5

rem -------------------------------------
ObjectTemplate.create Bundle RainStorm1024
rem -------------------------------------
ObjectTemplate.addTemplate RainRow
ObjectTemplate.setPosition 0/0/500
ObjectTemplate.addTemplate RainRow
ObjectTemplate.setPosition 0/0/375
ObjectTemplate.addTemplate RainRow
ObjectTemplate.setPosition 0/0/250
ObjectTemplate.addTemplate RainRow
ObjectTemplate.setPosition 0/0/125
ObjectTemplate.addTemplate RainRow
ObjectTemplate.setPosition 0/0/0
ObjectTemplate.addTemplate RainRow
ObjectTemplate.setPosition 0/0/-125
ObjectTemplate.addTemplate RainRow
ObjectTemplate.setPosition 0/0/-250
ObjectTemplate.addTemplate RainRow
ObjectTemplate.setPosition 0/0/-375
ObjectTemplate.addTemplate RainRow
ObjectTemplate.setPosition 0/0/-500

rem -------------------------------------
ObjectTemplate.create Bundle RainRow
rem -------------------------------------
ObjectTemplate.addTemplate Rain
ObjectTemplate.setPosition 500/0/0
ObjectTemplate.addTemplate Rain
ObjectTemplate.setPosition 375/0/0
ObjectTemplate.addTemplate Rain
ObjectTemplate.setPosition 250/0/0
ObjectTemplate.addTemplate Rain
ObjectTemplate.setPosition 125/0/0
ObjectTemplate.addTemplate Rain
ObjectTemplate.setPosition 0/0/0
ObjectTemplate.addTemplate Rain
ObjectTemplate.setPosition -125/0/0
ObjectTemplate.addTemplate Rain
ObjectTemplate.setPosition -250/0/0
ObjectTemplate.addTemplate Rain
ObjectTemplate.setPosition -375/0/0
ObjectTemplate.addTemplate Rain
ObjectTemplate.setPosition -500/0/0


It basically lines up enough Rain objects into a row to cover the 1024x1024 map in one direction, then lines up the same amount of these rows next to each other. Then the 2048x2048 sized object is just four of the smaller 1024x1024 blocks arranged corner-to-corner.
_________________
ABC News wrote:
Birds can disable planes, Ostrom said, by flying into the engines and shutting them down.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    The Cut Throats Forum Index -> BFPirates All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB
Shoutbox
Messy Recipe:  deleted all the last couple years worth of bots & managed to preserve the two real people that have posted since then xD

so many DELETED spam posts now tho that I think I'll need to automate cleaning those moreso than i already have

Messy Recipe:  sry about the bots :( been busy & havent gotten round to doing the usual cleanup

need to prolly stick this behind cloudflare or something

Drunken Monkey:  doing well, been building a hobby ranch of my own, got married, no kids, only dogs, sheep and a horse

Comradekil:  so anyway, i wonder how everyone's lives all progressed.. who's in jail? who's grandparents now.. ha life
Drunken Monkey:  and yes....i do miss 1942 aswell, i honestly think it is what drove me to get a M1 garand in real live, and is still my most used rifle
Drunken Monkey:  bots are getting silly
Comradekil:  Sup dudes
Messy Recipe:  the BAR-1918 always felt so good in that game
Messy Recipe:  I miss vanilla 1942 as much as Pirates... need to see if the Origin version (or even original) still has anyone playing sometime
Stealth:  Hello all! Head to the lounge and post a memory!
Stealth:  I saw a BF1942 fraps video of a guy jumping out of a plane and RPG'd another plane. I immediately came here for nostalgia. Miss you all.
Messy Recipe:  I've not tried Sea of Thieves... kinda was bummed to learn its servers don't allow many simultaneous players. gimme 32v32 galleon fights
Messy Recipe:  oh gosh I really need to automate the spambot removal instead of making myself do it by hand don't I -.-
Drunken Monkey:  merry Christmas you lot
[BB]Piccolo:  Anybody playing Sea of Thieves?
[BB]Piccolo:  I'm amazed I actually still knew my login. We Black Buccaneers certainly had a special relationship with you Cut Throats. Nothing like a fierce rivalry to make the battlefield exciting, eh? :)

Username:
Password:
Auto-Login