Day of Defeat Plugins Community
This site is an archive — everything is readable and downloadable, nothing can be posted. Admin

DoD Random Skymap (v1.2)

by diamond-optic · 2006-07-11 · 12 replies · 11941 views · 252 downloads

Read the thread (13 posts)

From the first post

DoD Random Skymap
n
- Version 1.2
n- 08.06.2006
n- diamond-optic
n
nInformation:
n
- Will select a random skymap at the start of each mapn- Selects from the 12 defualt dod skymapsnn- ** Requires AMXX 1.75 or higher **
CVARs:
n
dod_random_skymap "1" //Turn on(1)/off(0)
Extra:
n
- By looking at the code, you'll see its very easy to editnit to include any custom skymaps you want to use...
ChangeLog:
n
- 06.15.2006 Version 1.0nInitial releasenn- 07.01.2006 Version 1.1nRemoved ENGINE module (requires amxx 1.75+)nn- 08.06.2006 Version 1.2nChanged the returns in the precache function
DOWNLOAD URL: http://www.avamods.com/download.php?view.52

Files

dod_random_skymap.sma Plugin Source 5 KB 252 dl Download Compile

Archived builds from the server loose

These compiled builds sat loose in the server's script folder rather than attached to a post. They are matched to this release by comparing their decompiled Pawn against the source published above, so treat the attribution as strong but not certain. Versions come from the register_plugin() call recovered from the bytecode.

dod_random_skymap_202.sma v1.0 5 KB Download Compile

The thread

All 13 posts from 7 people on DoD Random Skymap (v1.2), kept as they were written.

diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
07-10-2006, 10:09 PM #1

DoD Random Skymapn- Version 1.2n- 08.06.2006n- diamond-opticnnInformation:n

- Will select a random skymap at the start of each mapn- Selects from the 12 defualt dod skymapsnn- ** Requires AMXX 1.75 or higher **
CVARs:n
dod_random_skymap "1" //Turn on(1)/off(0)
Extra:n
- By looking at the code, you'll see its very easy to editnit to include any custom skymaps you want to use...
ChangeLog:n
- 06.15.2006 Version 1.0nInitial releasenn- 07.01.2006 Version 1.1nRemoved ENGINE module (requires amxx 1.75+)nn- 08.06.2006 Version 1.2nChanged the returns in the precache function
DOWNLOAD URL: http://www.avamods.com/download.php?view.52

TigerMan4
posted here
Posts: 317
Threads: 37
Joined: Aug 2006
08-24-2006, 01:04 AM #2

works great... I like the changing skies on the maps.

diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
09-17-2006, 09:31 PM #3

update to v1.2:n

- 08.06.2006 Version 1.2n Changed the returns in the precache function
J jondoe
posted here
Posts: 129
Threads: 6
Joined: Aug 2005
05-02-2007, 10:30 PM #4

So Optic, If i wanted to just run only 4 out of the twelve default skys would this be how i edit your plugin. The thing is some of the maps i run are pretty dark and with another maps darker sky, its too dark for the players to see well.rnrn

