AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Trace attack (https://forums.alliedmods.net/showthread.php?t=185607)

usaexelent 05-19-2012 14:22

Trace attack
 
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

Liverwiz 05-19-2012 15:03

Re: Trace attack
 
I like where this idea is going....:D

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. :P

usaexelent 05-19-2012 15:16

Re: Trace attack
 
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.

Liverwiz 05-19-2012 15:21

Re: Trace attack
 
Quote:

Originally Posted by usaexelent (Post 1712377)
It would be very nice if Arkshine or Connor would interact in this forum.

They are geniuses.....

hornet 05-20-2012 02:36

Re: Trace attack
 
Quote:

Originally Posted by Liverwiz (Post 1712382)
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.

usaexelent 05-20-2012 11:40

Re: Trace attack
 
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

Arkshine 05-20-2012 12:54

Re: Trace attack
 
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.

usaexelent 05-20-2012 17:12

Re: Trace attack
 
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.

Arkshine 05-20-2012 18:29

Re: Trace attack
 
The thing is using Rage is way far more efficient than a pawn plugin and others plugins will be able to hook TraceAttack.

usaexelent 05-21-2012 01:35

Re: Trace attack
 
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


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

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