View unanswered posts | View active topics It is currently Wed Dec 25, 2024 8:05 pm



Reply to topic  [ 8 posts ] 
 The AI 
Author Message
User avatar

Joined: Mon Oct 11, 2010 1:15 pm
Posts: 594
Location: Finlandia
Reply with quote
Post 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)


Wed Nov 28, 2012 7:52 pm
Profile
User avatar

Joined: Fri Jun 29, 2012 11:40 am
Posts: 149
Reply with quote
Post 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?


Wed Nov 28, 2012 8:49 pm
Profile
User avatar

Joined: Mon Oct 11, 2010 1:15 pm
Posts: 594
Location: Finlandia
Reply with quote
Post 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.


Wed Nov 28, 2012 9:06 pm
Profile
User avatar

Joined: Tue Jun 12, 2007 11:52 pm
Posts: 13144
Location: Here
Reply with quote
Post 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.


Wed Nov 28, 2012 10:05 pm
Profile
User avatar

Joined: Mon Oct 11, 2010 1:15 pm
Posts: 594
Location: Finlandia
Reply with quote
Post 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.


Thu Nov 29, 2012 12:27 pm
Profile
DRL Developer
DRL Developer

Joined: Tue Aug 11, 2009 5:09 am
Posts: 395
Reply with quote
Post 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.


Thu Nov 29, 2012 4:16 pm
Profile
User avatar

Joined: Mon Oct 11, 2010 1:15 pm
Posts: 594
Location: Finlandia
Reply with quote
Post 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! :)


Thu Nov 29, 2012 4:54 pm
Profile
User avatar

Joined: Tue Jul 24, 2007 1:13 am
Posts: 1183
Location: eating sock's face like a cupcake
Reply with quote
Post Re: The AI
can't wait till you 1.05 untitled 4k.


Fri Nov 30, 2012 1:44 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 8 posts ] 

Who is online

Users browsing this forum: No registered users


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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.257s | 13 Queries | GZIP : Off ]