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

SetViewEntityBody


Post New Thread Reply   
 
Thread Tools Display Modes
Hanna
Member
Join Date: Sep 2016
Old 11-01-2016 , 09:30   Re: SetViewEntityBody
Reply With Quote #21

Quote:
Originally Posted by Celena Luna View Post
If I use another weapon plugins which have a model with 2 hands (male and female ofc). Does this plugins actually work with them?
Yes. Should work with little weapon attack code change.
Hanna is offline
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 11-17-2016 , 06:31   Re: SetViewEntityBody
Reply With Quote #22

Quote:
Originally Posted by Hanna View Post
Yes. Should work with little weapon attack code change.
Which part to change actually. Usually I am using this to play animation:
PHP Code:
stock set_weapon_anim(idanim)
{
    if(!
is_user_alive(id))
        return
        
    
set_pev(idpev_weaponanimanim)
    
    
message_begin(MSG_ONE_UNRELIABLESVC_WEAPONANIM_id)
    
write_byte(anim)
    
write_byte(get_pev(idpev_body))
    
message_end()    

__________________
My plugin:
Celena Luna is offline
Hanna
Member
Join Date: Sep 2016
Old 11-22-2016 , 07:58   Re: SetViewEntityBody
Reply With Quote #23

if(!is_user_alive(id))
return

not needed cause this function will skip for dead players

MSG_ONE_UNRELIABLE - should be MSG_ONE, not unreliable or at low or high ping you'll see hand bug.

Attack - Primary attack hook with Ham and write your own attack.

All other anims just can be switched with set_pev(wepon_entity, pev_body, value) - you just need check weapon ent in anims forwards or make it simply like in this plugin through SendWeaponAnim forward.
Hanna is offline
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 12-01-2016 , 10:51   Re: SetViewEntityBody
Reply With Quote #24

Quote:
Originally Posted by Hanna View Post
if(!is_user_alive(id))
return

not needed cause this function will skip for dead players

MSG_ONE_UNRELIABLE - should be MSG_ONE, not unreliable or at low or high ping you'll see hand bug.

Attack - Primary attack hook with Ham and write your own attack.

All other anims just can be switched with set_pev(wepon_entity, pev_body, value) - you just need check weapon ent in anims forwards or make it simply like in this plugin through SendWeaponAnim forward.
I get it now
btw, do you plan to make a version for AMX 1.8.2 ?
__________________
My plugin:

Last edited by Celena Luna; 12-01-2016 at 10:52.
Celena Luna is offline
Hanna
Member
Join Date: Sep 2016
Old 12-14-2016 , 08:25   Re: SetViewEntityBody
Reply With Quote #25

Quote:
Originally Posted by Celena Luna View Post
I get it now
btw, do you plan to make a version for AMX 1.8.2 ?
Bit later.
Hanna is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 01-31-2017 , 09:56   Re: SetViewEntityBody
Reply With Quote #26

Gonna have to test this. Good job. Also, please make for 1.8.2 and lower.
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
Old 01-31-2017, 12:44
edon1337
This message has been deleted by edon1337.
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 09-29-2017 , 09:18   Re: SetViewEntityBody
Reply With Quote #27

It have been awhile and I have played around this but after all I can't use this with any other weapon than default (without effect) because:
- It block at the PrimaryAttack => PrimaryAttack_Post never exists => can't set some info like recoil or accuracy
- Some weapon need to be Supercede at FM_PlaybackEvent but if do that, the submode will be set to 0 again.
__________________
My plugin:
Celena Luna is offline
Syturi0
Veteran Member
Join Date: Aug 2014
Location: Your mom house -Portugal
Old 09-29-2017 , 14:23   Re: SetViewEntityBody
Reply With Quote #28

Its been a year, no updates on 1.8.2 and bugfixes?
Syturi0 is offline
ConorCC
Member
Join Date: Feb 2014
Old 01-07-2018 , 10:06   Re: SetViewEntityBody
Reply With Quote #29

When I tryed on windows the plugin was right. But on my linux server something is wrong.

Animations and weapon sounds on bad enitites. If I hit with knife it make decals on wall and all weapon shoot sounds are replaced with P250 pistol shoots.

Same metamod, same amxmodx version and only your plugin can be found on both server.
ConorCC is offline
ConorCC
Member
Join Date: Feb 2014
Old 02-17-2018 , 05:52   Re: SetViewEntityBody
Reply With Quote #30

The problem is the different pdata int on windows and linux. You can fix it just replace all WEAPON_ENT to cs_get_weapon_id and include cstrike.inc. Then the plugin work right.

There is an another problem. In the options the modells has been set on the right hand but the plugin display them on the left hand. The weapons sparkle still on the original hand. Is there any idea to change it to normal? Both on one side.
ConorCC 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 17:27.


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