Raised This Month: $ Target: $400
 0% 

SetViewEntityBody


Post New Thread Reply   
 
Thread Tools Display Modes
Old 09-15-2016, 01:48
Hanna
This message has been deleted by Hanna.
Old 09-15-2016, 02:34
Hanna
This message has been deleted by Hanna.
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 09-15-2016 , 03:38   Re: SetViewEntityBody
Reply With Quote #3

You can delete your older posts, there's no need of bumping this thread each hour I guess.
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
Hanna
Member
Join Date: Sep 2016
Old 09-15-2016 , 03:47   Re: SetViewEntityBody
Reply With Quote #4

Quote:
Originally Posted by NiHiLaNTh View Post
You can delete your older posts, there's no need of bumping this thread each hour I guess.
xD, yes. But how i can do it? Can't find any delete button or edit oO.

Edit: found LOL.

Last edited by Hanna; 09-15-2016 at 03:50.
Hanna is offline
Hanna
Member
Join Date: Sep 2016
Old 09-15-2016 , 03:46   Re: SetViewEntityBody
Reply With Quote #5

Update: Release 1.6 - bugfixes while spectating and the target died at the moment we are tried to look him from first person.
Redownload both include and source.

Last edited by Hanna; 09-15-2016 at 03:51.
Hanna is offline
frk_14
Senior Member
Join Date: Jan 2009
Location: Argentina
Old 09-15-2016 , 23:08   Re: SetViewEntityBody
Reply With Quote #6

insane job
__________________
frk_14 is offline
Send a message via MSN to frk_14 Send a message via Skype™ to frk_14
Hanna
Member
Join Date: Sep 2016
Old 09-16-2016 , 05:09   Re: SetViewEntityBody
Reply With Quote #7

Update 16/9/16: Release 1.7, bugfixes. Now i started to lookout for attack system. I have 2 ideas currently and one of them is replacing atk system with custom trace, but the way it can be done - with Orpheu. Need some time to think.

Last edited by Hanna; 09-16-2016 at 05:18.
Hanna is offline
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 09-19-2016 , 16:11   Re: SetViewEntityBody
Reply With Quote #8

Quote:
Originally Posted by Hanna View Post
I have 2 ideas currently and one of them is replacing atk system with custom trace, but the way it can be done - with Orpheu. Need some time to think.[/B]
Please expand your idea. Maybe you can get help on that.

Also please upload images and videos.
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
Hanna
Member
Join Date: Sep 2016
Old 09-20-2016 , 08:26   Re: SetViewEntityBody
Reply With Quote #9

Quote:
Originally Posted by joropito View Post
Please expand your idea. Maybe you can get help on that.

Also please upload images and videos.
Well, the idea is removing the Execute Ham Primary Attack call from attack forward to apply custom attack.
You want the way? Here, this is i'm currently using and will include it in next update:

Code:
#include <xs>
#include <orpheu>
#include <orpheu_stocks>

new OrpheuFunction:handleApplyMultiDamage;
new OrpheuFunction:handleClearMultiDamage;

public plugin_init()
{
handleApplyMultiDamage = OrpheuGetFunction("ApplyMultiDamage");
handleClearMultiDamage = OrpheuGetFunction("ClearMultiDamage");
RegisterHam(Ham_Weapon_PrimaryAttack, "weapon_glock18", "HamF_Weapon_PrimaryAttack");
} public HamF_Weapon_PrimaryAttack(iEnt) {
static id;
id = get_pdata_cbase(iEnt, m_pPlayer, 4); //Starting now calculate our custom attack new Float: vecSrc[3], Float: vecForward[3], Float:vecViewOfs[3]; pev(id, pev_origin, vecSrc); pev(id, pev_view_ofs, vecViewOfs); xs_vec_add(vecSrc, vecViewOfs, vecSrc); FireBullets(vecSrc, vecForward, 8192.0, 3, 30.0/*<<<damage*/, id);
return HAM_SUPERCEDE;
} stock FireBullets(Float:vecSrc[3], Float:vecDir[3], Float:flDistance, iPenetration, Float:flDamage, pevAttacker) {
new Float:vecEnd[3], Float:vecEndPos[3], Float:vecForward[3];
new tr = create_tr2();
new Float:flFraction, Float:flCurrentDistance;
xs_vec_mul_scalar(vecDir, flDistance, vecForward);
xs_vec_add(vecSrc, vecForward, vecEnd);
while (iPenetration != 0) {
OrpheuCall(handleClearMultiDamage); engfunc(EngFunc_TraceLine, vecSrc, vecEnd, DONT_IGNORE_MONSTERS, pevAttacker, tr);
get_tr2(tr, TR_flFraction, flFraction);
if (flFraction != 1.0) {
new pEntity = get_tr2(tr, TR_pHit);
if (pEntity < 0) {
return;
}
iPenetration--;
flCurrentDistance = flFraction * flDistance;
get_tr2(tr, TR_vecEndPos, vecEndPos);
xs_vec_mul_scalar(vecDir, 42.0, vecForward);
xs_vec_add(vecEndPos, vecForward, vecSrc);
flDistance = (flDistance - flCurrentDistance) * 0.75;
xs_vec_mul_scalar(vecDir, flDistance, vecForward);
xs_vec_add(vecSrc, vecForward, vecEnd);
ExecuteHamB(Ham_TraceAttack, pEntity, pevAttacker, flDamage, vecDir, tr, DMG_BULLET | DMG_NEVERGIB);
} else {
iPenetration = 0;
} OrpheuCall(handleApplyMultiDamage, pevAttacker, pevAttacker);
}
}
Also not only this. Ok, later gonna go now.

Last edited by Hanna; 09-20-2016 at 08:34.
Hanna is offline
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 09-16-2016 , 22:20   Re: SetViewEntityBody
Reply With Quote #10

Can you make a special stock if someone is "Female" and i'm "Male" ... in register_touch if i'm touching an female to use your stock and make a baby !
__________________
Project: Among Us

Last edited by Craxor; 09-16-2016 at 22:20.
Craxor is offline
Send a message via ICQ to Craxor
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:08.


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