rn#include <amxmodx>rnrnpublic plugin_init()rn{rn	register_plugin("DoD Random Skymap", "1.2", "AMXX DoD Team")rn	register_cvar("dod_random_skymap", "1")rn}rnrnpublic plugin_precache()rn{	rn	if(get_cvar_num("dod_random_skymap") != 1)rn		return PLUGIN_CONTINUErnrn	switch(random_num(1, 12))rn		{rn		case 1:	{rn			server_cmd("sv_skyname ava")rn			precache_generic("gfx/env/avart.tga")rn			precache_generic("gfx/env/avalf.tga")rn			precache_generic("gfx/env/avaft.tga")rn			precache_generic("gfx/env/avadn.tga")rn			precache_generic("gfx/env/avabk.tga")rn			precache_generic("gfx/env/avaup.tga")rn			}rn		case 2: {rn			server_cmd("sv_skyname dashnight256")rn			precache_generic("gfx/env/dashnight256rt.tga")rn			precache_generic("gfx/env/dashnight256lf.tga")rn			precache_generic("gfx/env/dashnight256ft.tga")rn			precache_generic("gfx/env/dashnight256dn.tga")rn			precache_generic("gfx/env/dashnight256bk.tga")rn			precache_generic("gfx/env/dashnight256up.tga")rn			}rn		case 3: {rn			server_cmd("sv_skyname jagd")rn			precache_generic("gfx/env/jagdrt.tga")rn			precache_generic("gfx/env/jagdlf.tga")rn			precache_generic("gfx/env/jagdft.tga")rn			precache_generic("gfx/env/jagddn.tga")rn			precache_generic("gfx/env/jagdbk.tga")rn			precache_generic("gfx/env/jagdup.tga")rn			}rn		case 4: {rn			server_cmd("sv_skyname dmcw")rn			precache_generic("gfx/env/dmcwrt.tga")rn			precache_generic("gfx/env/dmcwlf.tga")rn			precache_generic("gfx/env/dmcwft.tga")rn			precache_generic("gfx/env/dmcwdn.tga")rn			precache_generic("gfx/env/dmcwbk.tga")rn			precache_generic("gfx/env/dmcwup.tga")rn		           }rn		}rn	return PLUGIN_CONTINUErn}rnrn
| |OnEHiTwOnDeR|SoCal
posted here
Posts: 320
Threads: 37
Joined: Mar 2007
05-02-2007, 10:43 PM #5

since its 4 not twelve change the rnrn

switch(random_num(1, 12))
rnrntornrn
switch(random_num(1, 4))
rnrnrnotherwise to me it looks fine

diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
05-02-2007, 10:46 PM #6

that should work fine.. just be sure to make the change that |OnEHiTwOnDeR|SoCal pointed out..

J jondoe
posted here
Posts: 129
Threads: 6
Joined: Aug 2005
05-02-2007, 11:55 PM #7

Great thank you both. :)

I ijack
posted here
Posts: 10
Threads: 0
Joined: Feb 2008
03-07-2008, 09:56 PM #8

I understand that you have 12 different sky's do you have to wait untill map change to see all of them? will it rotate throgh all of them or is it hit and miss?rnrnalso you said you can have 4 maps and to change it to 1, 4,rnwhat if you did something like 2,6,3,8? would just them load?rnthanks for your time

Ba5ic
posted here
Posts: 181
Threads: 26
Joined: Nov 2005
03-09-2008, 04:08 AM #9

Hi GuysrnrnI run the random skymap, bit of a noob question :S, but where can i view them to pick the ones i would like instead of all 12, i don't really want to sit on the server and try to cycle thru them > :)rnrnThanks in advance

D Drek
posted here
Posts: 78
Threads: 6
Joined: May 2005
03-09-2008, 07:19 AM #10
I understand that you have 12 different sky's do you have to wait untill map change to see all of them? will it rotate throgh all of them or is it hit and miss?
nThey only change at map change and it is random, so it is hit and miss.nn
also you said you can have 4 maps and to change it to 1, 4,nwhat if you did something like 2,6,3,8? would just them load?
nYes.nn
I run the random skymap, bit of a noob question :S, but where can i view them to pick the ones i would like instead of all 12, i don't really want to sit on the server and try to cycle thru them > :)
nYou need to download GCFScape, and use it to unpack the contents of your "dod/gfx/env" folder, then use some kind of picture viewer (I use Irfanview) to view the files. Just look in the code to see which files apply to which number.

diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
03-09-2008, 01:14 PM #11

thanks drek.. :) ive been a bit busy to keep up with everything here lolnnni did at one point plan on making this use a cfg file to load which skymaps it would select but i never got around to it.. I'd like to find time to still do that but i cant make any promises

D Drek
posted here
Posts: 78
Threads: 6
Joined: May 2005
03-09-2008, 02:36 PM #12

Welcome. :)

Ba5ic
posted here
Posts: 181
Threads: 26
Joined: Nov 2005
03-16-2008, 07:49 AM #13

I want to cycle 4-5 random sky maps, rather than the 12, but there is one specific skymap i would like to include, i think i saw it on D-O's server, whilst playing hill classic, it looked like a space scene with 2 moons, quite a light skymap if memory serves.rnrnAny idea's on what it was called and where i can DL the .tga files.rnrnThanks in advance.

DoD Plugins Archive · Repository · Old Forum Threads · Maps · Admin · built 14 Sep 2026 00:34 UTC