Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Gun in Amnesia
Daemian Offline
Posting Freak

Posts: 1,129
Threads: 42
Joined: Dec 2012
Reputation: 49
#1
Gun in Amnesia





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.

12-13-2014, 05:50 PM
Find
Radical Batz Offline
Posting Freak

Posts: 953
Threads: 145
Joined: Dec 2013
Reputation: 25
#2
RE: Gun in Amnesia

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

12-13-2014, 06:19 PM
Find
Rapture Offline
Posting Freak

Posts: 1,078
Threads: 79
Joined: May 2011
Reputation: 30
#3
RE: Gun in Amnesia

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.
12-13-2014, 06:29 PM
Find
Newsman Waterpaper Offline
Senior Member

Posts: 735
Threads: 20
Joined: May 2013
Reputation: 39
#4
RE: Gun in Amnesia

I think this is a cool idea, could this work with the enfield rifle from AMFP?
12-13-2014, 07:09 PM
Find
Radical Batz Offline
Posting Freak

Posts: 953
Threads: 145
Joined: Dec 2013
Reputation: 25
#5
RE: Gun in Amnesia

(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....

(This post was last modified: 12-13-2014, 08:09 PM by Radical Batz.)
12-13-2014, 08:08 PM
Find
Daemian Offline
Posting Freak

Posts: 1,129
Threads: 42
Joined: Dec 2012
Reputation: 49
#6
RE: Gun in Amnesia

(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.

12-13-2014, 08:17 PM
Find
Newsman Waterpaper Offline
Senior Member

Posts: 735
Threads: 20
Joined: May 2013
Reputation: 39
#7
RE: Gun in Amnesia

(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.
12-13-2014, 08:58 PM
Find




Users browsing this thread: 1 Guest(s)