Raised This Month: $222 Target: $400
 55% 

New Style Ambience


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff       
rrduna
Member
Join Date: Nov 2010
Location: Brazil
Old 02-07-2011 , 12:10   New Style Ambience
Reply With Quote #1

New Style Ambience


New Style Ambience v2.2
Copyright 2011, Duna. All rights reserved.

D
escription:
The functions published in this plugin, totally change the style of environment normal cs.
By ambience.ini file you can change the sky, the light of the map and add weather effects like rain and snow.


Enjoy!
Attached Files
File Type: sma Get Plugin or Get Source (new_style_ambience.sma - 889 views - 3.6 KB)
File Type: ini ambience.ini (390 Bytes, 380 views)

Last edited by rrduna; 03-04-2014 at 09:38.
rrduna is offline
Old 02-07-2011, 12:13
rrduna
This message has been deleted by rrduna.
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-07-2011 , 12:19   Re: New Style Ambience
Reply With Quote #2

Removed .amxx file, you are not allowed to attach such files, web compiler creates them when you hit the "Get Plugin" link.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
rrduna
Member
Join Date: Nov 2010
Location: Brazil
Old 02-07-2011 , 12:22   Re: New Style Ambience
Reply With Quote #3

Sorry! I'm kind of amateur

Last edited by rrduna; 04-30-2020 at 17:19.
rrduna is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-07-2011 , 12:36   Re: New Style Ambience
Reply With Quote #4

Yes you can remove, hit the edit button, hit the "Go Advanced" button, then manage attachments.


Your plugin is redundant and has lot of chances to be unapproved.

Also, you should know that you can't spawn snow and rain at the same time.
Rain supercede snow, as you can see here :

Code:
void CBasePlayer::SendWeatherInfo()
{
    int mode;

    if ( UTIL_FindEntityByClassname( NULL, "env_rain" ) || UTIL_FindEntityByClassname( NULL, "func_rain" ) )
    {
        mode = 1;
    }
    else if ( UTIL_FindEntityByClassname( NULL, "env_snow" ) || UTIL_FindEntityByClassname( NULL, "func_snow" ) )
    {
        mode = 2;
    }

    if ( mode )
    {
        MESSAGE_BEGIN( MSG_ONE, gmsgReceiveW, pev );
            WRITE_BYTE( mode );
        MESSAGE_END();
    }
}
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 02-07-2011 at 12:41.
ConnorMcLeod is offline
rrduna
Member
Join Date: Nov 2010
Location: Brazil
Old 02-07-2011 , 12:38   Re: New Style Ambience
Reply With Quote #5

okay!
rrduna is offline
rrduna
Member
Join Date: Nov 2010
Location: Brazil
Old 02-07-2011 , 12:47   Re: New Style Ambience
Reply With Quote #6

But rain and snow are not produced together.
Both are activated by file ambience.ini therefore
if an option is disabled, the other can be activated without problem.
rrduna is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-07-2011 , 13:17   Re: New Style Ambience
Reply With Quote #7

Your plugin try to enable both of them, if both of them are enabled in the file ;)
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Old 02-07-2011, 13:21
rrduna
This message has been deleted by rrduna.
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-07-2011 , 13:22   Re: New Style Ambience
Reply With Quote #8

plugin_modules() is also not needed, modules will be autoloaded if need.
__________________
Arkshine is offline
Old 02-07-2011, 13:46
rrduna
This message has been deleted by rrduna.
ANTICHRISTUS
kingdom of weird stuff
Join Date: Jun 2010
Location: My kingdom is not in thi
Old 02-07-2011 , 16:21   Re: New Style Ambience
Reply With Quote #9

nice plugin, but may be better if you can add some ambiance sounds like in zombie plague.
__________________
ANTICHRISTUS is offline
Destro-
Veteran Member
Join Date: Jun 2010
Location: $me->location();
Old 02-07-2011 , 16:54   Re: New Style Ambience
Reply With Quote #10

no credits for me?
__________________
Destro- is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:34.


Powered by vBulletin®
Copyright ©2000 - 2021, vBulletin Solutions, Inc.
Theme made by Freecode