Page 1 of 1

AI parameters

Posted: Wed Apr 09, 2003 8:45 pm
by PsychoE
Where can I read up on the AI parameters and what each function does. I am into a SP map and curious to know what settings to do.

Also, I know there is a tut on giving a player weapons upon startup. It shows how to give the player a colt45, but no others. Is there somewhere I can read on how to give a player any weapons?

Thanks,

E

Posted: Wed Apr 09, 2003 11:43 pm
by nuggets
Giving and Taking Stuff from the Player
To give an item to a player (any quantity of it) simply use the following script command:
$player item items/blaa.tik <num>
$player is a targetname that’s automatically recognized as the player. The items/blaa.tik should be replaced by the tik file for the item, relative to the models folder. For example, to give a bratwurst, you’d use items/bratwurst.tik. This command can also be used to give the player weapons, such as weapons/colt45.tik.

To give the player ammo, this script command should be used:
$player ammo type amount
Type is a small string identifier for the type of ammo to give, and amount is the amount of that ammo type to give to the player. The different ammo types are:
? pistol
? rifle
? smg (for sub-machineguns)
? mg (for machineguns)
? grenades
? shotgun
? heavy (for heavy explosive weapons like the bazooka)

To take something away from the player (item, weapon, or ammo) use the following script command:
$player take name
If taking away an item or weapon, name is the tik file of the item or weapon to take. If taking away ammo, name is the string identifier of that ammo type (they’re listed above). This command takes away all of the specified thing, be it items, a weapon, or ammo.

To take away everything the player has, use the following script command:
$player takeall
This takes all items, weapons, and ammo the player has, leaving the poor wretch humiliated and destitute.

this was taken from documantation that comes with MOHRadiant ;)

Posted: Fri Apr 18, 2003 6:19 am
by m4rine
ill try explain the ai:

type_idle = whether the person stands there, patrols, stands on a balcony or operates a machine gun.

type_attack = whether the person takes cover or doesnt attack at all, sets off the alarm ect.

type_disguise = youll have to ask someone else i aint quite sure.

type_grenade = whether they throw grenades off a balcony, normally or not at all (machine gunner)

gun = surely u can work that out lol!

hearing = how far he hears
sight = how far he sees
health = how much health hes got

targetname = if you want him to attack you, name him the same as you named the trigger_multiple above your info_player_start (if you dont know how to do this read the .map tut it is very good)

target = on a patrol this is the waypoint he is walking to (again see the tut about waypoints

angle = the way he is facing

sound awareness = how much attention he is paying to the world around him!

notice_scale = if hes looking sharply or laid back reading a porn mag with music playing!

ammo_grenade = how many grenades hes got

accuracy = how accurate shooting he is

thats about all I know (some of them might be wrong correct me if there wrong somebody) someone else will have to explan the rest

8)