This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

[L4D2] need help about play animation on ViewModel


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
NoroHime
Veteran Member
Join Date: Aug 2016
Location: bed
Old 02-16-2022 , 00:41   [L4D2] need help about play animation on ViewModel
Reply With Quote #1

i plan to make plugin handle reloading but kinda hard, cant prevent event

now i just want play the reload animation on ViewModel, i read many code that make me confuses

can someone tell me how do i do

Left 4 Dhooks Direct smlib and sm1.11 i haved, maybe use SDKCall "CTerrorPlayer::DoAnimationEvent" ?
i havent these experience about memory patch and DoAnimationEvent have many param i dont kown
__________________

Last edited by NoroHime; 02-16-2022 at 00:45.
NoroHime is offline
NoroHime
Veteran Member
Join Date: Aug 2016
Location: bed
Old 02-16-2022 , 07:53   Re: [L4D2] need help about play animation on ViewModel
Reply With Quote #2

well, maybe i lower the needed, i just want hook reload end event for snipers
__________________

Last edited by NoroHime; 02-16-2022 at 07:54.
NoroHime is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 02-16-2022 , 12:57   Re: [L4D2] need help about play animation on ViewModel
Reply With Quote #3

So you want to create the fake reload animation?

To hook reload end event, I think you can create timer after "weapon_reload" event
__________________

Last edited by HarryPotter; 02-16-2022 at 13:03.
HarryPotter is offline
NoroHime
Veteran Member
Join Date: Aug 2016
Location: bed
Old 02-16-2022 , 17:34   Re: [L4D2] need help about play animation on ViewModel
Reply With Quote #4

actually my problem is weapon_reload doesnt work great, it happen on weapon reload start and unstoppable and cant handle reload end, im trying SDKHook event
anyway can we trigger reload anim on first Person i dont know the detail code
__________________

Last edited by NoroHime; 02-16-2022 at 17:38.
NoroHime is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 02-16-2022 , 18:29   Re: [L4D2] need help about play animation on ViewModel
Reply With Quote #5

Client prediction plays a part in this. See Reload Fix - Max Clip Size and No Reload Animation Fix plugins I wrote, might be helpful for this. Anim event you can play on the viewmodel maybe, see Incapped Grenade plugins.
__________________
Silvers is offline
NoroHime
Veteran Member
Join Date: Aug 2016
Location: bed
Old 02-17-2022 , 07:02   Re: [L4D2] need help about play animation on ViewModel
Reply With Quote #6

Quote:
Originally Posted by Silvers View Post
Client prediction plays a part in this. See Reload Fix - Max Clip Size and No Reload Animation Fix plugins I wrote, might be helpful for this. Anim event you can play on the viewmodel maybe, see Incapped Grenade plugins.
wow,thanks you, "no reload animation fix" may i want
__________________

Last edited by NoroHime; 02-17-2022 at 07:03.
NoroHime is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:05.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode