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

CSDM Random Spawn Creator


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Server Management        Approver:   GHW_Chronic (70)
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 08-14-2008 , 17:23   CSDM Random Spawn Creator
Reply With Quote #1

  • This plugin creates random spawns for CSDM.
  • Its purpose is for maps you don't already have spawn points for and do not want to have to manually create your own.
Usage:
1. Run amx_make_csdm_spawns on desired map
2. Wait untill you get a response from the plugin in console
3. Run amx_test_csdm_spawns on desired map


Commands:
  • amx_make_csdm_spawns
    • Makes spawn locations for the map you are currently on and makes CSDM load them. [Method]
      • For more information on "Method" click here
  • amx_test_csdm_spawns
    • Teleports you to all of the spawnpoints 1 by 1 and asks if they are bad

Important Notes:
  • Spawn points are sometimes created outside of map (like 3% of them)
    • The points are in the map but in non-accessible places like under the bridge in assault
  • Bad Spawn points can be fixed by running the amx_test_csdm_spawns command
  • If you are not getting the results you want from "amx_make_csdm_spawns" then try "amx_make_csdm_spawns 2" or "amx_make_csdm_spawns 3"

Required files for compilation: GHW Spawnlist Generator
-So download GHW_CSDM_SpawnMaker.amxx instead of using the "Get Plugin" link next to GHW_CSDM_SpawnMaker.sma.
_
Attached Files
File Type: sma Get Plugin or Get Source (GHW_CSDM_SpawnMaker.sma - 11364 views - 5.5 KB)
File Type: amxx GHW_CSDM_SpawnMaker.amxx (14.6 KB, 5482 views)

Last edited by GHW_Chronic; 07-09-2009 at 13:28.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
faTal_eXtreMe
Junior Member
Join Date: May 2008
Location: Brazil
Old 08-14-2008 , 18:14   Re: CSDM Random Spawn Creator
Reply With Quote #2

Very cool dude, i use that much the CSDM, will be very useful!
faTal_eXtreMe is offline
Send a message via MSN to faTal_eXtreMe
Sam Tsuki
Senior Member
Join Date: Apr 2008
Location: KoKoRo!
Old 08-14-2008 , 18:33   Re: CSDM Random Spawn Creator
Reply With Quote #3

Looks cool...
Gotta try it!
Can be helpful for my HvM Mod ;)
__________________
My Approved Plugins:
Sam Tsuki

HvM XP Mod's addons:
Co-op Maps
Money System
Sam Tsuki is offline
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 08-14-2008 , 19:27   Re: CSDM Random Spawn Creator
Reply With Quote #4

I released the algorithm for finding the spawns and this plugin seperately because the .inc file I can see being used by other modders to automatically make a plugin like this in their mod.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
Mlk27
Veteran Member
Join Date: May 2008
Old 08-14-2008 , 19:36   Re: CSDM Random Spawn Creator
Reply With Quote #5

nice! very useful indeed. gj!

any particular reason why you set #define MAX_ORIGINS only 30 in the .inc ? why not 32?
Mlk27 is offline
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 08-14-2008 , 22:47   Re: CSDM Random Spawn Creator
Reply With Quote #6

the spawns that come with CSDM have 20-32 spawn locations, but it really doesn't matter to have 32 spawn points because the only way CSDM would teleport 32 players simultaniously is if they all chose their team/class simultaniously or died all at the same time. (Even a round restart wouldn't do it). Honestly that is a #define because while making the script I needed to easily change it to find a right amount, and it seems most maps can find 30 spots and after that it takes ~10 seconds to find another (on most methods).
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
Mlk27
Veteran Member
Join Date: May 2008
Old 08-14-2008 , 23:09   Re: CSDM Random Spawn Creator
Reply With Quote #7

i see. and here's the first bug report

i had this bug while creating spawns for this map. define set to #32 and method, 2

Quote:
L 08/15/2008 - 10:579: Start of error session.
L 08/15/2008 - 10:579: Info (map "zm_deko2") (file "addons/amxmodx/logs/error_20080815.log")
L 08/15/2008 - 10:579: callfunc_push_xxx called without callfunc_begin
L 08/15/2008 - 10:579: [AMXX] Displaying debug trace (plugin "GHW_CSDM_SpawnMaker.amxx")
L 08/15/2008 - 10:579: [AMXX] Run time error 10: native error (native "callfunc_push_int")
L 08/15/2008 - 10:579: [AMXX] [0] GHW_CSDM_SpawnMaker.sma::Save_Locations (line 129)
Mlk27 is offline
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 08-15-2008 , 15:30   Re: CSDM Random Spawn Creator
Reply With Quote #8

I guess I'll add a check to see if CSDM is running, because what is happening there is it is telling CSDM to reload the spawn points (so the map doesnt have to restart to be able to continue playing CSDM with the new spawns).

edit: added check, uploaded, fixed

Last edited by GHW_Chronic; 08-15-2008 at 15:35.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
[X]-RayCat
Senior Member
Join Date: Sep 2006
Old 08-15-2008 , 18:28   Re: CSDM Random Spawn Creator
Reply With Quote #9

Nice to see you back on the action. gj ;)
[X]-RayCat is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 08-15-2008 , 23:51   Re: CSDM Random Spawn Creator
Reply With Quote #10

Quote:
Originally Posted by [X]-RayCat View Post
Nice to see you back on the action. gj ;)
I got him motivated for this one ;)

I'm gonna see if I can figure this out so that I can add it to my upcoming mod (or in conjunction with it).

Good job, Chronic

Edit: Server crashes when I run the command with method 1. What's up with that?
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.

Last edited by v3x; 08-16-2008 at 00:22.
v3x 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:23.


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