Raised This Month: $ Target: $400
 0% 

Wall hit


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xPossible
Junior Member
Join Date: Jul 2014
Old 07-01-2014 , 07:35   Wall hit
Reply With Quote #1

Hi, how can i check when player do hit from weapon to wall?
xPossible is offline
Porta0123
Member
Join Date: Apr 2014
Location: Spain
Old 07-01-2014 , 09:37   Re: Wall hit
Reply With Quote #2

i think you mean this:

https://forums.alliedmods.net/showth...=66076?t=66076
Porta0123 is offline
Flick3rR
Veteran Member
Join Date: Feb 2014
Location: Bulgaria, Stara Zagora
Old 07-01-2014 , 12:34   Re: Wall hit
Reply With Quote #3

You mean the player is hitted trough wall, from another player? Or you mean when the player is shooting in wall, but not hitting another player?
__________________
Flick3rR is offline
Send a message via Skype™ to Flick3rR
Freezo Begin
BANNED
Join Date: Mar 2014
Location: Morocco
Old 07-01-2014 , 12:45   Re: Wall hit
Reply With Quote #4

Quote:
Originally Posted by Flick3rR View Post
You mean the player is hitted trough wall, from another player? Or you mean when the player is shooting in wall, but not hitting another player?
when the player is shooting in wall !
Freezo Begin is offline
Porta0123
Member
Join Date: Apr 2014
Location: Spain
Old 07-01-2014 , 12:50   Re: Wall hit
Reply With Quote #5

Quote:
Originally Posted by Freezo Begin View Post
when the player is shooting in wall !
he means when he is shooting a wall
Porta0123 is offline
xPossible
Junior Member
Join Date: Jul 2014
Old 07-01-2014 , 12:56   Re: Wall hit
Reply With Quote #6

I mean, when i shoot with weapon to wall, or with knife slash/stab to wall

In this check, victim should be WALL

Last edited by xPossible; 07-01-2014 at 12:57.
xPossible is offline
Freezo Begin
BANNED
Join Date: Mar 2014
Location: Morocco
Old 07-01-2014 , 13:22   Re: Wall hit
Reply With Quote #7

for the knife you can easy detect it by FM_EmitSound like this :
Code:
#include <amxmodx> #include <fakemeta> public plugin_init() {     register_plugin("x", "1.0", "Freezo")         register_forward(FM_EmitSound, "emit_sounds") } public emit_sounds(id, channel, const Sound[]) {     if(equali(Sound, "weapons/knife_hitwall1.wav")) {         // Do your stuff     } }
Freezo Begin is offline
xPossible
Junior Member
Join Date: Jul 2014
Old 07-01-2014 , 15:36   Re: Wall hit
Reply With Quote #8

but maybe is better variant?
xPossible is offline
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 07-01-2014 , 15:33   Re: Wall hit
Reply With Quote #9

Search for Traces and TraceAttack.
mottzi is offline
Send a message via MSN to mottzi
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 07-01-2014 , 22:51   Re: Wall hit
Reply With Quote #10

Explain in more detail what you are trying to do.
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet 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 21:11.


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