Zorgman Posted August 4, 2017 Share Posted August 4, 2017 Hi guys! I'm looking for a way to change the silenced pistol and sawn-off shotgun handling, specifically I want to make the sawn-off fire two-handedly from the hip just like the pump shotgun and the silenced pistol fire and handle similar with the country rifle. I have already edited many other weapon properties, but so far I've had no luck with this kind of changes and couldn't find any info on how to do it. Is this at least partial attainable? I tried experimenting with flags and failed, is there any undocumented flag that would do it? I know for sure that I've seen a two-handed dual-barrel on some server at least once, but it might have been just an edited pump shotgun (this is a no go, since I need that one too). Thanks! Link to comment
Zorgman Posted August 4, 2017 Author Share Posted August 4, 2017 To be more clear, I'm not talking about changing damage, shot spread or anything else. Just the actual animation set that is used when wielding and firing the guns. Link to comment
Dimos7 Posted August 4, 2017 Share Posted August 4, 2017 setPedStat the function you need is that Link to comment
Zorgman Posted August 4, 2017 Author Share Posted August 4, 2017 No. I'll try to elaborate a bit: I have replaced the silenced pistol with a crossbow. But my ped still holds it and shoots it like it is a pistol, generating clipping issues in ped idle stance and looking quirky when you shoot it. What I want is to hold it across the chest, like you do with the rifle and shoot it by holding it with both hands appropriately. Similar for the sawn-off. Link to comment
NeXuS™ Posted August 4, 2017 Share Posted August 4, 2017 (edited) Did you try to set the ped an animation whenever he is not aiming with the gun? Are you sure it's possible to change the "holding style" of a weapon? Edited August 4, 2017 by NeXuS™ Link to comment
Zorgman Posted August 4, 2017 Author Share Posted August 4, 2017 7 minutes ago, NeXuS™ said: Did you try to set the ped an animation whenever he is not aiming with the gun? No, I didn't, actually it never occurred to me. I naturally supposed that tampering with the animation while aiming will break aim stance, but I'll try it. 8 minutes ago, NeXuS™ said: Are you sure it's possible the change the "holding style" of a weapon? Unfortunately no, I'm not sure it's possible, that's what I'm trying to determine. Link to comment
Zorgman Posted August 9, 2017 Author Share Posted August 9, 2017 Solved the idle and walking pose rather easy, with setPedWalkingStyle. However, setting ped animation while aiming blocks fire button and I failed to find a solution yet. cheers Link to comment
Saml1er Posted August 9, 2017 Share Posted August 9, 2017 I'm working on custom-animations which also has the feature to replace and possibly disable default animations. You will be able to control it in upcoming MTA release or the adjacent one. Just wait till then. 1 Link to comment
_DrXenon Posted August 9, 2017 Share Posted August 9, 2017 Why did you replace a crossbow with the silenced? That is so weird. Replace it with the shoutgun and improve its accuracy lol. Link to comment
Zorgman Posted August 9, 2017 Author Share Posted August 9, 2017 I need the shotgun to play the role of the... shotgun Link to comment
_DrXenon Posted August 9, 2017 Share Posted August 9, 2017 2 minutes ago, Zorgman said: I need the shotgun to play the role of the... shotgun I thought so. I wish we could have more weapons than those that we already have in MTA. Link to comment
Noah_Antilles Posted August 10, 2017 Share Posted August 10, 2017 (edited) Hi @Zorgman! I've been struggling with the same problem, but I've tried something that might help you. I have not succeeded yet, and I am a scripting beginner, so take this with a grain of salt. You can use setPedAnimation whenever a player with a silenced is shooting/aiming/walking. Specify the path to the animation table that contains the rifle's animations, and you should be golden. Like I said I haven't been able to successfully incorporate this in my own server yet, but maybe you will find a way to do it Good luck! Edited August 10, 2017 by Noah_Antilles 1 Link to comment
Zorgman Posted August 10, 2017 Author Share Posted August 10, 2017 Thanks, I'll try it an report here the results and code if I make it work. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now