AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   [CS1.6|CZ] Knife Realism (https://forums.alliedmods.net/showthread.php?t=236720)

Blizzard_87 03-10-2014 04:07

[CS1.6|CZ] Knife Realism
 
10 Attachment(s)
ThreadStart

Current Video Version 0.0.4


http://i.justblzd.tk/desc.png
This Plugin Adds More Realism With Knife Attacks.
When A Player Attacks With Knife, There Knife and Hands Will Get Coverd In Blood And Drip Blood Onto Floor.
The Victim Will Also Drip Blood And Spray Blood ( If Set In Cvar ).

You Can Set A Timeout Feature Where After "X" Amount of Secs The Blood And Or Spray Effects Will Stop.
You Can Also Set The Knife To Reset Back To Default Knife ( Without Blood ) In The Same Timeout Feature ( If Set In Cvar ).

EveryTime The Attacker Knifes The Same Person Or Another The Timeout Feature Gets "X" Added To It So The Effect Stays Active While Your Continuing Attacking.
So Basicly The Timeout Feature Starts To Countdown From Last Knife Attack On Victim.
http://i.justblzd.tk/cvars.png
amx_kr_timeout "10.0" // MUST BE FLOAT VALUE ( 10.0 ) Default
amx_kr "abce" // Default
// "a" Victim Bleeds
// "b" Attacker Knife Drips
// "c" Victim Blood Sprays
// "d" Attacker Knife Spray Blood
// "e" Blood Effects Timeout
// "f" KR Now Works With FriendlyFire ( ONLY when mp_friendlyfire set to 1 )
// "g" Remove Bloody Knife At Timeout Also
http://i.justblzd.tk/installation.png
Unzip knife-realism.zip
Place knife-realism folder into your models folder
cstrike/models/knife-realism
http://i.justblzd.tk/credits.png
jtp10181 - Bleeding Snippet( Ultimate Gore Plugin )
Arkshine - adjustment suggestions
Change Log

____________________________________________

Servers Using This Plugin:
Game Tracker
v0.0.1 37 Downloads
v0.0.2 14 Downloads
v0.0.4 155 Downloads
v0.0.5 5 Downloads


ThreadEnd

http://i.justblzd.tk/Download.png

Kia 03-10-2014 04:15

Re: Knife Realism v0.0.1 ( 10/03/2014 )
 
Very nice job. :)
You should add some screenshots if possible.

Blizzard_87 03-10-2014 04:20

Re: Knife Realism v0.0.1 ( 10/03/2014 )
 
Quote:

Originally Posted by Kia (Post 2109957)
Very nice job. :)
You should add some screenshots if possible.

Thanks.

And I shall add screen shots soon. Unless someone beats me to it.

EDIT: Added ScreenShots

jingojang 03-11-2014 05:17

Re: Knife Realism v0.0.1 ( 10/03/2014 )
 
Looks good Blizzard_87, well done.

Blizzard_87 03-11-2014 05:37

Re: Knife Realism v0.0.1 ( 10/03/2014 )
 
Quote:

Originally Posted by jingojang (Post 2110325)
Looks good Blizzard_87, well done.

thanks :)

Lokogaditano 03-11-2014 14:21

Re: Knife Realism v0.0.1 ( 10/03/2014 )
 
there is a bug

Sometimes, when people change weapon appear knife in left hand

or....when have knife, and change weapon "key q" appear other knife in other hand, not the fire weapon

sorry for my bad english

Lokogaditano 03-11-2014 15:37

Re: Knife Realism v0.0.1 ( 10/03/2014 )
 
and you can shoot with the knife! xD

Phant 03-11-2014 16:05

Re: Knife Realism v0.0.1 ( 10/03/2014 )
 
  • Don't work with teammates.
  • When I test plugin, I don't see blood decals, I can see it only when view demo (maybe another players can see it).
Video:


Blizzard_87 03-11-2014 18:07

Re: Knife Realism v0.0.1 ( 10/03/2014 )
 
Quote:

Originally Posted by Lokogaditano (Post 2110513)
there is a bug

Sometimes, when people change weapon appear knife in left hand

