Garry's Mod

Garry's Mod

Titanfall Smart Pistol MK5 (Edited)
42 Comments
Teniente Coronel  [author] 4 May @ 12:40pm 
You are totally welcome, if there is a bug regarding the fuctional aspect please let me know!
KauaFelipe 3 May @ 2:31pm 
I understand, thanks for your attention, anyway, I'll still keep using the mod ;).
Teniente Coronel  [author] 28 Apr @ 5:17pm 
Greetings KauaFelipe, hope you are doing well,

The weapong being invisible is a common issue with other scripts causing the "active weapon" to be switched quickly (bsmod, quick knives, etc) and as the "active weapon" returns to the original (the smart pistol), the viewmodel bugs visually and requires you to re-equip the weapon entirelly. Sadly this bug is extremelly random and cannot be fixed within the SWEP (to my basic lua understanding).
Asides from the previous concern, the viewmodel as a whole was not made by me, all the 3d assets are from the Titanfall game and ported by the original creator, because of this detail, I was limited to using the weapon with the "fake pilot suit" as part of the weapon in first person.
If you want the weapon to be exclusive to your playermodel, I highly recommend using a third person camera to later adjust the position to be inside the player´s head. Furthermore you will have the additional "fix".
KauaFelipe 25 Apr @ 6:59pm 
Hello, Lieutenant Colonel. The smart pistol is one of my favorite mods from Garry's Mod, but when I use it with the "bsmod killmove" mod after using a killmove, the pistol becomes invisible. Could you fix this bug? I would be very grateful. And would it be possible to use other playermodels while using it?
MORN1NG_ST4R 25 Nov, 2024 @ 5:34pm 
I would love an addon that just has the hud element from this, with the box in the center and the line to the target, just separate from the weapon. It'd be a nice futuristic addition to other HUD elements.
Teniente Coronel  [author] 28 Jun, 2024 @ 8:00pm 
+howthrowgernade does it appear on the weapons tab? Or is it something else?
Yugure 28 Jun, 2024 @ 5:33pm 
idk why but it doesnt work, i tried restarting it also doesnt work...
Aristotle Flandre's Denial 3 Jun, 2024 @ 2:34am 
awesome
We go together 10 Aug, 2023 @ 8:12am 
And then also think of all the possible ammo types with TFA... Here's just some of my suggestions and ideas:
GIB (Classic Bullet), .22LR (Smallest round, sacrafices damage for extreme ammo in the mag), 5mm (More ammo in the mag), 10mm (Basic, holds less than 5mm), 13mm ANTI-FREAK (Pierces Armor and can nearly one shot anything at the cost of only holding 6 rounds), SEEKER-12 (12 bullets fired for the price of one that seek everything in the reticle), SEEKER-66 (Fires 66 bullets for the price of one that seek everything in the reticle, like a SAM launcher that fires bullets), SMART Rocket (Fires miniature anti vehicle rockets that once locked onto an enemy do not need guidance), and finally 72X32CZ (Anti Tank rifle single round breach action. This is the equivalent to a Tank Shell with one main purpose: destroying any armored vehicle. This ammo was popularized in the show Hellsing Ultimate from the Harkonnen Cannon, which is basically a rifle taken STRAIGHT off a tank.)
We go together 10 Aug, 2023 @ 8:12am 
when you graduate I know you'll do great things to this addon.

Maybe even make a TFA version? In TFA, I have recoil disabled or at least mitigated to near zero. Imagine it having several smart modes based on TFA scripting?

Only weakpoints, Only Headshots, Only Torso Shots, Only Left Leg, Only Right Leg, Only Right Leg, Only left arm, Only Right arm.
(Continued in part 2)
Teniente Coronel  [author] 7 Nov, 2022 @ 3:24am 
Greetings Carlos,

