Raised This Month: $202 Target: $400
 50% 

Remote Knife v1.2


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay       
WATCH_DOGS UNITED
Member
Join Date: Nov 2020
Location: Matrix
Old 11-08-2020 , 13:01   Remote Knife v1.2
Reply With Quote #1

Remote Knife v1.2



For Counter-Strike 1.6 and Condition-Zero.

Credits

= λMX Mod X - Plugin creation opportunity; Copyright AMX Mod X Dev Team
= VEN - Base code / get targets distance
= Bugsy - Command automation + M1/M2 attacks blocker
= hellmonja - Target players and entities function
= Natsheh - Code optimization
= mlibre - Make remote function only work when attacking

Description

= Hit targets at any distance as if you were close to them;
= Set the max range to hit the targets;
= Enable / Disable the use of Attack1 and Attack2;
= Define which targets can be hit by the knife.



PHP Code:
=  Changelog
=
=  
Nov 082020 v1.0   -  Initial release
=
=  
Nov 142020 v1.1   -  Optimized code
=
=  
Aug 082021 v1.2   -  Optimized code Added features
=
=      [ 
ADDED ]         -  Attack1 and Attack2 blocker
=      [ ADDED ]         -  Cvars for attack1 and attack2 blocker
=      [ ADDED ]         -  Now you can set the knife max range via cvar
=      [ ADDED ]         -  Cvar for knife max range control
=      [ ADDED ]         -  hit only entities command
=      [ ADDED ]         -  Admin level option
=
=  [ 
OPTIMIZED ]         -  Now the remote knife functions works only when you clickkeeping your gameplay more lighter 
Commands

= rk_enabled - Allows the use of the remote knife modes. Default value: 1 ( Allowed )
= rk_anything - Will hit anything.
= rk_players - Will hit only players.
= rk_world - Will hit only the world.
= rk_entities - Will hit entities [ things subject to change ( players, breakable objects, ladders etc. ) ]
= rk_m1 - Allows/blocks knife attack1. Default value: 1 ( Allowed )
= rk_m2 - Allows/blocks knife attack2. Default value: 1 ( Allowed )
= rk_max_range - Sets the knife max range. Default value: 9999 [ Every 100 units ~= 1,8 meters ]

Plugin File Info

= Lines: 225 - Code: 169
= Size : 6,66 KB - Code: 3,98 KB

V1.1 Downloads: 67
Attached Files
File Type: 7z Remote Knife v1.2.7z (37.4 KB, 13 views)
__________________
Copyright 2020-2021, WATCH_DOGS UNITED All Rights Reversed

Last edited by WATCH_DOGS UNITED; 08-09-2021 at 13:55. Reason: Updated to v1.2
WATCH_DOGS UNITED is offline
karaulov
Senior Member
Join Date: Jul 2018
Old 11-09-2020 , 03:24   Re: Remote Knife v1.0
Reply With Quote #2

This plugin replace default knife attack to throwing a knives?
karaulov is offline
WATCH_DOGS UNITED
Member
Join Date: Nov 2020
Location: Matrix
Old 11-09-2020 , 08:27   Re: Remote Knife v1.0
Reply With Quote #3

Quote:
Originally Posted by karaulov View Post
This plugin replace default knife attack to throwing a knives?
The knife will not be thrown, it will hit targets at any distance as if you are close to the target
__________________
Copyright 2020-2021, WATCH_DOGS UNITED All Rights Reversed
WATCH_DOGS UNITED is offline
tarsisd2
Veteran Member
Join Date: Feb 2016
Location: brazil
Old 11-09-2020 , 11:47   Re: Remote Knife v1.0
Reply With Quote #4

this seems a bit strange, so if i aim at a player from other side of the map and just hit knife attack i will hit him?
tarsisd2 is offline
WATCH_DOGS UNITED
Member
Join Date: Nov 2020
Location: Matrix
Old 11-09-2020 , 13:19   Re: Remote Knife v1.0
Reply With Quote #5

Quote:
Originally Posted by tarsisd2 View Post
this seems a bit strange, so if i aim at a player from other side of the map and just hit knife attack i will hit him?
Exactly.
__________________
Copyright 2020-2021, WATCH_DOGS UNITED All Rights Reversed
WATCH_DOGS UNITED is offline
rrduna
Member
Join Date: Nov 2010
Location: Brazil
Old 11-11-2020 , 09:30   Re: Remote Knife v1.0
Reply With Quote #6

looks pretty cool
rrduna is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 11-14-2020 , 10:55   Re: Remote Knife v1.0
Reply With Quote #7

An optimisation instead of calling get_user_weapon multiple times in the traceline forward at the check save it in a static variable.

Edit: i added some comments in the script, i just spotted some mistakes you currently have.

Spoiler
__________________
@Jailbreak Main Mod v2.6.6 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 11-14-2020 at 20:51.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
WATCH_DOGS UNITED
Member
Join Date: Nov 2020
Location: Matrix
Old 11-14-2020 , 21:41   Re: Remote Knife v1.0
Reply With Quote #8

Thank you very much for your help Natsheh, the plugin has been updated.
__________________
Copyright 2020-2021, WATCH_DOGS UNITED All Rights Reversed
WATCH_DOGS UNITED is offline
WATCH_DOGS UNITED
Member
Join Date: Nov 2020
Location: Matrix
Old 08-09-2021 , 13:58   Re: Remote Knife v1.2
Reply With Quote #9

Plugin Updated to V1.2

- Added M1/M2 block options
- Added cvar for knife max range
- Optimized code
- Added command to hit only entities
__________________
Copyright 2020-2021, WATCH_DOGS UNITED All Rights Reversed
WATCH_DOGS UNITED is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 08-17-2021 , 21:19   Re: Remote Knife v1.2
Reply With Quote #10

Interesting. Looks fun. Better with seeing the knife model taken out of hand being thrown and landing wherever on victim.
__________________
"It's not the actual programming that's interesting. But it's what you can accomplish with the end results that are important." -Dennis Ritchie
"Mathematics, rightly viewed, possesses not only truth, but supreme beauty a beauty cold and austere, like that of sculpture..." -Bertrand Russell
DJEarthQuake 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 12:26.


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