Raised This Month: $12 Target: $400
 3% 

SetViewEntityBody 2


Post New Thread Reply   
 
Thread Tools Display Modes
1xAero
Member
Join Date: Feb 2018
Location: Sakha, Russia
Old 02-14-2018 , 03:39   Re: SetViewEntityBody 2
Reply With Quote #11

Yes. I'll do that.
1xAero is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 02-17-2018 , 23:31   Re: SetViewEntityBody 2
Reply With Quote #12

congrats
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
Syturi0
Veteran Member
Join Date: Aug 2014
Location: Your mom house -Portugal
Old 02-28-2018 , 06:37   Re: SetViewEntityBody 2
Reply With Quote #13

Whats the difference betwen this and Hanna version?
Syturi0 is offline
Syturi0
Veteran Member
Join Date: Aug 2014
Location: Your mom house -Portugal
Old 02-28-2018 , 06:41   Re: SetViewEntityBody 2
Reply With Quote #14

Can you do it AmxModX 1.8.2 (& lower) compatible?
Syturi0 is offline
1xAero
Member
Join Date: Feb 2018
Location: Sakha, Russia
Old 02-28-2018 , 17:49   Re: SetViewEntityBody 2
Reply With Quote #15

Quote:
Originally Posted by Syturi0 View Post
Can you do it AmxModX 1.8.2 (& lower) compatible?
Theoretically - possible, in reality - it's kinda bullshit, because 1.8.2 ham animation forward does not works correctly.
To make it work under 1.8.2 there is need to code a lot of animation forwards hook, make tons of defines and catch default animations to play them on Deploy, Silence, Unsilence, Reload, Shotgun Reload, Idle and many more.
In 1.8.3 it's simply done with 1 line only, without coding 1000+ lines of bullshit:

Code:
//This the weapon from 1st view animation forward, it doesn't works under amxmodx 1.8.2, only 1.8.3
RegisterHam(Ham_CS_Weapon_SendWeaponAnim, WeaponNames[i], "HamF_CS_Weapon_SendWeaponAnim_Post", TRUE);

public HamF_CS_Weapon_SendWeaponAnim_Post(iEnt, iAnim, Skiplocal)
{
	static iPlayer;
	iPlayer = get_pdata_cbase(iEnt, m_pPlayer, XO_WEAPON);
	
	SendWeaponAnim(iPlayer, iAnim, iBodyIndex[iPlayer]);	//Our v_ animations overhaul (reload, sil, unsil and other)
}
1xAero is offline
1xAero
Member
Join Date: Feb 2018
Location: Sakha, Russia
Old 02-28-2018 , 17:51   Re: SetViewEntityBody 2
Reply With Quote #16

Quote:
Originally Posted by Syturi0 View Post
Whats the difference betwen this and Hanna version?
Dynamic crosshair works, weapon mirroring works, custom weapon support, no disabling client weapons, for easy understanding xD.
For more, you can explore source and read notes.

Last edited by 1xAero; 02-28-2018 at 17:51.
1xAero is offline
Syturi0
Veteran Member
Join Date: Aug 2014
Location: Your mom house -Portugal
Old 03-01-2018 , 00:48   Re: SetViewEntityBody 2
Reply With Quote #17

I understand it may be a lot of work, but you need to realize everyone is using 1.8.2, like 99.9% of servers...
My country has ~50 servers active, and not a single one uses 1.8.3 =/

Last edited by Syturi0; 03-01-2018 at 00:49.
Syturi0 is offline
1xAero
Member
Join Date: Feb 2018
Location: Sakha, Russia
Old 03-01-2018 , 08:40   Re: SetViewEntityBody 2
Reply With Quote #18

Quote:
Originally Posted by Syturi0 View Post
I understand it may be a lot of work, but you need to realize everyone is using 1.8.2, like 99.9% of servers...
My country has ~50 servers active, and not a single one uses 1.8.3 =/
No bro, not possible. Use 1.8.3 please.

Last edited by 1xAero; 03-01-2018 at 08:40.
1xAero is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 03-01-2018 , 12:27   Re: SetViewEntityBody 2
Reply With Quote #19

Quote:
Originally Posted by 1xAero View Post
No bro, not possible. Use 1.8.3 please.
You can use orpheu. Since the function is virtual you do not need a signature, just an offset from the beginning of the virtual table, which you can find in this forums. It's one line of code.
__________________
HamletEagle is offline
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 06-05-2018 , 07:37   Re: SetViewEntityBody 2
Reply With Quote #20

Quote:
Originally Posted by HamletEagle View Post
You can use orpheu. Since the function is virtual you do not need a signature, just an offset from the beginning of the virtual table, which you can find in this forums. It's one line of code.
So if we do like this, it will give the same effect as 1.8.3?
PHP Code:
OrpheuRegisterHook(OrpheuGetFunctionFromClass(WeaponNames[i],"SendWeaponAnim","CBasePlayerWeapon"),"Orpheu_Weapon_SendWeaponAnim"OrpheuHookPost)

public 
Orpheu_Weapon_SendWeaponAnim(iEntiAnim)
{
    static 
iPlayer;
    
iPlayer get_pdata_cbase(iEntm_pPlayerXO_WEAPON);
    
    
SendWeaponAnim(iPlayeriAnimiBodyIndex[iPlayer]);    //Our v_ animations overhaul (reload, sil, unsil and other)

P/S: I am still waiting for the example btw
__________________
My plugin:

Last edited by Celena Luna; 06-05-2018 at 07:40.
Celena Luna is offline
Reply


Thread Tools
Display Modes

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 18:28.


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