Parent Directory
|
Revision Log
Revision 1 - (view) (download)
1 : | ian | 1 | /* |
2 : | CO Bot Spawner (COBS) v0.1 | ||
3 : | Copyright (C) 2007 Ian (Juan) Cammarata | ||
4 : | |||
5 : | This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. | ||
6 : | |||
7 : | This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. | ||
8 : | |||
9 : | You should have received a copy of the GNU General Public License along with this program; go to http://www.opensource.org/licenses/gpl-license.php | ||
10 : | */ | ||
11 : | /* | ||
12 : | *=============================================================================== | ||
13 : | * CO Bot Spawner (COBS) v0.1 | ||
14 : | * Created by Ian (Juan) Cammarata | ||
15 : | * http://ian.cammarata.us | ||
16 : | * AMXX 1.76d | ||
17 : | * 5/2/2007 5:34:33 AM | ||
18 : | *=============================================================================== | ||
19 : | * Description: | ||
20 : | * | ||
21 : | *=============================================================================== | ||
22 : | * Cvars: (* indicates default) | ||
23 : | * qbs < 0 (off) | 0 (team 1) | 1 (team 2*) | ...(both teams)> | ||
24 : | * qbs_delay < 9999 | ... > : Initian respawn delay. | ||
25 : | * qbs_multiplier < 0.5 (*) | ... > : Respawn delay multiplier (in seconds). | ||
26 : | * qbs_multiply_time < 5 (*) | ... > : Interval to apply multiplier (in minutes). | ||
27 : | * qbs_threshold < 5 (*) | ... > : Max spawn delay (in seconds). When reached plugin disables for the remainder of the round. | ||
28 : | */ | ||
29 : | #include <amxmodx> | ||
30 : | #include <engine> | ||
31 : | #include <ns> | ||
32 : | |||
33 : | #define VERSION "0.1" | ||
34 : | |||
35 : | new p_mode,round_time | ||
36 : | |||
37 : | public | ||
38 : | |||
39 : | public plugin_init(){ | ||
40 : | register_plugin("COBS",VERSION,"Ian Cammarata") | ||
41 : | register_cvar("cobs_version",VERSION,FCVAR_SERVER) | ||
42 : | p_mode= register_cvar("cobs","2") | ||
43 : | p_delay=register_cvar("cobs_delay","0.25") | ||
44 : | p_xer= register_cvar("cobs_multiplier","2") | ||
45 : | p_intvl=register_cvar("cobs_multiply_time","5") | ||
46 : | p_thold=register_cvar("cobs_threshold","25") | ||
47 : | if(ns_is_combat())set_task(5,"spawn_task") | ||
48 : | } |
Contact | ViewVC Help |
Powered by ViewVC 1.0.4 |