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


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Making a Weapon.
xdeath Offline
Member

Posts: 70
Threads: 2
Joined: Aug 2011
Reputation: 1
#1
Making a Weapon.

I know its possible, but I'm not sure how I would go about making a usable weapon for a custom story.
Any help or advice would be appreciated.

PS: Sorry if this has been asked before.
08-31-2011, 07:12 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#2
RE: Making a Weapon.

Check these out and see if they would work for your story: http://frictionalgames.com/forum/thread-7518.html

Tutorials: From Noob to Pro
(This post was last modified: 08-31-2011, 09:29 PM by Your Computer.)
08-31-2011, 09:29 PM
Website Find
MrBigzy Offline
Senior Member

Posts: 616
Threads: 18
Joined: Mar 2011
Reputation: 8
#3
RE: Making a Weapon.

You can't actually equip a weapon though. Well it may be possible, since it was planned in Amnesia before but was scrapped. But there is code in the game for weapons, I'm just not sure if it was finished and if so, how it can be implemented properly.
09-01-2011, 01:36 AM
Find
Akasu Offline
Member

Posts: 62
Threads: 6
Joined: Aug 2010
Reputation: 2
#4
RE: Making a Weapon.

I made a script for killing enemies a while ago to be used in my custom story.

void OnStart()
{
AddGlobalVarInt("grunt1", 0);
AddTimer("timer123", 0, "spawn");
}

void spawn (string& asName)
{
AddEntityCollideCallback("sword1", "g1_"+(GetGlobalVarInt("grunt1")), "kill", true, 1); ;(sword1 is the name of the weapon, g1_0, g1_1, g1_2 etc. are the names of the enemies that you can kill with it)
SetGlobalVarInt("grunt1", 1+(GetGlobalVarInt("grunt1")));
AddTimer("timer", 0.1, "spawn"); ;(repeat this as many times as needed)
}

void kill (string &in asParent, string &in asChild, int alState)
{
FadeEnemyToSmoke(""+(asChild), true);
}

It's a basic collide callback so the weapon can be any kind of entity but the most sensible option would be one of the weapon models made by DonProtz or Amnesia's own dagger.
There are many down-sides in the script but it's the best I could think of.
09-01-2011, 12:50 PM
Find
xdeath Offline
Member

Posts: 70
Threads: 2
Joined: Aug 2011
Reputation: 1
#5
RE: Making a Weapon.

I'm ready and willing to right my own code for equipping and using weapons, I just need to know where to start. I have a total conversion set up, I just wish it could be more "total".
09-01-2011, 02:24 PM
Find
MrBigzy Offline
Senior Member

Posts: 616
Threads: 18
Joined: Mar 2011
Reputation: 8
#6
RE: Making a Weapon.

It won't be until the source is released, so you'll have to settle for scripting callbacks to make monsters disappear.
09-01-2011, 03:01 PM
Find
xdeath Offline
Member

Posts: 70
Threads: 2
Joined: Aug 2011
Reputation: 1
#7
RE: Making a Weapon.

(09-01-2011, 03:01 PM)MrBigzy Wrote: It won't be until the source is released, so you'll have to settle for scripting callbacks to make monsters disappear.

By "until the source is released" are you saying that Frictional plan to release it or you speculate that they will based on certain evidence?

I would also like to mention that I *believe* Nehrim total conversion of Oblivion was done without source code, but I'm not sure.
Anyways, your replies were appreciated I half expected to be told off for asking a "noob" question, or trying to ruin the amnesia experience.
09-01-2011, 08:11 PM
Find
MegaScience Offline
Member

Posts: 213
Threads: 1
Joined: Aug 2011
Reputation: 2
#8
RE: Making a Weapon.

(09-01-2011, 08:11 PM)xdeath Wrote: Anyways, your replies were appreciated I half expected to be told off for asking a "noob" question, or trying to ruin the amnesia experience.

I believe that kind of conduct is bannable here, anyway.
09-01-2011, 08:21 PM
Find
xdeath Offline
Member

Posts: 70
Threads: 2
Joined: Aug 2011
Reputation: 1
#9
RE: Making a Weapon.

(09-01-2011, 08:21 PM)MegaScience Wrote:
(09-01-2011, 08:11 PM)xdeath Wrote: Anyways, your replies were appreciated I half expected to be told off for asking a "noob" question, or trying to ruin the amnesia experience.

I believe that kind of conduct is bannable here, anyway.
Thats never stopped people from subtlety including insults in their replies.Dodgy

But on topic, I have my fingers crossed for HPL3. Which, if all goes well for Frictional, should be out before I finish my custom story.
And if I can't get weapons in HPL2, I will convert my custom story to HPL3.
09-01-2011, 08:53 PM
Find
MegaScience Offline
Member

Posts: 213
Threads: 1
Joined: Aug 2011
Reputation: 2
#10
RE: Making a Weapon.

I don't think they will port the entire game of Amnesia onto the new engine. Rarely have I seen a game company convert an entire game for a new engine without making it an entirely new release. Especially considering that would be a huge update download for every copy out in retail now. Maybe if they make an Amnesia 2.
(This post was last modified: 09-01-2011, 09:21 PM by MegaScience.)
09-01-2011, 09:19 PM
Find




Users browsing this thread: 4 Guest(s)