[MOD] (Alpha 4) Turrets Use Shells v0.3

Started by Cala13er, May 21, 2014, 09:32:41 AM

Previous topic - Next topic

Cala13er

Turrets Use Shells

Description:
To add a bit of realism to the game of RimWorld, this mod makes turrets require shells to fire. (1 shell per bullet)

Changelog

//Version 0.2
--> Extra XML code to define what resource it uses
--> Extra XML code to define what the storage unit is called that will hold the resources
--> Extra XML code to define the search radius for the resources and storage unit.

//Version 0.1
--> Turrets now use shells for every 1 shot.
--> WeaponLoader (Hopper) which allows shells to be placed in them, turrets require a "WeaponLoader" with "Shells" iinside it for it to work.
--> Bullet consumption is now decided by the "burstShotCount" verb found in the xml def therefore can be easily used by modders!

Planned:

  • Way to craft shells
  • Turret that uses metal to shoot
  • Mod re-name (Too match all future content)
Mod Team:
For Developers, to use this mod:
I am more than happy to have people use this mod within theirs as long as credit is given and I am notified about it's use, same rules apply for modpacks.

As of v0.2, turrets now include 3 extra XML lines where you can tell it what resources it uses, what's the name of the hopper/storage that will be holding those resources and what radius it searches for the storage containing the resources.

Downloads:

mrofa

#1
If turret shot burst it will use 1 ammo per burst ?

Edit:
Ahh me being stupid just reading the assembly sorry :D
All i do is clutter all around.

Celthric Aysen

My DeviantART|E-Vehicles|Flebe's  Channel
"♫"Every people that i see i will never understand"♪"

iame6162013

Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"
Robert J. Hanlon: "Never attribute to malice that which is adequately explained by stupidity."

Celthric Aysen

My DeviantART|E-Vehicles|Flebe's  Channel
"♫"Every people that i see i will never understand"♪"

mrofa

Quote from: Blackjack1000K on May 21, 2014, 12:59:42 PM
can you maybe include the source?

ILspy mate, thers no point of adding .cs if they both have the same thing.
All i do is clutter all around.

Celthric Aysen

Quote from: mrofa on May 21, 2014, 02:36:22 PM
Quote from: Blackjack1000K on May 21, 2014, 12:59:42 PM
can you maybe include the source?

ILspy mate, thers no point of adding .cs if they both have the same thing.
ILSpy messes some of these codes up.
My DeviantART|E-Vehicles|Flebe's  Channel
"♫"Every people that i see i will never understand"♪"

Killaim

nice - if raiders also now knew to ignore a turret that was out of ammo.

WolfgangPolska

Can you add Rocket turrets, or cannon turrets with extreme high range and damage, but very low rate of fire. They will use shells or rockets.
I have no idea how, but it works!!!

Celthric Aysen

#9
The next version of my mod will have cannon turrets.
Im also planning on adding Rocket Defenses,
Edit: i forgot to include the link
http://goo.gl/uJTALx
My DeviantART|E-Vehicles|Flebe's  Channel
"♫"Every people that i see i will never understand"♪"

mrofa

Quote from: WolfgangPolska on May 22, 2014, 08:28:12 AM
Can you add Rocket turrets, or cannon turrets with extreme high range and damage, but very low rate of fire. They will use shells or rockets.

This mod got a sniper turret that act like, cannon one you descriped


All i do is clutter all around.

Cala13er

However the sniper turret doesn't use bullets. Blackjacks cannon however. Does.

mrofa

Quote from: Cala13er on May 22, 2014, 01:14:25 PM
However the sniper turret doesn't use bullets. Blackjacks cannon however. Does.
In both cases you got ready code so its not hard to make sniper turret use bullets :D
Was thinking of adding it to clutter turret but i dont know how to make that bullet stack and hopper detection range higher atleast not yet :D
All i do is clutter all around.

Cala13er

#13
Quote from: mrofa on May 22, 2014, 03:19:08 PM
Quote from: Cala13er on May 22, 2014, 01:14:25 PM
However the sniper turret doesn't use bullets. Blackjacks cannon however. Does.
In both cases you got ready code so its not hard to make sniper turret use bullets :D
Was thinking of adding it to clutter turret but i dont know how to make that bullet stack and hopper detection range higher atleast not yet :D

Wait so you want it to detect shells in a hopper within a higher radius and use them instead of  only shells in an adjacent hopper? That's not too hard.

mrofa

It wont be a hopper but yes thats my general idea.
All i do is clutter all around.