I wish I could spend more time on this small addon, however, due to college I was not able to do so. Besides for small patches fixing possible errors or broken features, I do not plan to further update the addon.
For creating the menu, a few consecutive hours need to be spent into studying the respective Lua code, and the a few more hours in order to test the results.
I am more than displeased to even comment the addon status to be pseudo-abandoned.
Please do note the if you know how to create those additions and properly (or at least try) coding them, feel free to use the GMA as ypu desire (for uploading purposes I recommend crediting the original author of the smart pistol, as seen in the description).
If I could help in any other way, please let me know.

Yours truly. IMP.
stukZ 6 Nov, 2022 @ 4:55pm 
You should make a settings menu for the pistol like mw sweps with some option like: multi target (max 4), fov for the locking system like you could put to lock on your entire screen but the reticle stays the same way, etc (if possible/you want release or update the model of the smart pistol mk5 to the smart pistol mk6)
Teniente Coronel  [author] 9 Sep, 2022 @ 6:19am 
Pleased to hear that.
highlander4life 8 Sep, 2022 @ 3:41pm 
Oh it fixed itself the old one was trying to override it but I just needed to restart my game works fine now
Teniente Coronel  [author] 8 Sep, 2022 @ 7:10am 
Greetings @highlander4life, there is no problem indeed, if you do have any doubts regarding the addon either working unexpetedly, or not working at all, just send me the lua error, or describe the issue as detailed as posiible.
In this case, if you have any further questions, feel free to ask them.
Best regards, IMP.
highlander4life 7 Sep, 2022 @ 6:51pm 
just had to restart works now
highlander4life 7 Sep, 2022 @ 6:28pm 
hi sorry if it was said before as i didn't see it if so but i cant find the newer version i turned off the old one but it still acts like it
Teniente Coronel  [author] 11 Aug, 2022 @ 6:16am 
Really afraids me that I do not posses any reference to this concern, moreover the testing I have previously done, showed zero instances of this inconvenience.
If there is anything I can do, comment me without any problem.
I do hope you enjoy the addon, even with this issue.
Yours truly, IMP.
野生T-34/85 10 Aug, 2022 @ 7:17pm 
This problem will also occur when this mod is used alone, and it will also occur for some original NPCs . But this problem does not affect the game, so don't worry (maybe I am the only one who has this problem)
Teniente Coronel  [author] 10 Aug, 2022 @ 10:43am 
That is a reare occurrence indeed, as I have performed several tests and never showed, which NPC are you intending to shoot with the wespon?, maybe that can be the cause (try using it against HL2 zombies, combine, etc and tell me if the error occurs).
From my perspective, the code does not reckon this error, nor the game itself.
If the issue still persists, then I would highly reccomend you to uninstall other addons and try using only this one, conflicts are usually the cause of many Lua realted Errors.
I implore to keep me posted on this matter, as I am quite interested in perfecting code and fixing what I can.
野生T-34/85 10 Aug, 2022 @ 8:58am 
[Titanfall Smart Pistol MK5 (Edited)] lua/weapons/mp_weapon_smart_pistol.lua:237: attempt to call method 'TakeDamageInfo' (a nil value)
1. unknown - lua/weapons/mp_weapon_smart_pistol.lua:237
Teniente Coronel  [author] 10 Aug, 2022 @ 7:25am 
Regarding the aim functon, I purpously removed due to the more dynamic movement qith the wepon (being able to do parkour with some addons and still firing it), Now for the (most possibly) Lua Error on the upper left corner, can you please copy it in the chat?
I did no t know about the appearance this error before.
野生T-34/85 9 Aug, 2022 @ 8:38pm 
Thank you, it can be used normally now, but still can't aim, and there will be an error (in the upper left corner) after killing the NPC , but this does not affect this perfect mod, thank you again:steamhappy:
Teniente Coronel  [author] 9 Aug, 2022 @ 12:13pm 
The reloading function should work properly now, please tell me if either this, or another error persists within the addon.
Huge thanks in advance.
Teniente Coronel  [author] 9 Aug, 2022 @ 11:26am 
The reload I shall see, however, the zoom function has been removed in order to mantain a better aspect of the weapon being fired from the "hip" when running even.
I shall fix the reload the sooner.
野生T-34/85 9 Aug, 2022 @ 12:46am 
Thanks for the reply, the previous problem is now solved. But now there is a bug that cannot reload and aim:lunar2019laughingpig:
Teniente Coronel  [author] 8 Aug, 2022 @ 8:46am 
One solution if this problem still persists, uninstall several addons that you posses, and then try redownloading this one again, it has been proven taht the original addon conflicts with my version.
And as well, try to bind 0 slot99 (for instance) to access this weapon (now shall be fixed but still, if it occurs once again in the future)
Teniente Coronel  [author] 8 Aug, 2022 @ 8:24am 
@野生T-34/85 now the issue shall be fixed, please, report if it is still present
Teniente Coronel  [author] 8 Aug, 2022 @ 8:13am 
That is indeed new, the only thing I can relate to it, is that I am using another addon to "select" the wepons (to simulate a power up basically), and I might have uploaded said version.
The conflict might be related to the slots, I shall fix it the soonner.
My sincerest appologies and tahnks for reporting the error.
野生T-34/85 8 Aug, 2022 @ 6:47am 
I have a problem, this gun cannot be seen or selected in the weapons slot after picking it up:lunar2019crylaughingpig:
Teniente Coronel  [author] 8 Nov, 2021 @ 8:03pm 
@Big Crumb, that is certainly new, to be honest the only way to fix it that it occurs to me is to revalue the FOV number when the weapon zooms in.
If you have extracted gma files earlier it would be similar to do this, however if you do not know, there are guides in the gmod steam page that would serve as an introduction, even to lua itself.
Big Crumb |HM| 8 Nov, 2021 @ 6:46pm 
When I right click the yellow ironsight blocks my entire view how can I fix this
✞ Larry ✞ 7 Nov, 2021 @ 4:33am 
this is cool i like it
Spectre Pilot-301 20 Oct, 2021 @ 10:26pm 
Interesting, I'll keep that in mind thanks
Teniente Coronel  [author] 20 Oct, 2021 @ 9:50am 
Well that is a nice plan, try looking on the code of this addon and compare throughout the others alike. I can tell that Lua is an intuitive language that could be manipulated by anyone. Just for clarifying the limitations that I have seen (at least on the weapons packs from this same author) is that he codes functions that use " KeyDown(IN_SPRINT) " for holstering the weapon.
If you remove it carefully without breaking anything else, you have officially removed those limitations and made the weapon more dynamic.
Spectre Pilot-301 20 Oct, 2021 @ 7:26am 
Not yet, but I planned to when I got a new PC. The old weapon packs for Titanfall seemed way to restrictive for combat, I just didn't know how I'd go about fixing those
Teniente Coronel  [author] 20 Oct, 2021 @ 3:30am 
Basically changing parameters and deleting a few lines of code that check when you are sprinting. As there are many packs, maybe changing one and copy and paste part of the code to the rest, have you ever extracted .gma files and manually edited addons?
Spectre Pilot-301 19 Oct, 2021 @ 8:23pm 
Oh yeah no, I wouldn't expect a texture rework from the old packs. Just minor fixes with ADS, damage ect. The old packs felt limited with movement and shooting when you tried to do fast movements I'd what I'm getting at
Teniente Coronel  [author] 18 Oct, 2021 @ 8:51am 
I do appreciate your comment, sadly my Lua knowledge is quite simplistic, so if the rework happens to be editing the code, I would gladly see if there is any probability to modify it. However models, textures, and animations (beyond code) are not of my intervention, as I do not have any sort of a basic idea to manipulate those features. As for the rest, just star a Discussion and I would do my best.
Spectre Pilot-301 16 Oct, 2021 @ 2:34pm 
I feel like more of the Titanfall add-ons need to be reworked like this.
Teniente Coronel  [author] 12 Oct, 2021 @ 12:07pm 
@Orifan1 it is an addon that made Weathley, called Mass Effect Biothics.
Orifan1 12 Oct, 2021 @ 10:20am 
whats that in the top left of your HUD?