or....when have knife, and change weapon "key q" appear other knife in other hand, not the fire weapon

sorry for my bad english

I will try and reproduce this bug and fix.

Quote:

Originally Posted by Lokogaditano (Post 2110544)
and you can shoot with the knife! xD

I haven't had this problem. How and when did it happen?

Quote:

Originally Posted by Phant (Post 2110564)
Don't work with teammates.

I've done this on purpose but if people want the ability for it to work on teammates then I will add this feature either only when friendly fire is on? Or just all the time.

Phant 03-11-2014 18:39

Re: Knife Realism v0.0.1 ( 10/03/2014 )
 
Quote:

Originally Posted by Blizzard_87 (Post 2110629)
I've done this on purpose but if people want the ability for it to work on teammates then I will add this feature either only when friendly fire is on? Or just all the time.

You can make it optionally. Certainly when friendlyfire on.

Blizzard_87 03-11-2014 19:03

Re: Knife Realism v0.0.1 ( 10/03/2014 )
 
Quote:

Originally Posted by Phant (Post 2110639)
You can make it optionally. Certainly when friendlyfire on.

Sounds good will make update later tonight.

Lokogaditano 03-12-2014 10:20

Re: Knife Realism v0.0.2 ( 12/03/2014 )
 
Quote:
Originally Posted by Lokogaditano View Post
and you can shoot with the knife! xD
I haven't had this problem. How and when did it happen?


When, for ex. in a knife map, you can pick weapons in the floor, but when you pick one, and change weapon with "q", sometimes appear other knife instead of the weapon, in the other hand, and you can shoot with the knife, and if I press q, appear the normal knife that dont shoot

Blizzard_87 03-12-2014 15:08

Re: Knife Realism v0.0.2 ( 12/03/2014 )
 
Quote:

Originally Posted by Lokogaditano (Post 2110860)
Quote:
Originally Posted by Lokogaditano View Post
and you can shoot with the knife! xD
I haven't had this problem. How and when did it happen?


When, for ex. in a knife map, you can pick weapons in the floor, but when you pick one, and change weapon with "q", sometimes appear other knife instead of the weapon, in the other hand, and you can shoot with the knife, and if I press q, appear the normal knife that dont shoot

I've updated plugin.. can you please let me know if this problem still happens thanks..

Plugin Updated v0.0.2

Lokogaditano 03-14-2014 16:54

Re: Knife Realism v0.0.2 ( 12/03/2014 )
 
other bug, when we play a knife map, with he grenades, and kill somebody with the grenade, bloods knife like when you kill somebody with knife

Lokogaditano 03-14-2014 17:05

Re: Knife Realism v0.0.2 ( 12/03/2014 )
 
and bug that when I have awp somtimes knife autochanged instead of awp

Blizzard_87 03-14-2014 19:28

Re: Knife Realism v0.0.2 ( 12/03/2014 )
 
Quote:

Originally Posted by Lokogaditano (Post 2111514)
other bug, when we play a knife map, with he grenades, and kill somebody with the grenade, bloods knife like when you kill somebody with knife

Quote:

Originally Posted by Lokogaditano (Post 2111517)
and bug that when I have awp somtimes knife autochanged instead of awp

Stop double posting it's against the rules. Just edit your first post.

Now. I haven't had these bugs happen but ill try see if it happens. Do you have any other plugins running at same time?

red_bull2oo6 03-14-2014 19:34

Re: Knife Realism v0.0.2 ( 12/03/2014 )
 
awesome !! gonna add it on my furien sv :)
can i ask you what plugin was that in your test video ( the one that u are able to move that 'npc' ).

Blizzard_87 03-14-2014 21:01

Re: Knife Realism v0.0.2 ( 12/03/2014 )
 
Quote:

Originally Posted by red_bull2oo6 (Post 2111566)
awesome !! gonna add it on my furien sv :)
can i ask you what plugin was that in your test video ( the one that u are able to move that 'npc' ).

Phant made the video and to my knowledge it was just knife realism version 0.0.2


@Lokogaditano, I havent been able to reproduce this bug your talking about...

