IPB

Welcome Guest ( Log In | Register )

> VERY sexy plugin, oh the sexiness! *rub grind rub*
LordSkitch
post Sep 27 2004, 06:26 AM
Post #1


I cuddle with my bots.
*****

Group: Moderator
Posts: 980
Joined: 16-April 04
From: Alvin, Texas
Member No.: 291



alright, AMX plugin, very basic.

CODE
#include <ns2amx>

public plugin_init()
{
register_plugin("Lerk Spikes","1.0","mahnsawce")
register_cvar("ns2amx_lerkspikes","1.0",4)
register_logevent("changerole",3,"1=changed role to","2=lerk")
}
public changerole()
{
new lerk[64],id,name[32]
read_logargv(0,lerk,63)
parse_loguser(lerk,name,31)
id=get_user_index(name)
if (!has_weapon(id,WEAPON_SPIKE))
{
? new entity=create_entity("weapon_spikegun")
? mdll_spawn(entity)
? mdll_touch(entity,id)
}
}


What it does: re-enables lerk spikes


and heres my spikes section of bot_weapons.ini

CODE
# weapon id 4 for NS (spike gun)
[weapon_id=4]
underwater=1
primaryfire=1
primary_min_range=0
primary_max_range=768
priority=7
is_melee=0
[/weapon]



re-enables the spikes for the bots, and they are very mean with it! biggrin.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
 
Reply to this topicStart new topic
Replies
link2002
post Sep 27 2004, 04:02 PM
Post #2


RCBot Fan
****

Group: Members
Posts: 127
Joined: 7-February 04
From: Brazil
Member No.: 231



same slot
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Posts in this topic


Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 11th September 2025 - 04:13 PM