Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Sat Apr 20, 2024 11:05 am
All times are UTC + 0
Rain/Weather Effects
Moderators: Global Moderators
Post new topic   Reply to topic Page 1 of 1 [4 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
Kitsune86
Vehicle Driver


Joined: 03 Oct 2008

PostPosted: Thu Aug 23, 2012 3:04 am    Post subject:  Rain/Weather Effects Reply with quote  Mark this post and the followings unread


Back to top
View user's profile Send private message
ravage
Soldier


Joined: 16 Jul 2005

PostPosted: Thu Aug 23, 2012 4:32 am    Post subject: Reply with quote  Mark this post and the followings unread

is it possable to add StartingUnit* to FactionCivilian in PlayerTemplate.ini? if we can, then a ParticleSystem dummyobject can be added to anymap without using buildmap.bat

Back to top
View user's profile Send private message
Ju-Jin
Cyborg Firebomber


Joined: 23 Mar 2009
Location: Germany

PostPosted: Thu Aug 23, 2012 10:02 am    Post subject: Reply with quote  Mark this post and the followings unread

You can compile the map like in the image below, note MyMap is the map name.
In the overrides.xml add: (you have to replace '(' and ')' with '<' and '>' respectively because of the forum)
Code:
   (Weather id="Weather")
      (Snow
         SnowTexture = "FXRainDrop"
         SnowFrequencyScaleX = "0"
         SnowFrequencyScaleY = "0"
         SnowAmplitude = "0"
         SnowPointSize = "1.0"
         SnowMinPointSize = "60.0"
         SnowMaxPointSize = "120.0"
         SnowQuadSize = "8.0"
         SnowBoxHeight = "300.0"
         SnowSpacing = "12.0"
         SnowSpeed = "100.0"
         SnowPointSprites = "false"
            
         SnowEnabled = "true"
         IsSnowing = "false"
         NumberTiles = "4" /)
      (Rain
         RainTexture = "FXRainDrop"
         IsRaining = "true"
         NumRaindropsPerBox = "1024"
            RainBoxWidth =  "1000.0"
            RainBoxLength = "1000.0"
            RainBoxHeight = "300.0"
            MinWidth = "1"
            MaxWidth = "4"
            MinHeight = "25.0"
            MaxHeight = "100.0"
            MinSpeed = "250.0"
            MaxSpeed = "450.0"
            MinAlpha = ".2"
            MaxAlpha = ".5"
            WindStrength = "1.0" /)
      (Lightning
         LightningEnabled = "true"
         LightningDuration = "30"
         LightningChance = "0.1")
         (LightningFactor
            Type = "UNIFORM"
            Low = "0.5"
            High = "3.0" /)
      (/Lightning)
      (Spell
         SpellEnabled = "true"
         SpellDuration = "200" /)
      (Cloud)
         (CloudTextureSize x="660.0" y="660.0" /)
         (CloudOffsetPerSecond x="-.03" y="-.02" /)
      (/Cloud)
      (WeatherData id="RAINY" HasLightning="true" /)
      (WeatherData id="CLOUDYRAINY" HasLightning="true" /)
      (WeatherData id="SUNNY" HasLightning="false" /)
      (WeatherData id="CLOUDY" HasLightning="false" /)
   (/Weather)



map.png
 Description:
 Filesize:  25.14 KB
 Viewed:  2091 Time(s)

map.png



_________________

Back to top
View user's profile Send private message Skype Account
Kitsune86
Vehicle Driver


Joined: 03 Oct 2008

PostPosted: Thu Aug 23, 2012 4:41 pm    Post subject: Reply with quote  Mark this post and the followings unread

Thank you for the code, Ju-Jin. I've been trying to recompile an existing map just to see if I can add in the rain effect, and it crashes every time, and oddly deletes the source files when its done. Is it possible to add rain to an existing map, or do I need to try to start from scratch?

I looked through some tutorials but nothing I found seemed to talk about the buildmap.bat.

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [4 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
Quick Reply
Username:


If you are visually impaired or cannot otherwise answer the challenges below please contact the Administrator for help.


Write only two of the following words separated by a sharp: Brotherhood, unity, peace! 

 
You can post new topics in this forum
You can 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
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © phpBB Group

[ Time: 0.1729s ][ Queries: 14 (0.0104s) ][ Debug on ]