Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Firearms  (Read 1530 times)

DarkSim

  • Bay Watcher
    • View Profile
Firearms
« on: November 09, 2008, 06:37:16 am »

So I've been thinking of modding in some muskets for the dwarves and other assorted firearms to the other races.

How do I go by doing this? I've tried modifying the crossbow to no avail :( Are there any mods that already DO have firearms that I can sort of take apart for my df? (search yielded nothing :()
Logged

Thuellai

  • Bay Watcher
  • Nobody's business but the Turks
    • View Profile
Re: Firearms
« Reply #1 on: November 09, 2008, 06:44:03 am »

One of the ones in the modbase cumulative pack (my guess is Martmod, though it could also be my modbase-compatible AoS, which isn't in the pack on the basis that it's not my mod to release) has gnomes, who have muskets.
Logged
When you're following an angel, does it mean you have to throw your body off a building?

"So kids, what story do you want me to read to you tonight?"
"Oooh!  Oooh!  Goldibeard and the The Rotting Corpses!"
~LegacyCWAL

DarkSim

  • Bay Watcher
    • View Profile
Re: Firearms
« Reply #2 on: November 09, 2008, 06:55:34 am »

Thanks, I'll give it a try and see what happens!
Logged

Shoruke

  • Bay Watcher
  • There's a Prinny in Fire Emblem, dood!?
    • View Profile
Re: Firearms
« Reply #3 on: November 09, 2008, 11:18:38 am »

If you want to mod in weapons, you can easily just type what you want into the raw files...


item_weapon.txt
(to make a weapon a lot like a crossbow that uses different ammo; you can change things like weight and damage easily)
[ITEM_WEAPON:ITEM_WEAPON_GUN]
[NAME:gun:guns]
[DAMAGE:70:BLUDGEON]
[WEIGHT:40]
[SKILL:HAMMER]
[RANGED:GUN:BULLET]
[TWO_HANDED:0]
[MINIMUM_SIZE:5]
[MATERIAL_SIZE:3]



Item_ammo.txt
(this will make something a lot like a crossbow bolt, but only guns can use it, and it does a lot more damage)
[ITEM_AMMO:ITEM_AMMO_BULLET]
[NAME:bullet:bullets]
[CLASS:BULLET]
[DAMAGE:350:PIERCE]
Logged
The Unforgotten Beast, Shoruke, has come! A pale-skinned human. It has heterochromatic eyes and moves in an unpredictable manner. Beware its rapier wit!

Eatnobles4breakfast

  • Bay Watcher
    • View Profile
Re: Firearms
« Reply #4 on: November 09, 2008, 04:40:22 pm »

Yeah, any long range weapon is realy a cross-bow or a bow, with a different name.
You can change the name, give the weapon a slashing ability (if you like a bayonett on your rifle), make it heavier or take more materials to make...
That's about it...
Logged
Dastog Eatsnobles is posessed with a lazy mood!
Dastog Eatsnobles cancels be useful: in a lazy mood
Dastog Eatsnobles has claimed a wooden couch!
Dastog Eatsnobles is now a legendary peasant!

DarkSim

  • Bay Watcher
    • View Profile
Re: Firearms
« Reply #5 on: November 09, 2008, 06:04:27 pm »

Oh wow thanks!

So if I add that into the game how would I go by making it? Same way as a crossbow?
Logged

LegoLord

  • Bay Watcher
  • Can you see it now?
    • View Profile
Re: Firearms
« Reply #6 on: November 09, 2008, 06:07:49 pm »

You have to add it to the appropriate entity's profile.
Logged
"Oh look there is a dragon my clothes might burn let me take them off and only wear steel plate."
And this is how tinned food was invented.
Alternately: The Brick Testament. It's a really fun look at what the bible would look like if interpreted literally. With Legos.
Just so I remember

Demonic Gophers

  • Bay Watcher
    • View Profile
    • The Tunnels
Re: Firearms
« Reply #7 on: November 09, 2008, 06:55:48 pm »

Yeah, any long range weapon is realy a cross-bow or a bow, with a different name.
You can change the name, give the weapon a slashing ability (if you like a bayonett on your rifle), make it heavier or take more materials to make...
That's about it...

Or a blowgun.
Logged
*Digs tunnel under thread.*
I also answer to Gophers and DG.
Quote from: Shades of Gray
*Says something inspiring and quote worthy.*
Opinions are great, they're like onions with pi.

Rhenaya

  • Bay Watcher
  • Usstan tlun natha hargluk ssinssriggin ilythiiri!
    • View Profile
    • X-Fire Profile
Re: Firearms
« Reply #8 on: November 09, 2008, 07:00:05 pm »

[RANGED:GUN:BULLET]

you can put in random skills for new weapons? is it possible to make entity names for it? like "rifleman/rifledwarf" and such?
Logged
User Profile: http://df.magmawiki.com/index.php/User:Rhenaya
Mods: http://dffd.wimbli.com/who.php?id=554

From "Angroshs Kinder" Das schwarze Auge Zwergenhandbuch - (Angrosh Children, the dark eye, german pen&paper, dwarven handbook):
"Elves!? Their men dont wear beards, and their women bathe nacked to lure you into the water and drown you. Thank Angrosh they are as ugly as the day and all big and skinny."

Virroken

  • Bay Watcher
    • View Profile
Re: Firearms
« Reply #9 on: November 09, 2008, 08:40:08 pm »

You have to replace one of the old skills with the new skill name.

Instead of, say, bowmen, you'd have gunmen. In reality, they're the same thing but with prettier names. Gameplay isn't really affected unless you do damage:100000:blunt.
Logged

Dakira

  • Bay Watcher
  • [LURKER]
    • View Profile
Re: Firearms
« Reply #10 on: November 11, 2008, 03:00:15 pm »

I'd like a copy of this when you're done.
Logged
There's no such thing as useless science. Now we need to weaponize this.
Everyone should:
play checkers.
fight clowns with water.