Post a new topicPost a reply Page 1 of 1   [ 7 posts ]
Author Message
 Post subject: Skill Casting Guards!
PostPosted: Wed 13 Apr 2016, 17:24 
Geneshift Creator
User avatar

Joined: Sat 14 Mar 2009, 17:50
Posts: 6023
Location: Sydney, Australia
Gender: Male
Today I'm going to code in a very cool new feature - skill casting guards! We've got 33 skills to play with and can have all sorts of awesome new enemy types to fight against. You'll be dodging enemy plasma balls, shooting through the cracks of enemy force fields, using your skills to reveal sneaky invisible enemies and more! Not only will this make Stealth significantly more diverse and entertaining to play, but it will also teach players how to fight AGAINST skills in PvP, which is just as, if not more important than using the skills themselves.

Image

Automatic Skill Casting
In the map editor I will have the ability to add skills to the guards. I'm thinking you will be able to customise a few things. The skill itself, the skill level, what difficulty levels the skill will work in, the casting rate, a damage multiplier and a few other things. There will then be an add skill button which adds the skill to the list. Here is a very ugly mockup of how it will look:

Image

So down the bottom I'll have a skill dropbox, you select a skill like Force Fields. Then you configure the level and what difficulties this will work in. Then there are a few specific properties just for Force Fields. I'll need to code these in on a skill by skill basis. Here you could have a damage multiplier on the explosion, an enemy range the guard must be within before he casts the skill, and a timer which makes him cast the skill every 15s. You then click the Add Skill button and it appears up the top left in a list, with numbers underneath showing what difficulties this skill will be used in. Lots of configuration here!

Next up I need to think of how each of these skills are going to work. Of course the skills in MF are very complex and I'll never code an AI that can cast the skills as well as a human player will, but that's ok. The guards don't need to cast the skills in a super smart way, they just need to do something interesting so we have lots of varied enemies to fight. Now skills in MF can be broken into 3 main categories:

Pure Passive Skills
These skills will be very easy for me to code in. I won't really have to add any specific AI for these skills, simply give the guard the passive and let them play as normal. If they have Final Focus they will simply gain accuracy when it triggers, if they have Disabling Drop they will disable you if they happen to land on you (which a map maker can configure with way-points), and if they have Static Charges they will naturally gain mana as they shoot at you (and give you a very nice positive penalty to exploit too!). Easy stuff!

Add-On Passives
These skills are also going to be quite easy to code in. A skill like Stagnation isn't really going to change the AI behaviour of the guard, he's still going to cast Radiate when an enemy is within range regardless. There are a few skills in this category which need special attention though, such as Spike Trap and Smoke Bomb (which are really more like actives that happen to cast at the same time as their base). So I can treat these like the proper actives.

Active Skills
This is the tricky bit and I'd love some ideas here. There are a lot of active skills which need specific AI to determine exactly WHEN to cast the skill, and perhaps WHAT to do once the skill is cast. This has to be done on a skill by skill basis, so give me your ideas! Again the guards don't need some super amazing AI here, just to cast the skill at an interesting time based on a few conditions. The whole point here is to create a diverse and fun bunch of enemies to fight. Let's go through these active skills and see what sort of AI could be used for the casting:

Force Fields: Simplest approach would be to cast this as soon as they enter combat, which would effectively make them harder to aim at. Plus Bouncing Bullets would passively bounce bullets back at the player and the explosion would hurt anyone nearby.
Radiate: Once they get within 50% of the Radiate range they auto-cast it.
Frenzy: Just cast as soon as they enter combat and keep it on till they die or run out of mana (or maybe the casting frequency could toggle it off after a configurable Xs?)
Assault Armor: Cast once their health gets below X%.
Mana Leech: Very simple, aim at the enemy and spam spam spam!

