AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   CSDM Random Spawn Creator (https://forums.alliedmods.net/showthread.php?t=75902)

GHW_Chronic 08-14-2008 17:23

CSDM Random Spawn Creator
 
7 Attachment(s)
  • 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.
_

faTal_eXtreMe 08-14-2008 18:14

Re: CSDM Random Spawn Creator
 
Very cool dude, i use that much the CSDM, will be very useful!

Sam Tsuki 08-14-2008 18:33

Re: CSDM Random Spawn Creator
 
Looks cool...
Gotta try it!
Can be helpful for my HvM Mod ;)

GHW_Chronic 08-14-2008 19:27

Re: CSDM Random Spawn Creator
 
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.

Mlk27 08-14-2008 19:36

Re: CSDM Random Spawn Creator
 
nice! very useful indeed. gj!

any particular reason why you set #define MAX_ORIGINS only 30 in the .inc ? why not 32?

GHW_Chronic 08-14-2008 22:47

Re: CSDM Random Spawn Creator
 
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).

Mlk27 08-14-2008 23:09

Re: CSDM Random Spawn Creator
 
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:57:39: Start of error session.
L 08/15/2008 - 10:57:39: Info (map "zm_deko2") (file "addons/amxmodx/logs/error_20080815.log")
L 08/15/2008 - 10:57:39: callfunc_push_xxx called without callfunc_begin
L 08/15/2008 - 10:57:39: [AMXX] Displaying debug trace (plugin "GHW_CSDM_SpawnMaker.amxx")
L 08/15/2008 - 10:57:39: [AMXX] Run time error 10: native error (native "callfunc_push_int")
L 08/15/2008 - 10:57:39: [AMXX] [0] GHW_CSDM_SpawnMaker.sma::Save_Locations (line 129)

GHW_Chronic 08-15-2008 15:30

Re: CSDM Random Spawn Creator
 
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

[X]-RayCat 08-15-2008 18:28

Re: CSDM Random Spawn Creator
 
Nice to see you back on the action. gj ;)

Bojangles 08-15-2008 21:41

Re: CSDM Random Spawn Creator
 
This plugin is pure genius


All times are GMT -4. The time now is 11:36.

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