[FS] Mounted Minigun 0.2 [updated] -
weedarr - 19.01.2008
V1 adds a useable mounted minigun to your desired pos (check the source for more info)
V2 adds up to 5 mounted miniguns that you can enable and disable (again check the source)
You must add the objects your self, just put the cordinates at the defines in the source
Please do not remove the credits and add me in to your /credits commands plx!!!
Код:
/* This script was made by WeeDarr thanks to the ideas of this thread:
http://forum.sa-mp.com/index.php?topic=37951.0
You are not permitted to change anything other that the four defines below
if you use this you must also add me in to your credits list. If you are found
taking credit for it I will simply delete the files so nobody can download, so
you ruin it for others...
Anyway i hope you have fun with the script, if you find any errors or bugs please
report them at the official topic on the sa-mp forums. WeeDarr & thanks to denver?
for the PlayerToPoint function.
Last note, if you have teleport commands and you do not what the person to get
the minigun out of the minigun zone please remember to remove the minigun from the
player, i may add this in future versions, wait and see. I may also add support for multiple miniguns
*/
Download
V1
source -
http://pastebin.thegtaplanet.net/pastebin.php?show=240
V2
source -
http://pastebin.thegtaplanet.net/pastebin.php?show=241 very bugged, too bust to fix, Dont download
I removed the compiled version because you need to save your own positions
enjoy
WeeDarr
Screens
before -
http://files.uploadffs.com/bcf9abf1c..._sa-mp-071.png
/usegun -
http://files.uploadffs.com/ed2d1391d..._sa-mp-072.png
fire! -
http://files.uploadffs.com/867cac4e3..._sa-mp-073.png
walk away or /exitgun -
http://files.uploadffs.com/334bfefbc..._sa-mp-074.png
How to configure
Hey due to some confusion i am adding this tutorial on how to place the guns
In the script you will see these lines
Код:
// Minigun 1
#define GUN1 true
#define X1,Y1,Z1 1962.9644,1358.7168,8.2578
#define RX1,RY1,RZ1 0.0,0.0,359.1342
// Minigun 2
#define GUN2 true
#define X2,Y2,Z2 1962.8313,1330.7249,8.2501
#define RX2,RY2,RZ2 0.0,0.0,183.3760
// Minigun 3
#define GUN3 false
#define X3,Y3,Z3 0.0,0.0,0.0
#define RX3,RY3,RZ3 0.0,0.0,0.0
// Minigun 4
#define GUN4 false
#define X4,Y4,Z4 0.0,0.0,0.0
#define RX4,RY4,RZ4 0.0,0.0,0.0
// Minigun 5
#define GUN5 false
#define X5,Y5,Z5 0.0,0.0,0.0
#define RX5,RY5,RZ5 0.0,0.0,0.0
// Other defines
#define DISTANCE 3.0 // the distance for playertopoint
#define AMMO 500 // the amount of ammo for the minigun
They are the only ones you
need to change, i will now explain what they do, First off go in to your game and do save where you want the minigun to be.
#define GUN1 true
This says if you want the gun to be made, e.g if you only want one gun set gun2-gun5's defines to false.
#define X1,Y1,Z1 1962.9644,1358.7168,8.2578
This is the x,y,z cordinates from your /save ingame, set the Z cordinate to 1 unit lower to make the gun on the ground.
#define RX1,RY1,RZ1 0.0,0.0,359.1342
This is the rotation cordinates for the minigun, for the facing angle of the gun its the last set of cordinates.
The same goes for all them of them up to gun5
#define DISTANCE 3.0
This is the maximum distance they can be from the gun, also it sets the area they can have the minigun in.
#define AMMO 500
This is simply just how much ammo is in the gun.
any more questions, ask!
WeeDarr
Re: [FS] Mounted Minigun 0.1 beta -
Jashugan - 19.01.2008
I could hug you right now....
Re: [FS] Mounted Minigun 0.1 beta -
Grove - 19.01.2008
Nice work, any screenshots?
And also, were is the mounted minigun located?
Re: [FS] Mounted Minigun 0.1 beta -
cmg4life - 19.01.2008
Quote:
Originally Posted by Grove
Nice work, any screenshots?
And also, were is the mounted minigun located?
|
well if u checked the code on /enter it creates an object
WeeDarr, why u say Just One ? couldnt i "re create" to create more ?
Re: [FS] Mounted Minigun 0.1 beta -
Jashugan - 19.01.2008
This needs some editing but the structure is pretty ingenious