Invisibility: Hoo boy how do this one? There's really no point doing this unless they're moving. But in general it could be fun if the guards keep toggling invis on and off and moving around, popping into and out of view and taking you by suprise. Maybe they cast it as soon as they spawn and it will automatically disable as soon as they start firing at you. On these guards you could give them 9999 mana so it doesn't run out. Thoughts welcome here.
Venom Shot: Spam that shit!
Blade Fury: Tricky one! They need AI for when to cast it on and when to cast it off. They should cast it on when they get within a certain range, and then cast it off as soon as the burst becomes available (and they're in range). Would be fun to time their bursts and dodge the attacks.
Spike Trap: Basically needs to be treated as a separate active to BF. If a guard has BF they should cast it from a further range and aim the spikes 10m infront of the player. Alternatively just aim them directly at the player as thsi would still reduce the players movmeent options.
Teleportation: This one will be sick. I reckon they just choose a random spot within a 10m radius of the player and teleport to it, taking the player by suprise and requiring quick reflexes to dodge.
Black Hole: Same logic as Radiate, cast once within a sufficient range to slow you down. Probably some sort of smart AI like don't cast on a player if anothe guard already has them locked in a BH, but wait till that expires then take turns.
Smoke Bomb: Like Spikes it's pretty much a separate skill. But maybe the behaviour should still be the same, just cast it when an enemy is in range of the Smoke Bomb instead of the BH? They should probably be smart enough to leave the smoke bomb after casting it though!

Self Repair: When the guard's health goes below 30% turn SR on. Once it reaches 100% turn it off again.
Plasma: Point and click baby!
Energize: Easy one, just cast it once as soon as they spawn.
Shockwave: Lots of options here but the simplest is simply to cast it on a player when they are A) in range and B) holding barrier. The revealing property isn't really necessary for the AI anyway, and in doing this they will probably freeze a few of the player's incoming bullets which will be nice. Smart players could even exploit this by holding barrier very quickly just to get the positive penalty damage reduction.
Lasing Orb: I'm thinking simplest approach here is to simply cast it when they spawn and barrier everywhere to drag it around. Dealing more damage and moving in barrier nice and fast. The Orb itself will need to be deleted either when the guard dies or when the next stage begins.
Bullet Time: This one is a bit tricky as there are so many ways to use the skill. But I think a fun mechanic to play against would simply be a guard who toggles BT on when they enter combat, and then toggles it off after Xs (configured in the casting time). This will routinely unleash a giant blast of seeking bullets at the player which you need to dodge. These sort of enemies would be great to have in Filtration for example so your Shockwave has an extra nice use to freeze these bullet blasts.
Stolen Seekers: This is an add-on to BT but I think if a guard has this coded in the AI could be tweaked to instantly toggle BT off as soon as they have 5 bullets inside the BT.

Of course I welcome ideas and suggestions for how these skills will work, but even with these simple rules it's gunna be great! Even something as simple as having 2 venom guards in the back, 2 Force Field guards in the front, and a dude with Static Charges in the middle would make for some very interesting mechanics. How do you play it? Before you just killed them all in whatever order you wanted. Now though? Maybe you try and kill the 2 Force Field guards first before their FF explosion triggers. Then you intentionally get hit by a venom shots for the seeking positive penalty, then finish the venom dudes off to avoid too much DOT damage. Then finish off all the normal unskilled guards and save the Static Charges guy for last because his positive penalty is sooo sweet and you want the free mana regen. Then from out of no where a boss teleports behind you and you gotta run run run!! Great fun!

Waypoint Skill Casting
In addition to these automatic skill castings, I will add the ability to cast skill at specific moments determined by the guards waypoint system. Just as you can already configure a waypoint to start firing automatically at a certain spot, I will have the ability to automatically cast a skill at a certain time when they reach that waypoint. This way map makers can script more advanced skill usage if they need to. This might be best used with skills like Invis, where they cast it on at a certain waypoint, move to another waypoint and then cast it off again. That sorta thing. I'll have to think about how this will work with each specific active skill though and might need to provide a few additional customisation options.

Anyway gimme your ideas and feedback! This will probably take a week or two to code in but it will totally be worth it. After this maybe I'm confident enough to tackle AI vehicle driving and chemical placement.. but one thing at a time ;)

_________________
Creator of Geneshift and Nik Nak Studios. Hope you enjoy the game!


Top
 Profile  
Reply with quote  
 Post subject: Re: Skill Casting Guards!
PostPosted: Wed 13 Apr 2016, 18:16 
Walking Encyclopedia
User avatar

Joined: Sun 05 Jul 2009, 09:08
Posts: 3220
Location: Singapore
Gender: Male
Notes/Suggestions:
Active in green if I have a completely different suggestion.

Force Fields: I have a more interesting behavior to suggest. When the guard isn't shooting at you, he will actively face one of the plates towards his target - very useful behavior if you pair it with firepattern/delay, a weapon like knife or if guard is reloading.

Frenzy: The latter is preferable; 0 means keep it on forever, timer will determine how long he keeps frenzy on.


Invisibility: A few ways I want to use it: waypoint invisibility, turning on invisibility when disengaging like my above suggestion with Force Fields (timer sets how long to stay invisible instead of strictly by firepattern, useful for making the guards escape/chase with dash), becoming permanent invisible and waiting for the player to come. I can imagine this being really good for advertising sonar cells' usefulness.

Blade Fury: I think whether they should burst or not should be determined by the "cooldown" setting - 0 means leaving the blades on(permanent, maybe even no durability loss).

Spike Trap: I note that Spike Trap should override BF if both skills are ever used together because they'd conflict too much.

