Author Topic: Suggestion: 3 ideas which may be workable  (Read 9414 times)

Offline ohartenstein23

  • Commander
  • *****
  • Posts: 1931
  • Flamethrowers fry cyberdisk circuits
    • View Profile
Re: Suggestion: 3 ideas which may be workable
« Reply #15 on: December 16, 2016, 10:07:22 pm »
Clockwork gun is just auto.

Offline Starving Poet

  • Colonel
  • ****
  • Posts: 265
    • View Profile
Re: Suggestion: 3 ideas which may be workable
« Reply #16 on: December 16, 2016, 11:37:14 pm »
clockwork gun is auto only.

Offline Ewokgod

  • Sergeant
  • **
  • Posts: 26
    • View Profile
Re: Suggestion: 3 ideas which may be workable
« Reply #17 on: December 18, 2016, 03:12:31 am »
OK, I've read (and tried to understand) the suggested documents. I haven't programmed anything since Sinclair Basic so the process is not perfect :)

A question that is not related my previous ideas.

A grenade is disposable, right? By disposable, I mean that once it explodes, it is gone from the game.

Does the engine allow for a disposable gun/melee weapon, a weapon that acts normally for one use but is removed from the game when it is used? I am looking at the docs and cannot read anything that says it cannot exist within the engine.

Offline ohartenstein23

  • Commander
  • *****
  • Posts: 1931
  • Flamethrowers fry cyberdisk circuits
    • View Profile
Re: Suggestion: 3 ideas which may be workable
« Reply #18 on: December 18, 2016, 03:21:21 am »
Yes, you can make items that disappear when used up - ammo items already do this.  If you define an ammo count on the weapon itself instead of giving it ammo items, the weapon disappears when used up.  Dioxine did this to make Panzerfausts a single-use rocket launcher.  Not sure about melee weapons, but I think they also can disappear - I think the short bamboo combat stick does eventually break.

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11452
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Suggestion: 3 ideas which may be workable
« Reply #19 on: December 18, 2016, 03:49:32 am »
I failed to make a melee weapon with a clip with limited charges... There are weird effects, up to CTD.
I didn't try setting it on the weapon itself, but I do not expect anything better.

Offline Ewokgod

  • Sergeant
  • **
  • Posts: 26
    • View Profile
Re: Suggestion: 3 ideas which may be workable
« Reply #20 on: December 19, 2016, 01:40:05 am »
I'm willing to have a go at making something. Don't expect a huge deal or anything anytime soon :)

Once you've programmed an item and inserted it into Openxcom, how do you test that it works?

Offline ohartenstein23

  • Commander
  • *****
  • Posts: 1931
  • Flamethrowers fry cyberdisk circuits
    • View Profile
Re: Suggestion: 3 ideas which may be workable
« Reply #21 on: December 19, 2016, 01:43:37 am »
Try a new battle - all possible battlescape items are available to load on your craft there.

Offline Ewokgod

  • Sergeant
  • **
  • Posts: 26
    • View Profile
Re: Suggestion: 3 ideas which may be workable
« Reply #22 on: December 19, 2016, 01:46:14 am »
Thanks