[Half-Life AMXX] / co_bot_spawner.sma Repository:
ViewVC logotype

View of /co_bot_spawner.sma

Parent Directory Parent Directory | Revision Log Revision Log


Revision 25 - (download) (annotate)
Tue Nov 20 22:36:56 2007 UTC (16 years, 4 months ago) by ian
File size: 2049 byte(s)
Applied AGPLv3 license.
/*
CO Bot Spawner (COBS) v0.1
Copyright (C) 2007 Ian (Juan) Cammarata

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.

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 Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
--------------------------------------------------------------------------------
CO Bot Spawner (COBS) v0.1
Created by Ian (Juan) Cammarata
http://ian.cammarata.us
AMXX 1.76d
5/2/2007 5:34:33 AM
--------------------------------------------------------------------------------
Description:
	
--------------------------------------------------------------------------------
Cvars: (* indicates default)
	qbs < 0 (off) | 0 (team 1) | 1 (team 2*) | ...(both teams)>
	qbs_delay < 9999 | ... > : Initian respawn delay.
	qbs_multiplier < 0.5 (*) | ... > : Respawn delay multiplier (in seconds).
	qbs_multiply_time < 5 (*) | ... > : Interval to apply multiplier (in minutes). 
	qbs_threshold < 5 (*) | ... > : Max spawn delay (in seconds). When reached plugin disables for the remainder of the round. 
*/
#include <amxmodx>
#include <engine>
#include <ns>

#define VERSION "0.1"

new p_mode,round_time

public

public plugin_init(){
	register_plugin("COBS",VERSION,"Ian Cammarata")
	register_cvar("cobs_version",VERSION,FCVAR_SERVER)
	p_mode= register_cvar("cobs","2")
	p_delay=register_cvar("cobs_delay","0.25")
	p_xer=  register_cvar("cobs_multiplier","2")
	p_intvl=register_cvar("cobs_multiply_time","5")
	p_thold=register_cvar("cobs_threshold","25")
	if(ns_is_combat())set_task(5,"spawn_task")
}

Contact
ViewVC Help
Powered by ViewVC 1.0.4