Browse Search Popular Register Upload Rules User list Login:
Scripted Colt M4

screenshot of the scene

Author: ngphil

Group: Default

Filesize: 111.11 kB

Date added: 2015-08-06

Rating: 6.5

Downloads: 2740

Views: 343

Comments: 6

Ratings: 4

Times favored: 0

Made with: Algodoo v2.1.0


Scene tag

This is a 1:1 scale version of a Colt M4 carbine, and functions at the real cyclic rate. It's scripted, so there's really no lag or potential to jam. It's very addicting to play with, if you ask me, so I do hope you enjoy.

To use: insert one of the magazines provided, and release the bolt carrier by either pushing the bolt catch down (above mag release) or pulling the charging handle back all the way and releasing it. using the drag tool, select your firing mode, and fire with the drag tool or enter/return. The weapon's got a simulated burst cam that doesn't auto-reset, so you can have an initial burst length of 1-3 rounds, depending on its position when you switch to burst. stopping firing mid-burst also means the next firing will complete the burst. It's finicky, but that's how the real thing is. Also occasionally prone to drifting, like the real thing. if it does, unload the gun, switch to burst, hold enter/return, and cycle the action 3 times. reload any live rounds into the magazine, and re-insert the mag in, chamber a round, and continue firing.


Added a virtual hammer script that determines what the position of the hammer would be, and the virtual burst cam is now operated by this. Eliminates the tendency for the burst cam to neglect "stepping up" if the trigger is released early.

Last edited at 2015/08/07 02:17:48 by ngphil
Please log in to rate this scene
Similar scenes
Title: Scripted Colt M4 Magpul (mouse controlled)
Rating: 5
Filesize: 0.59 MB
Downloads: 1512
Comments: 0
Ratings: 1
Date added: 2014/10/24 19:03:30
Made with: Algodoo v2.1.0
Rating: rated 5
Title: Colt's Combat Commander
Rating: 8.4783
Filesize: 94.1 kB
Downloads: 23694
Comments: 33
Ratings: 17
Date added: 2009/11/19 22:30:52
Made with: Phun
Rating: rated 8.5
Title: Colt 1911
Rating: 6.375
Filesize: 15.59 kB
Downloads: 608
Comments: 3
Ratings: 8
Date added: 2009/03/05 00:19:22
Made with: Phun
Rating: rated 6.4
Title: Colt 25 Pocket Pistol
Rating: 6.75
Filesize: 32.29 kB
Downloads: 967
Comments: 1
Ratings: 4
Date added: 2009/03/07 21:48:55
Made with: Phun
Rating: rated 6.8
Title: realistic Phun gun : colt 1911
Rating: 7.9256
Filesize: 186.32 kB
Downloads: 4760
Comments: 17
Ratings: 94
Date added: 2008/08/09 18:16:28
Made with: Phun
Rating: rated 7.9
Title: Smashable Colt M1911
Rating: 5
Filesize: 483.68 kB
Downloads: 1891
Comments: 1
Ratings: 1
Date added: 2012/05/19 21:38:26
Made with: Algodoo v2.0.2 Edu
Rating: rated 5
You do beautiful work, phil! The gun looks great and functions correctly most of the time. I say most of the time because there were a couple of times when I fired two rounds (with the trigger held down) in burst mode, and then when I fired again in burst mode with the trigger held down, expecting the final shot of three, it fired TWO more rounds for a total of four. Except for that, the gun worked flawlessly, and I gave it a ten rating. :tup:
Very nice! The burst doesnt reset itself like the real one, and it has a realistic rate of fire!
Thanks! Xray, I'll see if I can address the issue. It never does it for me, but I think I may know why it's happening at times for you

EDIT: Xray, now it shouldn't do it anymore. I figure it was caused by the burst cam relying on the trigger being held for it to actually step up. if you managed to fire a round or two, but released the trigger before the bolt hit the back of the receiver, it didn't count the shot you stopped on. so it could very well allow you to fire two, and if you released just in time, it'd only account for one shot, meaning you had a 2-burst next pull. now, if you pull the trigger, there's a virtual "dropped hammer", and that value is used to determine if the cam should step up or not. if the hammer is "already cocked" it won't, like if you're cycling the action manually. if you're firing, the hammer has "dropped", meaning it will step up. I don't know how else to describe the mess of scripting that's responsible for a rifle counting to 3.:lol:
Last edited at 2015/08/07 02:21:45 by ngphil
Yup, that fixed it! Good job! _o_ (You're turning into a true scripting Guru!) :lol:
Well, you really did it again NG. This is what I have been truly waiting for. A decently textured, true to steel model. This fits true to my testing, and I couldnt find any major differences from this and the real Colt variant. I gotta say, I love it. The only downside is it wasnt as "customizable" as your AKM was, because I made a rig to reload the magazines with a lazer triggering a change in the magazines local ammo variable. Cant really do that with your M4, as a laser hits the magazine when inserted. I was really hoping to mess with it like I did with the AK, but in the future your other weapons will probably have the capability to do this:

Thanks again for another impressive save.
holy hell, that's a lot of customization! Yeah, The AKM used a mechanically-operated ammo check on the magazine. The reason for that was that the AKM doesn't lock open on the last round, whereas the Stoner platform does. If I had used a mechanical ammo check on this, it would strip a round from the magazine as soon as you inserted it, so that was a no-go. Instead, I used a laser to run the feed check as the bolt went to battery. I suppose it does make what you described a bit difficult. However, I post my stuff here so people can use it, and modify as they please. Feel free to upload any mods you want to this, or anything else for that matter. I do have the M4A1 variant (Full auto instead of burst) made, so I can upload that if people are truly interested. Who knows, perhaps a "pimp my gun" contest could be made from it? We'll see. Thanks for the support and the quite amazing mod!

Xray, I owe a lot of that Thyme Swagger to you:P