Myrex
8th February 2005, 19:31
For those garry modders. :jumping: :jumping:
here is a good vgui addon if u aint got it already it it a hoot!!!
Download NOW!!! (http://www.geocities.com/myrex565/Meg_AI-Garrysmod.zip)
Here is the Tutorial:
-----------------
Installation
-----------------
Extract the zip to:
"C:\Program Files\Valve\Steam\SteamApps\SourceMods\garrysmod\"
Or if you customized your installation, extract the files to your garrysmod
root directory.
-----------------
Usage
-----------------
To use this script cheats must be enabled on the server. The script turns on
cheats for you, but you can always double check.
Simply bring up the spawn menu with the 'q' button, press 'AI', and you'll
see the following:
http://meg-tech.com/hostPics/help2.jpg
The areas of interest have been highlighted to make explanation easier.
_AREA 1_
You must always go to area 1 of the 'AI' submenu before you spawn any NPCs. This will let
you set what AI mode you want.
*Individual AI Mode: All NPCs are spawned neutral to all other NPCs, so no attacking will
take place until you assign orders. More on assigning orders to come.
*FFA AI Mode: The simplest AI mode, all NPCs are spawned hating each other.
*Team AI Mode: NPCs are spawned on assigned teams, and the teams attack each other.
More on assigning teams to come.
_AREA 2_
Simply sets whether AI will spawn liking or hating the human players.
_AREA 3_
Is used for the individual AI mode. Just look at the NPCs you want to select, press select,
then use the buttons under the 'Attack' label to tell them who to attack. You can also look
at NPCs and target them with the target button, then have all the selected attack all the
targeted NPCs
The rest of the important commands are under the 'NPC' submenu:
http://meg-tech.com/hostPics/help1.jpg
_AREA 1_
Is where you select the weapon you want your NPCs to spawn with. Please note that not all NPCs spawn with weapons
_AREA 2_
Is where you select the NPC you want to spawn. If you selected a weapon from area 1, it will spawn with that weapon.
_AREA 3_
Here you set what team you want your NPCs to spawn on. This is for Team AI mode.
------------------------
MANUAL CONSOLE COMMANDS
------------------------
*_Don't use these if you don't know what your doing. All commands listed _*
*_here are accessible via the spawn menu ( press the 'q' button ) _*
Console commands are no longer officially supported as of version 2.0, as
all the commands are implemented in the spawn menu, but spawning from the
console is still possible.
To start with, you need to say what AI mode you're in. You can choose one
of the following:
*ai_individual
*ai_ffa
*ai_teams
*ai_teamsC
ai_teamsC is teams with colors.
The general spawn command is:
[set_<weapon>;setTeam_<color>*For team AI mode*;]spawn_<npc_name>
[;exec AI/Attack/<attack_mode>*For Individual AI mode*]
[...] means optional, <...> means replace with what you want/need,
*...* is a comment
you can replace <weapon> with the following:
*annabelle
ar2
alyxgun
crowbar
package
pistol
rpg
shotgun
smg
suitcase
stunstick
you can replace <color> with the following:
white
gray
black
red
brown
orange
yellow
lime
green
teal
blue1
blue2
purple
pink
you can replace <npc_name> with the following:
alyx
antlion
antlionguard
citizen
combine
combinedropship -AI is buggy
combinegunship -Very picky
crow
dog
eli
fastzombie
helicopter -Very picky
gman
headcrab
headcrab_fast
headcrab_poison
kleiner
metropolice
monk -Brother Gregory
mossman
pigeon
poisonzombie
rollermine
seagull
stalker
strider
vortigaunt
zombie
you can replace <attack_mode> with the following:
ceasefire
target
players
all
alyx
antlion
antlionguard
barney
breen
citizen
combine
combinedropship
combinegunship
crow
dog
eli
fastzombie
helicopter
headcrab
headcrab_fast
headcrab_poison
kleiner
metropolice
monk
mossman
pigeon
poisonzombie
rollermine
seagull
stalker
strider
vortigaunt
zombie
zombie_torso
Some 'individual' AI mode commands:
ai_select -Select NPC for order-giving
ai_unselect -Deselect NPC for order-giving
ai_target -Target NPC
ai_untarget -Detarget NPC
Some commands that aren't mine, but are still useful:
ai_disable -Toggles AI on/off
notarget -Toggles whether or not AI will see you
-----------------
Change log
-----------------
2.0 (1/31/05)
Too many changes to list them all individually, but here's
some highlights:
*Complete code rewrite
*Integrated into spawn menu
*AI is now split into three modes ( individual, ffa, and teams )
*Can do team colors
*Individual AI is given specific orders
Removed other changes due to size. Please see the readme for complete changelog!
-----------------
Known Bugs
-----------------
Attacking the stalker will crash it. Don't attack the stalker yourself, let other NPCs do it or delete it.
Combine dropship is immortal and can't be created with correct AI. No solution as of yet.
NPCs will randomly spawn without a weapon when you want them with a weapon. Don't approach them when this happens or it will crash. Just delete them
Stacking birds ( IE, one on top of the other ) will crash the game when they die. Just don't stack them.
FFA mode does not work 100%. You may not always get the results you wanted with it, but it seems to work best among the combine.
In order for this to work *well* in mp, you should all set AI to the same mode.
If you find any more bugs, please report them to me at megiddo@meg-tech.com
DL: http://meg-tech.com/hostFiles/Meg_AI-Garrysmod.zip
Enjoy!
Original post can be found here (http://www.garry.tv/garrysmodforum/viewtopic.php?t=5289)
here is a good vgui addon if u aint got it already it it a hoot!!!
Download NOW!!! (http://www.geocities.com/myrex565/Meg_AI-Garrysmod.zip)
Here is the Tutorial:
-----------------
Installation
-----------------
Extract the zip to:
"C:\Program Files\Valve\Steam\SteamApps\SourceMods\garrysmod\"
Or if you customized your installation, extract the files to your garrysmod
root directory.
-----------------
Usage
-----------------
To use this script cheats must be enabled on the server. The script turns on
cheats for you, but you can always double check.
Simply bring up the spawn menu with the 'q' button, press 'AI', and you'll
see the following:
http://meg-tech.com/hostPics/help2.jpg
The areas of interest have been highlighted to make explanation easier.
_AREA 1_
You must always go to area 1 of the 'AI' submenu before you spawn any NPCs. This will let
you set what AI mode you want.
*Individual AI Mode: All NPCs are spawned neutral to all other NPCs, so no attacking will
take place until you assign orders. More on assigning orders to come.
*FFA AI Mode: The simplest AI mode, all NPCs are spawned hating each other.
*Team AI Mode: NPCs are spawned on assigned teams, and the teams attack each other.
More on assigning teams to come.
_AREA 2_
Simply sets whether AI will spawn liking or hating the human players.
_AREA 3_
Is used for the individual AI mode. Just look at the NPCs you want to select, press select,
then use the buttons under the 'Attack' label to tell them who to attack. You can also look
at NPCs and target them with the target button, then have all the selected attack all the
targeted NPCs
The rest of the important commands are under the 'NPC' submenu:
http://meg-tech.com/hostPics/help1.jpg
_AREA 1_
Is where you select the weapon you want your NPCs to spawn with. Please note that not all NPCs spawn with weapons
_AREA 2_
Is where you select the NPC you want to spawn. If you selected a weapon from area 1, it will spawn with that weapon.
_AREA 3_
Here you set what team you want your NPCs to spawn on. This is for Team AI mode.
------------------------
MANUAL CONSOLE COMMANDS
------------------------
*_Don't use these if you don't know what your doing. All commands listed _*
*_here are accessible via the spawn menu ( press the 'q' button ) _*
Console commands are no longer officially supported as of version 2.0, as
all the commands are implemented in the spawn menu, but spawning from the
console is still possible.
To start with, you need to say what AI mode you're in. You can choose one
of the following:
*ai_individual
*ai_ffa
*ai_teams
*ai_teamsC
ai_teamsC is teams with colors.
The general spawn command is:
[set_<weapon>;setTeam_<color>*For team AI mode*;]spawn_<npc_name>
[;exec AI/Attack/<attack_mode>*For Individual AI mode*]
[...] means optional, <...> means replace with what you want/need,
*...* is a comment
you can replace <weapon> with the following:
*annabelle
ar2
alyxgun
crowbar
package
pistol
rpg
shotgun
smg
suitcase
stunstick
you can replace <color> with the following:
white
gray
black
red
brown
orange
yellow
lime
green
teal
blue1
blue2
purple
pink
you can replace <npc_name> with the following:
alyx
antlion
antlionguard
citizen
combine
combinedropship -AI is buggy
combinegunship -Very picky
crow
dog
eli
fastzombie
helicopter -Very picky
gman
headcrab
headcrab_fast
headcrab_poison
kleiner
metropolice
monk -Brother Gregory
mossman
pigeon
poisonzombie
rollermine
seagull
stalker
strider
vortigaunt
zombie
you can replace <attack_mode> with the following:
ceasefire
target
players
all
alyx
antlion
antlionguard
barney
breen
citizen
combine
combinedropship
combinegunship
crow
dog
eli
fastzombie
helicopter
headcrab
headcrab_fast
headcrab_poison
kleiner
metropolice
monk
mossman
pigeon
poisonzombie
rollermine
seagull
stalker
strider
vortigaunt
zombie
zombie_torso
Some 'individual' AI mode commands:
ai_select -Select NPC for order-giving
ai_unselect -Deselect NPC for order-giving
ai_target -Target NPC
ai_untarget -Detarget NPC
Some commands that aren't mine, but are still useful:
ai_disable -Toggles AI on/off
notarget -Toggles whether or not AI will see you
-----------------
Change log
-----------------
2.0 (1/31/05)
Too many changes to list them all individually, but here's
some highlights:
*Complete code rewrite
*Integrated into spawn menu
*AI is now split into three modes ( individual, ffa, and teams )
*Can do team colors
*Individual AI is given specific orders
Removed other changes due to size. Please see the readme for complete changelog!
-----------------
Known Bugs
-----------------
Attacking the stalker will crash it. Don't attack the stalker yourself, let other NPCs do it or delete it.
Combine dropship is immortal and can't be created with correct AI. No solution as of yet.
NPCs will randomly spawn without a weapon when you want them with a weapon. Don't approach them when this happens or it will crash. Just delete them
Stacking birds ( IE, one on top of the other ) will crash the game when they die. Just don't stack them.
FFA mode does not work 100%. You may not always get the results you wanted with it, but it seems to work best among the combine.
In order for this to work *well* in mp, you should all set AI to the same mode.
If you find any more bugs, please report them to me at megiddo@meg-tech.com
DL: http://meg-tech.com/hostFiles/Meg_AI-Garrysmod.zip
Enjoy!
Original post can be found here (http://www.garry.tv/garrysmodforum/viewtopic.php?t=5289)