Raised This Month: $51 Target: $400
 12% 

Timer v16 - includes: Timer, Day/Night, Weather


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   General Purpose        Approver:   Johnny got his gun (102)
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 07-17-2004 , 22:35   Timer v16 - includes: Timer, Day/Night, Weather
Reply With Quote #1

This plugin offers a wide array of features to aid in the simulation of a real world enviroment. I divide them into three basic area's:

General:

Update: Just added a cvar to disable parts of the hud bar

To Do:
Add Fog
Add Hail
Add Wind
Inside but looking outside effects

CVARS
sv_timer_flags (abc) - Enable specific parts of Timer v16.
a = Timer
b = Day/Night
c = Weather

Timer:
Timer creates a fake data/system, and displays it.

It includes:
A full date system (minutes to years) + seasons
Temperature system w/ sloping temperature system
AM/PM time or military time
Defaults to current time outside game when no current time is made
Saves time to a quick and effecient vault system

Quick turn off ( Just remove the A from sv_timer_flags )

Updated:
Cvar added for taking out the hud bar
Cvar added for updating hud bar
Command made for reset time to current outside time

Commands:
change_time <minutes> <hours> <AM/PM> <days> <months> <years>
default_time

Fixed:
Stupid bugs that broke time when it ran for an extended time
Command for setting time manually is fixed
Temperature handling fixed
Various small errors fixed

CVARS:
sv_military_time (0|1) - Enable military time
sv_hourlength (int) - Length of the hour
sv_update_time (float) - How quickly the hud updates

sv_timer_bar (a-h) - Defines what elements are included in the bar:
a = minutes
b = hours
c = days
d = months
e = years
f = temp
g = weather type
h = seasons

Day/Night:
Day/Night, which can function in compliment to Timer or as a stand alone, changes the lighting of the map to match either the fake date set by Timer, or the time outside your window.

It includes:
It changes lights based on time. What else really is there?
Command to set lights manually

Updates:
Added a cvar to stop it day/night.
Added the option to set the day/light change to be based on the real world time.

Commands:
amx_setlight <1-26>

Fixes:
Turning off the lights now sets it to #OFF
No more stupid overruns of the sequence constant.

CVARS:
sv_real_lights (0|1) - lights based on real life or timer

If day/night is based on timer, all the timer commands will effect it.

Weather:
Adds weather type effects to HL and its mods.
Very straightforward

Updates:
Removed laggy rain
Removed laggy snow
Removed laggy (wrath of god) thunderstorms

Added new lagless versions of above things.

Commands:
amx_rain <time> <frequency>
amx_snow <time> <frequency>
amx_thunderstorm <time> <frequency>

Fixes:
No more crashing or lag

CVARS:
- How many snow sprites at any 0.1 seconds? Above 10 will lag.
sv_snow_multiplier - (2)

- How many rain sprites at any 0.1 seconds? Above 50 will lag
sv_rain_multiplier - (25)

- How will the sprites be handled? Different values render different effects
sv_weather_aim - (0-4)

- Only make weather effects to those outside?
sv_check_outside - (0|1)

NOTES:
Derailing may occur if you fuck up with the date
The settings are at optimium currently
Weather is a LITTLE um....predictable. Its really a quick hack job.
It doesnt lag though, I tested with a whole lot of people, so thats good.

Have fun with it.
Attached Files
File Type: sma Get Plugin or Get Source (timer16.sma - 11283 views - 27.3 KB)
File Type: rar sprites.rar (3.6 KB, 7743 views)
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
kingpin
Veteran Member
Join Date: Apr 2004
Location: kpsforum.com
Old 07-17-2004 , 22:43  
Reply With Quote #2

WOW..... I dont know how else to explain that it sounds like a whole new dimension now once the other things ur working on come in this should be great...
__________________
kingpin is offline
Send a message via ICQ to kingpin Send a message via AIM to kingpin Send a message via MSN to kingpin Send a message via Yahoo to kingpin Send a message via Skype™ to kingpin
Poison_Jay
Senior Member
Join Date: May 2004
Old 07-17-2004 , 22:47  
Reply With Quote #3

can u just make it snow without waiting?

like just make a command and it starts to snow, that seems more fun
Poison_Jay is offline
Send a message via MSN to Poison_Jay
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 07-17-2004 , 22:59  
Reply With Quote #4

Sounds good. I'lla dd back in the EJI type commands, so admins can set it to snow.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
kingpin
Veteran Member
Join Date: Apr 2004
Location: kpsforum.com
Old 07-17-2004 , 23:12  
Reply With Quote #5

you know what would be cool but dunno how feasible it might be is when your outside and get caught in the snow for X amount of time you start freezing like slowing down in everything movment/shooting etc kinda like the diablo III mod thunderstorm but that kills you right away if your caught outside.... I mean yeah its following what u said about effects being oudoors only but this takes it a bit further. lol and a fun feature would be if randomly lightning hits you you loose some health and start glowing kinda like a movie thing when u get hit with lightning you start glowing... just a coupla Ideas.
__________________
kingpin is offline
Send a message via ICQ to kingpin Send a message via AIM to kingpin Send a message via MSN to kingpin Send a message via Yahoo to kingpin Send a message via Skype™ to kingpin
|2ob
Senior Member
Join Date: Mar 2004
Location: Ontario, Canada
Old 07-17-2004 , 23:36  
Reply With Quote #6

will there be snow on the ground?
__________________
24/7 Custom Maps Vitrus | Style by www.WebGZ.net
64.247.24.125:27015

Visit Vitrus's Clan Site!

I would put more, but they have a limit on chars
|2ob is offline
Send a message via AIM to |2ob Send a message via MSN to |2ob
QwertyAccess
Veteran Member
Join Date: Feb 2004
Location: Enjiru Layer
Old 07-18-2004 , 00:14  
Reply With Quote #7

Quote:
Originally Posted by |2ob
will there be snow on the ground?
It really depends what mod it is done on, and particle systems really to do stuff like fog and other things. Attach a few screenshots though would be nice.
__________________
QwertyAccess is offline
baronparabolla
Member
Join Date: Jun 2004
Old 07-18-2004 , 02:36  
Reply With Quote #8

smart.
works sept how do i make the time continue from 1 map to the next?
i used record_time and it worked for the map change, then nextmap it didnt. the i stuk in amx.cfg and still nuthing?
and hourup, dayup, monthup, yearup dont work for me.

also, i saw a plugin on a roleplay server which changed the background as the lights changed could it be done here?

i cant wait to see snow...saw fog tho on a gud map
do i put snow.spr
valve/sprites or #moddir/sprites
baronparabolla is offline
Send a message via MSN to baronparabolla
CNZ
Member
Join Date: Jul 2004
Location: Tucson, AZ
Old 07-18-2004 , 03:14  
Reply With Quote #9

you put it in moddir/sprites

:c)
__________________
War3 1.6 Server - cnz.bounceme.net:27015
Insanity Mod (SAVEXP) - localserver.bounceme.net:27015
Website: http://gk.fearjihad.com/
CNZ is offline
Send a message via ICQ to CNZ Send a message via AIM to CNZ
KilledWithStyle
Senior Member
Join Date: Apr 2004
Old 07-18-2004 , 03:34  
Reply With Quote #10

Is there a way to slow down the time to realtime and save what the plugin chooses as the weather for the day is (map changes/crashes)?
__________________

Quote:
Originally Posted by KilledWithStyle
Its a fact of Half-life. Get used to it.
KilledWithStyle is offline
Reply



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:21.


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