Thanks man!
Re: [FS] Mounted Minigun 0.1 beta -
weedarr - 19.01.2008
the minigun's pos can be set using the defines at the top of the script, and it only creates 1 but give me half an hour or so nd ill add say 5 positions? each definable.
WeeDarr
also there are no SS cause all it is is a minigun object nd when you type enter you get a minigun to shoot, and if you leave the area or type /exit the gun is removed
WeeDarr
Quote:
Originally Posted by Jashugan
This needs some editing but the structure is pretty ingenious  Thanks man!
|
editing in what way, ill see if i can do it now
Код:
// Do NOT change anything below this line please.-------------------------------
is not correct, you can change the /enter and /exit to something like /use and /leave or something
Re: [FS] Mounted Minigun 0.1 beta -
Syrus - 19.01.2008
Seems not to work for me... i've got it everything placed in the right folder.
/exit works... but /enter doesnt... weird
Re: [FS] Mounted Minigun 0.1 beta -
weedarr - 19.01.2008
added it in to your server.cfg? im pretty sure it aint a big with the script cause there is like nothing to go wrong...
Quote:
Originally Posted by Andre9977
Good idea + Better Yet, You've made it into 100 lines.
|
you should see the next version im cooking
WeeDarr
Re: [FS] Mounted Minigun 0.1 beta -
cmg4life - 19.01.2008
Quote:
Originally Posted by [P7
WeeDarr ]
you should see the next version im cooking
WeeDarr
|
Sounds Delicious
Re: [FS] Mounted Minigun 0.1 beta -
weedarr - 19.01.2008
tastes delicious too

iv set the egg timer for 30 mins
WeeDarr
Re: [FS] Mounted Minigun 0.2 [updated] -
weedarr - 19.01.2008
Post updated V2 now out, report all bugs here. Not thinking about further development except bug fixes.
WeeDarr
EDIT: Damn, double post, i hope you can forgive me.
Re: [FS] Mounted Minigun 0.2 [updated] -
cmg4life - 19.01.2008
man this is good, tastes yummy, :P man i need to go to eat xD
Re: [FS] Mounted Minigun 0.2 [updated] -
weedarr - 19.01.2008
I nearly got electricuted cos i drooled so much... anyway, anymore comments or bugs needing taked care of?
WeeDarr
Re: [FS] Mounted Minigun 0.2 [updated] -
Avatar - 19.01.2008
Noooooooo... The link doesn't work here

Can you give a new link please please please?
Re: [FS] Mounted Minigun 0.2 [updated] -
weedarr - 19.01.2008
http://pastebin.com/f338256f0
http://www.pastebin.ca/865138
http://mihd.net/1fv3mc
http://www.sendspace.com/file/cvg9j2
WeeDarr
Re: [FS] Mounted Minigun 0.2 [updated] -
cmg4life - 19.01.2008
well a tip is that u should set player camera pos a bit in front of player so u see only the tip of the minigun , also that will "limit" the view like the mini g trepied does...( i think , didnt play sg for some while )
Re: [FS] Mounted Minigun 0.2 [updated] -
weedarr - 19.01.2008
might be a bit laggy...
WeeDarr
Re: [FS] Mounted Minigun 0.2 [updated] -
Jashugan - 20.01.2008
OK, tested this in my warzone with about 10 people. After awhile it bugs and people can walk away with minigun in hand.
Re: [FS] Mounted Minigun 0.2 [updated] -
snipe69 - 20.01.2008
im thinking in going to test it now but im not understanding what this does (i didnt checked source yet)
but does it fire like a minigun?
Re: [FS] Mounted Minigun 0.2 [updated] -
snipe69 - 20.01.2008
Quote:
Originally Posted by Seif[P7
]
Quote:
Originally Posted by [M
Snipe ]
im thinking in going to test it now but im not understanding what this does (i didnt checked source yet)
but does it fire like a minigun?
|
No. He creates the machine gun object. Then, when you walk to it, it will disappear and give you a normal minigun and won't allow you to move.
|
ah ok nice