Frictional Games Forum (read-only)
Gun in Amnesia - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+--- Thread: Gun in Amnesia (/thread-27667.html)



Gun in Amnesia - Daemian - 12-13-2014





I've been playing with this lately, it's a basic gun+flashlight.
You can see in the video it can be used in several situations and objects.

I applied it only to enemies, but it can affect anything you want, like a vase, a rope, a glass, and act accordingly. Cause it uses entities as targets.

Since it replaces the lantern, there are a couple of limitations:
- You can't hide/draw the gun. (so, permanent light source)
- You shoot pressing F.
- Unlimited ammo. (Unless someone comes up with a system for it)

And one bug I found:
- The gun uses the function LookAtCallback to acquire targets, so you gotta look and shoot at the enemies to deal damage, if a second target appears right behind the first, the LookAtCallback may fail. So you gotta look away once so the code may detect the new target. But it's very rare bug, just don't spam enemies to the player and it's fine.

This feature it's very easy to apply in your mod, I'm gonna upload a small tutorial and zip with everything -it's not much, just some kb- in the Resources section so anyone can use it.


RE: Gun in Amnesia - Radical Batz - 12-13-2014

You should call this "If Amnesia was made by the cod creators"


RE: Gun in Amnesia - Rapture - 12-13-2014

If someone can figure out how to get/set an Entity/Player's Rotation, that would be a huge help in creating some weapon projectiles in Amensia.


Didn't think of using the LookAtCallback though (Even with it's strict limitations), nice job.


RE: Gun in Amnesia - Newsman Waterpaper - 12-13-2014

I think this is a cool idea, could this work with the enfield rifle from AMFP?


RE: Gun in Amnesia - Radical Batz - 12-13-2014

(12-13-2014, 07:09 PM)Newsman Waterpaper Wrote: I think this is a cool idea, could this work with the enfield rifle from AMFP?

Hmm it could, tho then you have to make a rifle as the hand model! I think what Daemen did pretty much is turn a lantern into a shooting flashing gun XD My question is: Is it going to be in anyone's mod lol....


RE: Gun in Amnesia - Daemian - 12-13-2014

(12-13-2014, 07:09 PM)Newsman Waterpaper Wrote: I think this is a cool idea, could this work with the enfield rifle from AMFP?
Yeah, totally. The gun is just an entity.


RE: Gun in Amnesia - Newsman Waterpaper - 12-13-2014

(12-13-2014, 08:08 PM)Mr. Badcatz Wrote: My question is: Is it going to be in anyone's mod lol....
If there's going to be a AMFP enfield rifle version, I MIGHT add it to The Streets of London but since it replaces the lantern and I think that Amnesia only allows one player hand model I have to decide to keep the lantern or ditch it for the rifle which would suck because I would really like to have the both of them.