Teleportation: It should simply teleport to the side of the player(left or right determined by guard's hand), offset by about 5m. It would be incredibly silly if my guard teleports into the ground below instead of on the player, especially when something requiring accuracy like Disabling Drop is being used. Using lead-target and no-lead target determines if the guard teleports ahead or directly on the player's last seen location.

Smoke Bomb: You could make the guard leave the smoke bomb if their firepattern tells them that they are not shooting, and just continue shooting at last seen location if they are shooting.


Self Repair: I'd actually like to have a lot more control for Self Repair if possible - I'd want the guard to SR at a HP I want and not just 30%, how long he SRs for(both for timer & HP value) - this is something that can't be done with waypoints. I might even want a guard who is permanently in SR.

Plasma: Use lead target behavior based on their guard setting.

Energize: If guard has "Phasic Bullets", I think you should code in allowing guards to continue shooting if they can find a way to ricochet the bullets to hit you.

Shockwave: Would be nice if there is a way to just make a guard spam Shockwave 1 non-stop regardless of range though...

Lasing Orb: I think a better way to code it in is to make them cast the orb when they first enter Barrier and then drag it around - no difference if you make the guard barrier from the start, but a really good way to make sure the guard isn't bogged down until he enters combat. The orb itself should fade away overtime like if the player leaves the game rather than last the rest of the stage. Remember to make orb's position reset if players fail the stage.

Stolen Seekers: Replace "5" with "X" as indicated by the cooldown setting. Since BT & SS settings may clash, you'll have to make calculations to make sure BT will be in rest state and be in the correct cooldown.


Waypoint casting is certainly excellent.
(edit: formatting)

edit2: As discussed in chatbox, give guards who have skills mutant arms to indicate they have some special ability, since heads are already used to indicate HP.

_________________
ImageImage
Member of [TG] Team Gamble
[[STM's Random Stuff]]
Credits to Illusion & Affle for my signature & avatar respectively!


Top
 Profile  
Reply with quote  
 Post subject: Re: Skill Casting Guards!
PostPosted: Wed 13 Apr 2016, 18:53 
Geneshift Creator
User avatar

Joined: Sat 14 Mar 2009, 17:50
Posts: 6023
Location: Sydney, Australia
Gender: Male
Good ideas STM, I agree that some skills might need more customisation to maximise the diversity. So I'll rework the proposed system to include specific configurations on a skill-by-skill basis. For example Force Fields could have a casting range, Self Repair could have a custom min/max health range, and Teleportation could have a custom range for how close to the enemy he should teleport. I've edited my original post with a very ugly mockup example of how this could look in the editor.

Btw I agree that giving the guards mutant arms would be a great way to indicate that they have some special ability (wonder if it should show for passive skills too or just actives).

_________________
Creator of Geneshift and Nik Nak Studios. Hope you enjoy the game!


Top
 Profile  
Reply with quote  
 Post subject: Re: Skill Casting Guards!
PostPosted: Sat 16 Apr 2016, 23:32 
Geneshift Creator
User avatar

Joined: Sat 14 Mar 2009, 17:50
Posts: 6023
Location: Sydney, Australia
Gender: Male
Oh hellllls yeah!!!


Image

_________________
Creator of Geneshift and Nik Nak Studios. Hope you enjoy the game!


Top
 Profile  
Reply with quote  
 Post subject: Re: Skill Casting Guards!
PostPosted: Mon 18 Apr 2016, 04:53 
Gobbling Turkey
User avatar

Joined: Fri 11 Apr 2014, 03:26
Posts: 177
Location: Florida
Gender: Male
I imagine a few neat tactics that an organized regime might employ, using these abilities.

First off is teleporting knifers with abilities such as Radiate and Smoke Bomb. They could use Bullet time too, if using knife. Asylum comes to mind with this strategy.

Force Field roman shield formation.

Invisibility is a really trolly ability. Could have a sentry guarding an area, and you'd never know!

Hooo boy, if you have 3 guards, with alternating delays for using it in the player's vicinity, you could have a wall of bullet proof. Probably with Lasing too, that mana regen.

Well that's all my ideas for this topic. Sounds it'll be one heck of a feature. Especially if Knickers can copy abilities you use, like Invisibility.

_________________
DISCLAIMER; Thoust hereith claim I grammer and spelling to be of that which is not of or in but as with above most yet least excellent sarcastic. Not yours, my. IE; dibs.

I do have a life. I'm just trying really hard to not have one.


Top
 Profile  
Reply with quote  
 Post subject: Re: Skill Casting Guards!
PostPosted: Mon 18 Apr 2016, 17:04 
Geneshift Creator
User avatar

Joined: Sat 14 Mar 2009, 17:50
Posts: 6023
Location: Sydney, Australia
Gender: Male
Good ideas. Especially Knickers copying your abilities.. I'll have to think of a smart way to do this. It could be as simple as knickers automatically copying you when you go Invis. Just gotta think of how it would work in coop. Perhaps whoever controls Knickers determines his behaviour.

_________________
Creator of Geneshift and Nik Nak Studios. Hope you enjoy the game!


Top
 Profile  
Reply with quote  
 Post subject: Re: Skill Casting Guards!
PostPosted: Fri 22 Apr 2016, 02:49 
Mutant
User avatar

Joined: Wed 23 Nov 2011, 06:06
Posts: 338
Location: USA
Gender: Male
Keep at it, ben

_________________
Image
Cash wrote:
The subvein family is a dysfunctional family. But a family nonetheless.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 1   [ 7 posts ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron