Jump to content

(Scripting prob.) Last shot in magazine has shotgun spray Mod


Recommended Posts

So, a mod I quite like using is "The LeMat Revolver" mod (by DMagnus). it simply adds a new weapon that is the Lemat Revolver. what's special about this US civil war revolver is that it has it's normal rounds as well as a 12 gauge shot shell that fires through a second barrel. the mod I am referring to uses different receivers and barrels to make different instances of the gun for use as a shotgun or as a pistol. I am attempting to modify the mod (for personal use) that simply raises the magazine of this revolver by 1 and has it's last shot have multiple projectiles of lower damage each. is there a way to do this? I have been attempting it for a couple days now, and I can't figure out how to do it, seeing as I have never used Papyrus before, and lately only used c# and c++ (which obviously aren't useful here)

 

Please help.

Link to comment
Share on other sites

Papyrus borrows a lot of things from C++ as it was written from C++. Structs and all that is included in papyrus. But there's no forloops, no do-whiles, no switches, no namespaces, no header files, and none of the fun things you can do with arrays, aside from inserting, removing, resizing, (but it still has a 128 element limit), yadda yadda.. So you can try you hand at F4SE if your knowledge of C++ is well enough, and maybe you can try making a plugin for this (guessing).

 

It sounds to me that for this to work, you'd need to be able to detect the number of rounds left in the magazine.. and there is no native papyrus function to get that value.

Link to comment
Share on other sites

Papyrus borrows a lot of things from C++ as it was written from C++. Structs and all that is included in papyrus. But there's no forloops, no do-whiles, no switches, no namespaces, no header files, and none of the fun things you can do with arrays, aside from inserting, removing, resizing, (but it still has a 128 element limit), yadda yadda.. So you can try you hand at F4SE if your knowledge of C++ is well enough, and maybe you can try making a plugin for this (guessing).

 

It sounds to me that for this to work, you'd need to be able to detect the number of rounds left in the magazine.. and there is no native papyrus function to get that value.

Well, dang. I was hoping to be able to use it with vr as well... but whatever and cool. I'll have to look into that then. thanks

Edited by devyynisall
Link to comment
Share on other sites

so... I actually started to write the ugliest script ever. I simply check if I have fired the gun 9 times then Attempts to set up a multiple projectile shot ( the shots fired counter is reset if your reload), However, as you may have been able to tell with the underlined word, I can't figure out how make the gun fire multiple projectiles through scripting... if it's possible.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...