Raised This Month: $ Target: $400
 0% 

Trace attack


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
usaexelent
Senior Member
Join Date: Nov 2009
Location: Lithuania
Old 05-19-2012 , 14:22   Trace attack
Reply With Quote #1

So this is a good question, can I create my own Trace Attack and can I use it that my custom weapon bullet would go though walls

Last edited by usaexelent; 05-19-2012 at 14:22.
usaexelent is offline
Send a message via Skype™ to usaexelent
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 05-19-2012 , 15:03   Re: Trace attack
Reply With Quote #2

I like where this idea is going....

I'd say trace attack of origin and vector, then spawn the round again on the same vector at the other end of the wall. How to know where the wall is beats me. Or take the vector and draw the vector across the length of the map. taking origins of each player and if they intercept, deal damage.

Just throwing out ideas. Actual code is up to you.
__________________
What an elegant solution to a problem that doesn't need solving....
Liverwiz is offline
usaexelent
Senior Member
Join Date: Nov 2009
Location: Lithuania
Old 05-19-2012 , 15:16   Re: Trace attack
Reply With Quote #3

If I'm not mistaking trace attack makes it's own extra line when a wall is hitted.

It would be very nice if Arkshine or Connor would interact in this forum.

Last edited by usaexelent; 05-19-2012 at 15:18.
usaexelent is offline
Send a message via Skype™ to usaexelent
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 05-19-2012 , 15:21   Re: Trace attack
Reply With Quote #4

Quote:
Originally Posted by usaexelent View Post
It would be very nice if Arkshine or Connor would interact in this forum.
They are geniuses.....
__________________
What an elegant solution to a problem that doesn't need solving....
Liverwiz is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 05-20-2012 , 02:36   Re: Trace attack
Reply With Quote #5

Quote:
Originally Posted by Liverwiz View Post
They are geniuses.....
Yes they are, but I wouldn't leave Exolent out ;)

Or in this case I wouldn't leave the search button out either:
https://forums.alliedmods.net/showthread.php?t=70705

That looks like your best bet, but by the looks of it you'll only get it through one wall.
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
usaexelent
Senior Member
Join Date: Nov 2009
Location: Lithuania
Old 05-20-2012 , 11:40   Re: Trace attack
Reply With Quote #6

It uses trace line and I want to use Trace attack because by my theory that it will go automaticly trough walls by default of game
__________________
and once again
usaexelent is offline
Send a message via Skype™ to usaexelent
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-20-2012 , 12:54   Re: Trace attack
Reply With Quote #7

Not sure to follow, if you want to fire like in CS, use CBaseEntity::FireBullets3(), through Rage module.
But, basically, just a matter of throwing some traceline.
__________________

Last edited by Arkshine; 05-20-2012 at 12:57.
Arkshine is offline
usaexelent
Senior Member
Join Date: Nov 2009
Location: Lithuania
Old 05-20-2012 , 17:12   Re: Trace attack
Reply With Quote #8

I dont like "Rage" because I want that plugin would be amxx only. And now I will ask you the same boring question that your abored of, could you give me an example of trace lines that go trough walls?

BTW: I want that the method would be Trace Attack because I want that weapon would be like real, and some plugins uses Trace attack to block it.
__________________
and once again

Last edited by usaexelent; 05-20-2012 at 17:14.
usaexelent is offline
Send a message via Skype™ to usaexelent
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-20-2012 , 18:29   Re: Trace attack
Reply With Quote #9

The thing is using Rage is way far more efficient than a pawn plugin and others plugins will be able to hook TraceAttack.
__________________
Arkshine is offline
usaexelent
Senior Member
Join Date: Nov 2009
Location: Lithuania
Old 05-21-2012 , 01:35   Re: Trace attack
Reply With Quote #10

I know that "Rage" is maybe better but I don't want amxx plugin with "Rage" in my server, and I think that I will even release my weapon, but how many plugins has a F**king "Rage" with amxx
__________________
and once again

Last edited by usaexelent; 05-21-2012 at 01:36.
usaexelent is offline
Send a message via Skype™ to usaexelent
Reply



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 00:19.


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