Author Topic: [OSP][CODE] Grenades and Explosions (Originally by Beaver)  (Read 4261 times)

0 Members and 1 Guest are viewing this topic.

ScreamingCommie

  • Squire
  • *
  • I don't have to outrun the bear, just you.
    • Steam - 76561198022610289
    • YouTube - THE SCREAMING COMMUNIST
    • View Profile
  • Faction: Vaegir
  • MP nick: ScreamingCommie
Hi everyone, I don't know if this is worthy of its own topic, but here is a fixed version of Beaver's grenade script that has existed http://mbmodwiki.ollclan.eu/Grenade here for a long time. Thanks to the help of DuskVoyager, I have made a fixed version, that is also much more user friendly and modular. Note this is only tested in SP, but it could be converted to MP pretty easily.

An example grenade to put in your module_items.py

(click to show/hide)

For your module_scripts.py

(click to show/hide)

Go crazy you guys

CREDITS:
Beaver for the original script
DuskVoyager for fixing the "WTF the grenades keep blowing me up for no reason" bug.
TaleWorlds Forum's all around most Terrible Person.

NUQAR'S Kentucky "Nuqar" James XXL

  • BioAfrikaner
  • Duke
  • *
  • schwarzes Gote-Mädchen mit durchdringender Blick
    • Twitter - yaqobhyndes
    • View Profile
    • Artwork Gallery
  • Faction: Khergit
Re: [OSP][CODE] Grenades and Explosions (Originally by Beaver)
« Reply #1 on: May 10, 2015, 11:39:57 PM »
Whoa, didn't know ti_on_missile_hit had a parameter for the shooter. Nice find.

ScreamingCommie

  • Squire
  • *
  • I don't have to outrun the bear, just you.
    • Steam - 76561198022610289
    • YouTube - THE SCREAMING COMMUNIST
    • View Profile
  • Faction: Vaegir
  • MP nick: ScreamingCommie
Re: [OSP][CODE] Grenades and Explosions (Originally by Beaver)
« Reply #2 on: May 11, 2015, 04:48:02 AM »
Whoa, didn't know ti_on_missile_hit had a parameter for the shooter. Nice find.

Yeah, there's all sorts of cool **** you can do with triggers. it's always awesome when you find something new.
TaleWorlds Forum's all around most Terrible Person.

Antoni

  • Sergeant
  • *
    • View Profile
  • Faction: Sarranid
Re: [OSP][CODE] Grenades and Explosions (Originally by Beaver)
« Reply #3 on: October 17, 2015, 12:30:40 PM »
nice, i need it.
 

Nikephoros

  • Language Moderator
  • *
  • Feccia di Bisanzio
    • Steam - Nikephoros
    • Twitch.tv - AB_Nikephoros
    • View Profile
  • Faction: Vaegir
  • MP nick: AB_Nikephoros
  • M&BWB
Re: [OSP][CODE] Grenades and Explosions (Originally by Beaver)
« Reply #4 on: November 08, 2015, 08:32:47 PM »
Would it be possible to assign these to another kind of weapon, like a crossbow?
And if so, does it need to be applied on the projectile side or on the weapon itself?
(click to show/hide)


Ti vedo... E ti piango.

NUQAR'S Kentucky "Nuqar" James XXL

  • BioAfrikaner
  • Duke
  • *
  • schwarzes Gote-Mädchen mit durchdringender Blick
    • Twitter - yaqobhyndes
    • View Profile
    • Artwork Gallery
  • Faction: Khergit
Re: [OSP][CODE] Grenades and Explosions (Originally by Beaver)
« Reply #5 on: November 08, 2015, 08:43:25 PM »
Yes, and projectile.

Nikephoros

  • Language Moderator
  • *
  • Feccia di Bisanzio
    • Steam - Nikephoros
    • Twitch.tv - AB_Nikephoros
    • View Profile
  • Faction: Vaegir
  • MP nick: AB_Nikephoros
  • M&BWB
Re: [OSP][CODE] Grenades and Explosions (Originally by Beaver)
« Reply #6 on: November 08, 2015, 08:49:41 PM »
Thanks, i'll try it!
(click to show/hide)


Ti vedo... E ti piango.