IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> 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
Sandman[SA]
post Sep 27 2004, 08:08 AM
Post #2


RCBot Waypointer
*****

Group: Moderator
Posts: 987
Joined: 15-September 03
From: Philadelphia
Member No.: 19



Sounds cool. Is that all there is to the source because it looks a bit funny, like it's incomplete or something. How does this work? Does it replace the bite_gun with the spike_gun or are they both on the same slot or what?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
link2002
post Sep 27 2004, 04:02 PM
Post #3


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
LordSkitch
post Sep 27 2004, 07:36 PM
Post #4


I cuddle with my bots.
*****

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



All it does, is check for a lerk being made, and when ones made, it drops the spike gun on them. It falls right under spores, I did ask the guy to see if he could find out a way to force a drop of spores...

But in the long run, it gives the bots just a little more of an edge against humans, as bot lerks are basically just flying targets.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
PetitMorte
post Sep 28 2004, 11:10 PM
Post #5


Member
**

Group: Members
Posts: 15
Joined: 15-October 03
Member No.: 90



Ssssssssssssssssssssssexay!
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Sulake
post Oct 2 2004, 12:37 AM
Post #6


Newbie
*

Group: Members
Posts: 3
Joined: 2-October 04
Member No.: 420



I don't get on how to use this plugin.. please explain..
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
LordSkitch
post Oct 2 2004, 07:59 AM
Post #7


I cuddle with my bots.
*****

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



It's an AMX plugin, you save the code as .sma, and use the stuff that comes with AMX to compile it.. you also need ns2amx to compile it..

www.amxmod.net
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Sulake
post Oct 2 2004, 06:43 PM
Post #8


Newbie
*

Group: Members
Posts: 3
Joined: 2-October 04
Member No.: 420



Well heres a couple more questions for you:

Will the plugin work with AMX Mod X?
I tried installing ns2amx but I can't figure it out.
Whats the difference between AMX Mod X and the original AMX?


I copied and pasted the code and saved it as a .sma file and stuck it in amx/examples/source/default

once i done that i compiled them and came up with 8 errors.

i took away the lerk spikes.sma file and no errors were found.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Sandman[SA]
post Oct 2 2004, 08:40 PM
Post #9


RCBot Waypointer
*****

Group: Moderator
Posts: 987
Joined: 15-September 03
From: Philadelphia
Member No.: 19



What errors did you get? Did you install the new include files for the new ns2.amx module?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
LordSkitch
post Oct 2 2004, 08:46 PM
Post #10


I cuddle with my bots.
*****

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



No, it won't work with AMXX, it needs more include files, and the coding structure is a little different.

There's one that works for AMXX, you can get it at www.modns.org and the people there are better suited to help with plugin problems laugh.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Sulake
post Oct 3 2004, 04:33 PM
Post #11


Newbie
*

Group: Members
Posts: 3
Joined: 2-October 04
Member No.: 420



I uninstalled AMXX and installed AMX and the plugin works fine now, thanks guys
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

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

 



- Lo-Fi Version Time is now: 11th September 2025 - 09:48 AM