ive killed players with HE nade and my knife still normal.

ConnorMcLeod 03-15-2014 05:42

Re: Knife Realism v0.0.2 ( 12/03/2014 )
 
You should retrieve decals indexes dynamically so it could support cs1.6 and cs:cz

You can use engine get_decal_index or fakemeta EngFunc_DecalIndex since you are using both modules.

Blizzard_87 03-15-2014 05:46

Re: Knife Realism v0.0.2 ( 12/03/2014 )
 
Quote:

Originally Posted by ConnorMcLeod (Post 2111698)
You should retrieve decals indexes dynamically so it could support cs1.6 and cs:cz

You can use engine get_decal_index or fakemeta EngFunc_DecalIndex since you are using both modules.

Thanks for the idea. Will look into it soon.

EDIT:

Plugin Updated
- v0.0.3 -
[ CHANGED ]
Attackers Knife Now Stays Bloody Till Death/New Round By Default.
Timeout Feature Now Starts Counting Down From Last Attack.
[ ADDED ]
Added Support For CZ With Blood Decals ( Any Bugs Let Me Know ).

Lokogaditano 03-16-2014 11:31

Re: [CS1.6|CZ] Knife Realism v0.0.4 ( 16/03/2014 )
 
works fine now thx

Can you make a model that, when you knife other player, appear in the player a blood break?

Blizzard_87 03-16-2014 14:59

Re: [CS1.6|CZ] Knife Realism v0.0.4 ( 16/03/2014 )
 
Quote:

Originally Posted by Lokogaditano (Post 2112264)
works fine now thx

Can you make a model that, when you knife other player, appear in the player a blood break?

I dont know howto make models.

and i dont understand what you mean by blood break?

Lokogaditano 03-16-2014 19:55

Re: [CS1.6|CZ] Knife Realism v0.0.4 ( 16/03/2014 )
 
dont worry

The bug of the hegrenade dont already fixed

Try in a map only knife , and you get a hegrenade in the floor, you kill somebody with the hegrenade and in the knife appear blood, like if you kill somebody

Blizzard_87 03-16-2014 20:12

Re: [CS1.6|CZ] Knife Realism v0.0.4 ( 16/03/2014 )
 
Quote:

Originally Posted by Lokogaditano (Post 2112467)
dont worry

The bug of the hegrenade dont already fixed

Try in a map only knife , and you get a hegrenade in the floor, you kill somebody with the hegrenade and in the knife appear blood, like if you kill somebody

Ok I will test again. But this bug has not happened to me. Can anyone else confirm this bug?

AspireAut 03-17-2014 10:38

Re: [CS1.6|CZ] Knife Realism v0.0.4 ( 16/03/2014 )
 
Hello i'm a Noob...

witch Folder i Set the Cvar? ...

because this Plugin doenst works on my Server

Blizzard_87 03-17-2014 20:07

Re: [CS1.6|CZ] Knife Realism v0.0.4 ( 16/03/2014 )
 
Quote:

Originally Posted by AspireAut (Post 2112633)
Hello i'm a Noob...

witch Folder i Set the Cvar? ...

because this Plugin doenst works on my Server

The cvar gets put at tho bottom of the amxx.cfg file found in the config folder.

And put the folder from the zip file into your models folder from the cstrike folder.

Sun Aloe 03-30-2014 23:59

Re: [CS1.6|CZ] Knife Realism v0.0.4 ( 16/03/2014 )
 
Well done Blizzard!!! Really nice plugin!! An advanced knife realism plugin!

I'm using it, I have everything selected except 'Attacker Knife Spray Blood', because doesn't seems realistic. Seems more like the attacker is bleeding. The 'Attacker Knife Drips' already does well the job of showing the attacker's knife dripping blood.

Blizzard_87 03-31-2014 00:51

Re: [CS1.6|CZ] Knife Realism v0.0.4 ( 16/03/2014 )
 
Quote:

Originally Posted by Sun Aloe (Post 2118171)
Well done Blizzard!!! Really nice plugin!! An advanced knife realism plugin!

