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

No Use Through Walls


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Technical/Development        Approver:   VEN (29)
MPNumB
Veteran Member
Join Date: Feb 2007
Location: Lithuania
Old 04-30-2008 , 13:53   No Use Through Walls
Reply With Quote #1

Description:
This is an engine bug fix plugin - fixes ability to use things through walls. Example in Counter-Strike at cs_assault in CT spawn you can use cameras beeing not in the car, but this plugin fixes that bug. _cs version also blocks secondary attack while long use (like c4 defuse), and blocks use while in any attack and not in long time use. However _cs version is designed _ONLY_ for Counter-Strike mod and may work on some more (like CZero or some others - not tested).


Requires:
FakeMeta
HamSandWich (only in cs version)


Additional info:
Tested in Counter-Strike 1.6 with amxmodx 1.8.1.


Note:
In non _cs plugin version you can use your secondary attack while using long time objects if mod allows you.


Change-Log:

* 1.2
- Changed: now supports only Counter-Strike.
- Added: you cannot use items while in secondary attack or in zoom.
- Added: while using some long time use object (like c4 defuse) - you cannot use your secondary attack.

* 1.1
- Changed: code of getting entity origin - now requires less cpu usage.

* 1.0
- First release.
Attached Files
File Type: sma Get Plugin or Get Source (nousethroughwalls.sma - 2064 views - 3.1 KB)
File Type: sma Get Plugin or Get Source (nousethroughwalls_cs.sma - 1818 views - 5.8 KB)
__________________
Skill and no annoying bugs with fixed balance issues is my goal!
My approved plugins what don't show up in Approved List:
* Bomb/Death/CSS Radar
* HotVision
___
Need help? Please check this documentation first.

Last edited by MPNumB; 01-24-2009 at 07:13.
MPNumB is offline
Send a message via Skype™ to MPNumB
BloodMan
Senior Member
Join Date: Apr 2008
Location: Lithuania
Old 04-30-2008 , 13:56   Re: No Use Through Walls
Reply With Quote #2

Lithuanian - Paprastas pluginas, bet neblogas.
English - Simple plugin but nice.
__________________
BloodMan is offline
Send a message via Skype™ to BloodMan
MPNumB
Veteran Member
Join Date: Feb 2007
Location: Lithuania
Old 05-02-2008 , 09:23   Re: No Use Through Walls
Reply With Quote #3

Updated to 1.1 :
Changed: code of getting entity origin - now requires less cpu usage.
__________________
Skill and no annoying bugs with fixed balance issues is my goal!
My approved plugins what don't show up in Approved List:
* Bomb/Death/CSS Radar
* HotVision
___
Need help? Please check this documentation first.
MPNumB is offline
Send a message via Skype™ to MPNumB
Dr. Jan Itor
Veteran Member
Join Date: Mar 2008
Location: there.
Old 05-02-2008 , 11:04   Re: No Use Through Walls
Reply With Quote #4

looks like a nice usefull plugin
__________________
Dr. Jan Itor is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 05-02-2008 , 12:11   Re: No Use Through Walls
Reply With Quote #5

Techically would be more corect to block player use (HS) if target entity isn't visible.

EDIT: i've rethinked the subject of my statement by looking at multiple points and decided that it wasn't really correct.

Last edited by VEN; 05-03-2008 at 12:07.
VEN is offline
MPNumB
Veteran Member
Join Date: Feb 2007
Location: Lithuania
Old 05-02-2008 , 17:42   Re: No Use Through Walls
Reply With Quote #6

Don't agree. For example:
Behind the wall there is an entity with index 400. A bit more far away there is an entity with index 500 and not behind the wall. So using my way you will use entity with index 500. Blocking with HamSandWich you wont use anything, plus I wold have to block use sound also.
__________________
Skill and no annoying bugs with fixed balance issues is my goal!
My approved plugins what don't show up in Approved List:
* Bomb/Death/CSS Radar
* HotVision
___
Need help? Please check this documentation first.
MPNumB is offline
Send a message via Skype™ to MPNumB
VEN
Veteran Member
Join Date: Jan 2005
Old 05-03-2008 , 05:42   Re: No Use Through Walls
Reply With Quote #7

Quote:
Blocking with HamSandWich you wont use anything
Before block you can do a check for walls / brushes / other entities / et cetera and ignore the ones you want.
VEN is offline
MPNumB
Veteran Member
Join Date: Feb 2007
Location: Lithuania
Old 05-03-2008 , 07:19   Re: No Use Through Walls
Reply With Quote #8

Quote:
Originally Posted by VEN View Post
Before block you can do a check for walls / brushes / other entities / et cetera and ignore the ones you want.
Why shold I use more CPU if I can block what I want in check?

You still dont get it. First, no I will have to modify successfull use sound to unsuccessfull. If you don't belive me - try this one out. And 1 more thing. I explained it higher, but... Anyway, here's an image.

// edit:

Blocking it with HamSandWich it wold be just to much work plus it wold be almost imp.
1. Scan that I'm using now.
2. Player emit sound.
3. Entity emit sound (if exists).
4. Block ham.
5. Scan for valid entity only plus with is_in_view_core() check plus can entity be used...
6. Emit player sound.
7. Emit entity sound (if exists).

Now see - first it wold be almost impossible to block sound w/o knowing what entity player used, second if it is, it wold require the same scan only *2 with view core check, plus ham block, plus emit sound... CPU usage wold be just crazy...
Attached Thumbnails
Click image for larger version

Name:	whos_way_better....JPG
Views:	619
Size:	20.2 KB
ID:	26346  
__________________
Skill and no annoying bugs with fixed balance issues is my goal!
My approved plugins what don't show up in Approved List:
* Bomb/Death/CSS Radar
* HotVision
___
Need help? Please check this documentation first.

Last edited by MPNumB; 05-03-2008 at 11:12.
MPNumB is offline
Send a message via Skype™ to MPNumB
VEN
Veteran Member
Join Date: Jan 2005
Old 05-03-2008 , 12:01   Re: No Use Through Walls
Reply With Quote #9

Quote:
here's an image.
Good image explanation, i see what you mean now, thanks. Anyway i've rethinked the subject of my statement by looking at multiple points and decided that it wasn't really correct, edited the above post.

EDIT:

Quote:
// edit:
Yeah, that what i meant by "multiple points".

Last edited by VEN; 05-03-2008 at 12:09.
VEN is offline
MPNumB
Veteran Member
Join Date: Feb 2007
Location: Lithuania
Old 01-24-2009 , 07:08   Re: No Use Through Walls
Reply With Quote #10

Updated to 1.2 :
Changed: now supports only Counter-Strike.
Added: you cannot use items while in secondary attack or in zoom.
Added: while using some long time use object (like c4 defuse) - you cannot use your secondary attack.
__________________
Skill and no annoying bugs with fixed balance issues is my goal!
My approved plugins what don't show up in Approved List:
* Bomb/Death/CSS Radar
* HotVision
___
Need help? Please check this documentation first.
MPNumB is offline
Send a message via Skype™ to MPNumB
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 16:19.


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