Raised This Month: $32 Target: $400
 8% 

Metamap v0.2


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff        Approver:   Johnny got his gun (102)
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 03-19-2004 , 04:55   Metamap v0.2
Reply With Quote #1

Quote:
Random new maps for Counter-strike every new round. Made to work with de_meta_16x16 (16x16) and de_meta_8x8 (8x.
Choose amount of walls for next round with metamap_walls cvar. Note that you cannot have more walls than (WxH - number of spawns - 1 bomb target):

Map Dimensions Spaces Playerspawns Bombtargets = Max number of walls
de_meta_8x8 8x8 64 16 1 = 47
de_meta_16x16 16x16 256 32 1 = 223

On top of that, note that using too many walls will likely be too heavy for the engine.
On de_meta_8x8 this is no problem, but on de_meta_16x16 where there is place for 16x16-32spawns-1bombtarget = 223 walls, that is likely to
bring down your server. During testing I have been able to run up to about 150 walls, beyond that server closes down with this message: "SZ_GetSpace: overflow on Client Datagram".
Maybe this varies though from server to server...
For version 0.2 of the module the generating of new levels is MUCH faster, it should appear "seemless" even with many walls on 16x16 maps.

I've placed this under "Counter-strike" because of the included plugin "Metamap CS". However the module doesn't care what game mod you use. You could easily modify the maps + the Metamap CS plugin to work with other game mods.

Screens: http://www.tcwonline.org/~johnnygoth...etamapscreens/

Added source to CVS: http://www.tcwonline.org/cgi-bin/vie...dlls/metamapx/
Attached Files
File Type: rar metamap_0.2.rar (110.5 KB, 2306 views)
File Type: rar metamap_amxx.rar (132.3 KB, 2326 views)
Johnny got his gun is offline
QwertyAccess
Veteran Member
Join Date: Feb 2004
Location: Enjiru Layer
Old 03-19-2004 , 10:49  
Reply With Quote #2

an idea. that you could probably do is make it so the level randomizes every round by cvar. well i havent tryed this so i dunno if it does this already. but just an idea.
__________________
QwertyAccess is offline
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 03-19-2004 , 11:01  
Reply With Quote #3

Quote:
Random new maps for Counter-strike every new round.
or maybe you wanted an ability to switch that off?
Johnny got his gun is offline
ibm86
Member
Join Date: Mar 2004
Location: Neptun, Romania.
Old 03-19-2004 , 22:58  
Reply With Quote #4

linux version please?
__________________
Fedora Core 1: glibc 2.3.2 / kernel 2.4.22-1.2174
Counter-Strike 1.6 (Steam)
ibm86 is offline
Send a message via ICQ to ibm86 Send a message via AIM to ibm86 Send a message via MSN to ibm86 Send a message via Yahoo to ibm86
MagicShot
Senior Member
Join Date: Mar 2004
Location: MN
Old 03-19-2004 , 23:03   Yeah
Reply With Quote #5

Yeah what would be a cool idea to allow different maps or be able to keep it the same if you wanted too..
__________________
|v|agic$hot
.
Without a Sound
MagicShot is offline
Send a message via MSN to MagicShot Send a message via Yahoo to MagicShot
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 03-20-2004 , 19:07  
Reply With Quote #6

Yeah yeah anything is possible, just edit the plugin, you could have it save the matrixes and then reuse them. I maybe should just release the module separately and then the plugin separately.

Btw did anyone try playing this on 16x16 map with a lot of walls and a lot of real players? For that matter, if you ever tried this - what are your experiences?

I think high network traffic/lag could be an issue here with a high load of players and walls.
Johnny got his gun is offline
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 03-25-2004 , 07:47  
Reply With Quote #7

I have a newer version coming up soon. It "vises" all unneeded walls, so that only the walls needed to define the level are created. If you would have 255 walls, then that would mean 1 free space on a 16x16 map, and at most only 4 walls would be needed for that. So it is very much possible to specify 150+ walls, in fact it will be easier on your server if you have really many walls. Or very few walls. Having something inbetween (well, around 150ish) will probably in the end create the most amount of walls.


Btw, added an ingame demo of this... that map uses metamap_walls set to 223 (max), but actually only about 50 are needed.
Johnny got his gun is offline
vlad
Junior Member
Join Date: Mar 2004
Old 03-27-2004 , 22:07  
Reply With Quote #8

Quote:
Originally Posted by ibm86
linux version please?

bump =)
vlad is offline
Yun
New Member
Join Date: Mar 2004
Old 03-28-2004 , 02:02  
Reply With Quote #9

The metamap.inc is not in the archive.
Please add it so I can compile the source myself.
Yun is offline
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 03-28-2004 , 05:06  
Reply With Quote #10

Yes sorry I forgot... looks like no one used this yet, cause I didnt include an amx? lol :-)

But to be honest you don't really need an include for this, just put
Code:
native metamap_getmap(matrix[], columns, lines, walls);
instead of #include <metamap> and it should be fine
That is all that is in metamap.inc
Johnny got his gun 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 07:56.


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