I'm using it, I have everything selected except 'Attacker Knife Spray Blood', because doesn't seems realistic. Seems more like the attacker is bleeding. The 'Attacker Knife Drips' already does well the job of showing the attacker's knife dripping blood.

agreed i left that attacker spray only for those die hard blood fans :P

FR0NTLINE 04-06-2014 22:07

Re: [CS1.6|CZ] Knife Realism v0.0.4 ( 16/03/2014 )
 
This plugin is Amazing. I'm surprised nobody has ever created this. I'm even more surprised this idea never crossed
my mind!!!!!!

Blizzard_87 04-06-2014 22:27

Re: [CS1.6|CZ] Knife Realism v0.0.4 ( 16/03/2014 )
 
Quote:

Originally Posted by FR0NTLINE (Post 2121193)
This plugin is Amazing. I'm surprised nobody has ever created this. I'm even more surprised this idea never crossed
my mind!!!!!!

Thanks.

I always wondered why games like this don't have this feature by default.

Sun Aloe 04-07-2014 01:01

Re: [CS1.6|CZ] Knife Realism v0.0.4 ( 16/03/2014 )
 
Quote:

Originally Posted by FR0NTLINE (Post 2121193)
This plugin is Amazing. I'm surprised nobody has ever created this. I'm even more surprised this idea never crossed
my mind!!!!!!

Well... you have this -> Bloody Knife

But its nothing compared with this one and changes the knife model when enabled.

Blizzard_87 04-07-2014 02:20

Re: [CS1.6|CZ] Knife Realism v0.0.4 ( 16/03/2014 )
 
Quote:

Originally Posted by Sun Aloe (Post 2121237)
Well... you have this -> Bloody Knife

But its nothing compared with this one and changes the knife model when enabled.

Must admit I didn't see that plugin.

Altho my plugin only uses one new knife model while using the original for non bloody.

I hope it's different enough to be interesting.

Sun Aloe 04-07-2014 11:19

Re: [CS1.6|CZ] Knife Realism v0.0.4 ( 16/03/2014 )
 
Yes, I think there are no reasons to worry about it. Your plugin is definitely different and necessary for realism.

Arkshine 10-13-2014 05:10

Re: [CS1.6|CZ] Knife Realism v0.0.4 ( 16/03/2014 )
 
Why do you hardcode decal indexes?
You could make the plugin multi-mod, using decal_index or EngFunc_DecalIndex, and you don't need to hook NewRound which is specific to CS.
About the knife, I think it's a good opportunity to use xmod_is_melee_wpn. That should work on CS/CZ/TFC/TS/DOD at least.

Blizzard_87 10-13-2014 09:23

Re: [CS1.6|CZ] Knife Realism v0.0.4 ( 16/03/2014 )
 
Quote:

Originally Posted by Arkshine (Post 2210476)
Why do you hardcode decal indexes?
You could make the plugin multi-mod, using decal_index or EngFunc_DecalIndex, and you don't need to hook NewRound which is specific to CS.
About the knife, I think it's a good opportunity to use xmod_is_melee_wpn. That should work on CS/CZ/TFC/TS/DOD at least.

ive removed the NewRound event, changed it to plugin_cfg for the settings. ( next update )

ive never used EngFun_DecalIndex and cant find any tut on howto use it...
Edit: ok i think i have this sorted now. ( next update )

xmod_is_melee_wpn is also another native ive not used before so unsure howto use it...

Arkshine 10-13-2014 09:49

Re: [CS1.6|CZ] Knife Realism v0.0.4 ( 16/03/2014 )
 
