Data Realms Fan Forums
http://forums.datarealms.com/

The AI
http://forums.datarealms.com/viewtopic.php?f=4&t=33200
Page 1 of 1

Author:  4zK [ Wed Nov 28, 2012 7:52 pm ]
Post subject:  The AI

Can someone please tell me what's the problem with the human AI using guns that shoot AEmitters?

I understand that the weapon class system should smartify the AI on what weapon to use, but there's still some problem with shooting weapons that don't use MOPixel particles as the round.

Could this have something to do with expecting particles other than MOPixels to be something explosive and dangerous to use? (I don't really see why they wouldn't fire those either, though)

Author:  Luringen [ Wed Nov 28, 2012 8:49 pm ]
Post subject:  Re: The AI

I have no experience in weapons modding at all, so this is just a wild guess at a solution. Could it be possible to shoot zero-damage bullets along with the actual projectiles? It might be a pain if it has to go at the same speeds as the actual projectiles, but could it work?

Author:  4zK [ Wed Nov 28, 2012 9:06 pm ]
Post subject:  Re: The AI

I could probably do it through some lua-fiddling, but it has been very simple and easy going through AEmitters.

I should mention now though - what I'm talking about is shooting AEmitters that emit the actual damaging particle, along with some special effects. Having the weapon properties to apply to the particle is easier this way, since everything's created through ini code and not lua.

Author:  CaveCricket48 [ Wed Nov 28, 2012 10:05 pm ]
Post subject:  Re: The AI

http://forums.datarealms.com/viewtopic.php?p=499964#p499964

The AI will read the FireVelocity for fired AEmitters as either the AEmitter's ini FireVelocity (assuming it's directly fired from the gun) or the AEmitter's sharpness, based on which is higher.

Author:  4zK [ Thu Nov 29, 2012 12:27 pm ]
Post subject:  Re: The AI

Doesn't work for some reason. I get it now though, the AI thinks it's smart by trying to fire the "slow velocity particle" a bit higher in order to hit the target. Though, my actors end up standing in front of the enemy firing in a 45° angle.

EDIT: Ah, do the AEmitters have to be GetsHitByMOs = 1?
EDIT2: Never mind, they still crawl like idiots until they're 2 feet away from the enemy.

Author:  Abdul Alhazred [ Thu Nov 29, 2012 4:16 pm ]
Post subject:  Re: The AI

The only way to communicate to the AI how the weapon should be used is though the particle in the magazine. Therefore the particle must have similar properties as the method you use to inflict damage.

One example is the Imperatus shotgun, it shoots an emitter that fire the damaging particles in a burst. The emitter is HitsMOs=0 but have the same LifeTime, AirResistance, AirThreshold and GlobbalAccScalar as the damaging particles.

Other examples are the Coalition Missile Launcher and Grenade Launcher.

Author:  4zK [ Thu Nov 29, 2012 4:54 pm ]
Post subject:  Re: The AI

They start crawling towards the enemy whereas with another weapon they crouch and shoot. I tried adding the properties of the particle, but it didn't work. I'll look into the weapons you mentioned and try to come up with something.

EDIT: Never mind. It works. Brilliant. Thanks guys! :)

Author:  NeoSeeker [ Fri Nov 30, 2012 1:44 am ]
Post subject:  Re: The AI

can't wait till you 1.05 untitled 4k.

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/