HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

AI/Trigger helper needed

05-07-2005, 06:12 PM#1
PlasticAngel
Greets,
I am in the development of a map called Sneak and shoot. It is basiclly an assasination map played by eight players. Each player chooses a hero and sneaks around in a large forest killing eachother, it's all about the stealth. What I need help with is adding the option of having a computer AI that doesn't just rambo out and kill everyone, because in this game one or two shots kills. I also need help developing a damage system, as in when you get hit it is determend where you got hit, so if you get hit in the head you are dead, in the leg you move slower, in the arm you deal less damage and in the chest all around worse. I also need some help with map options and basic triggers as I know nothing about triggers. The terrain is done and all I need is someone to help with the triggers and AI.
Thanks for reading,
Angel
05-07-2005, 08:18 PM#2
Raptor--
how exactly do you plan on making a person even able to fire at a specific point on the body, since clicking on someone anywhere on the model will just count as a click on the unit, especially if you are using an overview model
even if we were able to theoretically draw a line from the weapon to its target click (assuming you clicked through a model), then you can't exactly find which part of the body the line intersects first, especially throughout the animations that are played
unless you plan to just have different shot 'abilities' or randomness
05-10-2005, 06:46 AM#3
PlasticAngel
I was plasnning on having a random trigger that generates where u hit. So would you like to help or where u just asking?
Angel
05-10-2005, 06:54 AM#4
Guest
it bores me reading the messages......... it feels me sleppy............
05-10-2005, 06:55 AM#5
PlasticAngel
Quote:
Originally Posted by gamerwizard
it bores me reading the messages......... it feels me sleppy............

Well that clears that up.
Angel
05-10-2005, 07:28 AM#6
Raptor--
Quote:
Originally Posted by PlasticAngel
I was plasnning on having a random trigger that generates where u hit. So would you like to help or where u just asking?
Angel

well if its just random you could have something very simple like, and note i'm coming up with this on the spot so pardon me if its not the best

Code:
//pre: units do 0 damage

E:
unit takes damage
A:
set life of damaged unit to (life of damaged unit - var_playerDamage[P# of owner of damaging unit])
set randint = random integer between 0 and 3
if randint = 0 then
    //headshot
    kill damaged unit
elseif randint = 1 then
    //armshot
    set var_playerDamage[P# of owner of damaged unit] =- 10
elseif randint = 2 then
    //legshot
    unit - set movement speed of damaged unit to (movement speed of damaged unit - 100)
elseif randint = 3 then
    //bodyshot
    set var_playerDamage[P# of owner of damaged unit] =- 5
    unit - set movement speed of damaged unit to (movement speed of damaged unit - 50)
endif

ps, random killing headshots will just be anoying probably
05-10-2005, 11:24 AM#7
PlasticAngel
So would you like to help out with the map, because I started to try and trigger but it takes time, and I need help with some camera triggers (not cinimatics) I can give you a link to the terrain pics if you want, they are looking pretty good.
Angel
05-10-2005, 01:37 PM#8
SektorGaza
I'll help you out.. if you help me out..
I need terrainer for my project, if you terrain for me, I'll trigger for you.
05-10-2005, 01:39 PM#9
Ant
Hmmm I don't think it'll be too difficult to do the triggers. Pass me the map, a few details, and I'll be glad to help.
05-11-2005, 04:12 AM#10
Raptor--
personally i think people should do their own core triggers and only get help on small parts or bugs... the only part of map making really worth it is the triggering, if you don't do that yourself then you're not making a map...
i mean sure making intricate terrain and units and balance is important, but its all superficial, the script is what breathes life into the map, without it you just have a pretty husk that sits there