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