Raised This Month: $32 Target: $400
 8% 

[CS1.6|CZ] Knife Realism


Post New Thread Reply   
 
Thread Tools Display Modes
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 10-13-2014 , 16:24   Re: [CS1.6|CZ] Knife Realism v0.0.5 ( 14/10/2014 )
Reply With Quote #41

Quote:
Originally Posted by Arkshine View Post
Just to be sure, you did some test right?
I tested the blood decals and they were working as expected. I've only got cs1.6 to test on sadly I can't test on other games.

The melee check I took on faith from your advice should work as you described. I'll do a full test after work and update if any problems.
__________________
Blizzard_87 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-13-2014 , 17:20   Re: [CS1.6|CZ] Knife Realism v0.0.5 ( 14/10/2014 )
Reply With Quote #42

Let's dig more
  • This OFFSET_WEAPONOWNER, For consistency reason, please use the original CBasePlayer member name which is m_pPlayer.
  • There is really no point to cache value in plugin_cfg, plus such value can be changed in the middle of game, and that's not something which is called often.
  • I would cache get_user_team( index ) and get_user_team( iAttacker ) before.
  • In CBasePlayer_TakeDamage_P, you should call get_kr_flags where it's actually used, inside second check.
  • new szFlags[ 24 ]; well you can reduce buffer, since you can have only 7 flags.
  • I think I would use MSG_PVS for TE_BLOODSTREAM because that's something rather fast to happen, so no point to send message to others players who doesn't see this player. Less flood, the better.
  • Supporting plugin pause/unpause would be welcomed.
__________________

Last edited by Arkshine; 10-13-2014 at 17:20.
Arkshine is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 10-13-2014 , 18:20   Re: [CS1.6|CZ] Knife Realism v0.0.5 ( 14/10/2014 )
Reply With Quote #43

Quote:
Originally Posted by Arkshine View Post
Let's dig more
  • This OFFSET_WEAPONOWNER, For consistency reason, please use the original CBasePlayer member name which is m_pPlayer.
  • There is really no point to cache value in plugin_cfg, plus such value can be changed in the middle of game, and that's not something which is called often.
  • I would cache get_user_team( index ) and get_user_team( iAttacker ) before.
  • In CBasePlayer_TakeDamage_P, you should call get_kr_flags where it's actually used, inside second check.
  • new szFlags[ 24 ]; well you can reduce buffer, since you can have only 7 flags.
  • I think I would use MSG_PVS for TE_BLOODSTREAM because that's something rather fast to happen, so no point to send message to others players who doesn't see this player. Less flood, the better.
  • Supporting plugin pause/unpause would be welcomed.
Thanks for suggestions.

Will implement them when next on desktop.
__________________
Blizzard_87 is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 10-14-2014 , 06:45   Re: [CS1.6|CZ] Knife Realism v0.0.6 ( 14/10/2014 )
Reply With Quote #44

Quote:
Originally Posted by Arkshine View Post
Let's dig more
  • This OFFSET_WEAPONOWNER, For consistency reason, please use the original CBasePlayer member name which is m_pPlayer. Done.
  • There is really no point to cache value in plugin_cfg, plus such value can be changed in the middle of game, and that's not something which is called often. Done
  • I would cache get_user_team( index ) and get_user_team( iAttacker ) before. Done
  • In CBasePlayer_TakeDamage_P, you should call get_kr_flags where it's actually used, inside second check. Done
  • new szFlags[ 24 ]; well you can reduce buffer, since you can have only 7 flags. Done
  • I think I would use MSG_PVS for TE_BLOODSTREAM because that's something rather fast to happen, so no point to send message to others players who doesn't see this player. Less flood, the better. Done
  • Supporting plugin pause/unpause would be welcomed. Done
Updated Plugin

- v0.0.6 -

[ CHANGED ]


OFFSET_WEAPONOWNER to suggested m_pPlayer
Cached get_user_team in TakeDamage
now call get_kr_flags in correct check
changed TE_BLOODSTREAM broadcast to MSG_PVS
Removed plugin_cfg forward
Added Support For Pause/Unpause
edited szFlags buffer down from 24 to 7


Tested and all edits seem to be functional.
__________________

Last edited by Blizzard_87; 10-14-2014 at 06:49.
Blizzard_87 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-14-2014 , 07:02   Re: [CS1.6|CZ] Knife Realism v0.0.6 ( 14/10/2014 )
Reply With Quote #45

For now, this is good enough.

Approved.
__________________
Arkshine is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 10-14-2014 , 07:21   Re: [CS1.6|CZ] Knife Realism v0.0.6 ( 14/10/2014 )
Reply With Quote #46

Quote:
Originally Posted by Arkshine View Post
For now, this is good enough.

Approved.
thanks @Arkshine
__________________
Blizzard_87 is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 10-14-2014 , 10:57   Re: [CS1.6|CZ] Knife Realism v0.0.6 ( 14/10/2014 )
Reply With Quote #47

Congratulations, Blizzard_87. ;)
zmd94 is offline
Krtola
Veteran Member
Join Date: Oct 2013
Location: Serbia
Old 11-20-2014 , 10:02   Re: [CS1.6|CZ] Knife Realism v0.0.6 ( 14/10/2014 )
Reply With Quote #48

Can you make version for ZP - when zombie attack humans-humans bleeding?
Krtola is offline
Send a message via Skype™ to Krtola
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 11-20-2014 , 21:27   Re: [CS1.6|CZ] Knife Realism v0.0.6 ( 14/10/2014 )
Reply With Quote #49

Quote:
Originally Posted by Krtola View Post
Can you make version for ZP - when zombie attack humans-humans bleeding?
Sorry don't currently do plugins for ZP.
__________________
Blizzard_87 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 10:35.


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