decal_index or EngFunc_DecalIndex requires a decal name and it returns its index.
It's easy, just use a tool to view decal from a .wad file, you would see something like:
http://i.imgur.com/qYxCcMo.png
You will notice what you need are the ones with "blood" in the name.
What your plugin is using are the names from {blood1 to {blood8.

So what to do is just cache the value of the first index, e.g. FirstBloodIndex = decal_index("{blood1");
Then, you message should use something like: write_byte(FirstBloodIndex - random_num(0, 7));


About xmod_is_melee_wpn ; never used too, but you just need to pass a weapon index, you can probably use get_user_weapon). These natives should be available in the related game module (csx, tsx, dox, etc).
I'm not sure, but to make the plugin autoloads the module, you can try this, taken from UltimateGore plugin, this should do the trick:
Code:
#pragma reqclass xstats #if !defined AMXMODX_NOAUTOLOAD    #pragma defclasslib xstats csx    #pragma defclasslib xstats dodx    #pragma defclasslib xstats tfcx    #pragma defclasslib xstats tsx #endif

EDIT:
You may need this as well (taken from UltimateGore plugin):
Code:
public plugin_natives() {     set_module_filter("module_filter");     set_native_filter("native_filter"); } public module_filter(const module[]) {     if (equal(module, "xstats") && !(cstrike_running() || equal(mod_name,"dod") || equal(mod_name,"tfc") || equal(mod_name,"ts")))     {         return PLUGIN_HANDLED;     }     return PLUGIN_CONTINUE; }

Blizzard_87 10-13-2014 10:17

Re: [CS1.6|CZ] Knife Realism v0.0.4 ( 16/03/2014 )
 
Quote:

Originally Posted by Arkshine (Post 2210549)
decal_index or EngFunc_DecalIndex requires a decal name and it returns its index.
It's easy, just use a tool to view decal from a .wad file, you would see something like:
http://i.imgur.com/qYxCcMo.png
You will notice what you need are the ones with "blood" in the name.
What your plugin is using are the names from {blood1 to {blood8.

So what to do is just cache the value of the first index, e.g. FirstBloodIndex = decal_index("{blood1");
Then, you message should use something like: write_byte(FirstBloodIndex - random_num(0, 7));


About xmod_is_melee_wpn ; never used too, but you just need to pass a weapon index, you can probably use get_user_weapon). These natives should be available in the related game module (csx, tsx, dox, etc).
I'm not sure, but to make the plugin autoloads the module, you can try this, taken from UltimateGore plugin, this should do the trick:
Code:
#pragma reqclass xstats #if !defined AMXMODX_NOAUTOLOAD    #pragma defclasslib xstats csx    #pragma defclasslib xstats dodx    #pragma defclasslib xstats tfcx    #pragma defclasslib xstats tsx #endif

EDIT:
You may need this as well (taken from UltimateGore plugin):
Code:
public plugin_natives() {     set_module_filter("module_filter");     set_native_filter("native_filter"); } public module_filter(const module[]) {     if (equal(module, "xstats") && !(cstrike_running() || equal(mod_name,"dod") || equal(mod_name,"tfc") || equal(mod_name,"ts")))     {         return PLUGIN_HANDLED;     }     return PLUGIN_CONTINUE; }

im still unsure were to use
Code:
xmod_is_melee_wpn
...

as i already use Ham_Item_Deploy to detect player using knife.

Arkshine 10-13-2014 10:32

Re: [CS1.6|CZ] Knife Realism v0.0.4 ( 16/03/2014 )
 
A knife is a melee weapon. But not all mod use a knife or is called like in CS. That's the whole point of this native.
I guess you could just replace your check with CSW_ with xmod_is_melee_wpn(get_user_weapon(iAttacker)).

Blizzard_87 10-13-2014 15:08

Re: [CS1.6|CZ] Knife Realism v0.0.4 ( 16/03/2014 )
 
Quote:

Originally Posted by Arkshine (Post 2210559)
A knife is a melee weapon. But not all mod use a knife or is called like in CS. That's the whole point of this native.
I guess you could just replace your check with CSW_ with xmod_is_melee_wpn(get_user_weapon(iAttacker)).

UPDATED PLUGIN
- v0.0.5 -
[ CHANGED ]
Removed NewRound Replaced With Plugin_Cfg
Removed hardcoded blood decals with EngFunc_DecalIndex
Replaced CSW_KNIFE check with xmod_is_melee_wpn

Arkshine 10-13-2014 16:00

Re: [CS1.6|CZ] Knife Realism v0.0.5 ( 14/10/2014 )
 
Just to be sure, you did some test right? :P


All times are GMT -4. The time now is 15:19.

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