AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   SetViewEntityBody (https://forums.alliedmods.net/showthread.php?t=287754)

Hanna 11-01-2016 09:30

Re: SetViewEntityBody
 
Quote:

Originally Posted by Celena Luna (Post 2464607)
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.

Celena Luna 11-17-2016 06:31

Re: SetViewEntityBody
 
Quote:

Originally Posted by Hanna (Post 2466830)
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()    



Hanna 11-22-2016 07:58

Re: SetViewEntityBody
 
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.

Celena Luna 12-01-2016 10:51

Re: SetViewEntityBody
 
Quote:

Originally Posted by Hanna (Post 2471883)
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 :3
btw, do you plan to make a version for AMX 1.8.2 ?

Hanna 12-14-2016 08:25

Re: SetViewEntityBody
 
Quote:

Originally Posted by Celena Luna (Post 2474288)
I get it now :3
btw, do you plan to make a version for AMX 1.8.2 ?

Bit later.

georgik57 01-31-2017 09:56

Re: SetViewEntityBody
 
Gonna have to test this. Good job. Also, please make for 1.8.2 and lower.

Celena Luna 09-29-2017 09:18

Re: SetViewEntityBody
 
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.

Syturi0 09-29-2017 14:23

Re: SetViewEntityBody
 
Its been a year, no updates on 1.8.2 and bugfixes?

ConorCC 01-07-2018 10:06

Re: SetViewEntityBody
 
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 02-17-2018 05:52

Re: SetViewEntityBody
 
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.


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

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