AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Fake bulletproof wall (https://forums.alliedmods.net/showthread.php?t=88049)

Miczu 03-19-2009 17:49

Fake bulletproof wall
 
1 Attachment(s)
Hello I'd like to know, is it possible (and how) to make a wall using amxx, that can stop bullets.

I asked my friend for map with many func_breakable and func_wall (map in attachments). By testing it i discovered that multiple walls (func_breakable and func_wall) can stop bullets, and the most efficient way to do it is by making 2x funk_breakable and 1 func_wall.

Before I started to make it, I used modified blockmaker plugin (modification: every block is funk_breakable, health 100.0, takedamage 1.0 [bbox standard]). Even truth I could destroy a block, even a +8 small blocks of func_breakable couldn't stop bullets :down:

Did I miss something? Is there a way to do it?

stupok 03-19-2009 17:53

Re: Fake bulletproof wall
 
Maybe you can use this?

http://forums.alliedmods.net/showthread.php?p=418409

Miczu 03-19-2009 18:03

Re: Fake bulletproof wall
 
When a trace line hit my entity, I just shot it hell away from everybody... Good idea.

Won't I mess anything if I kill every traceline that go truth that ent? (don't know if only bullets use it).

stupok 03-19-2009 20:04

Re: Fake bulletproof wall
 
Code:

        // not shooting anything
        if(!(pev(id,pev_button) & IN_ATTACK))
                return FMRES_IGNORED;

Those lines in XxAvalanchexX's code should isolate shot events. I don't think anything will be messed up.

Miczu 03-20-2009 08:11

Re: Fake bulletproof wall
 
I removed that - and added that by every traceline i reduce health of entity by 1.

It dosn't dissapier after looking at it (thats good) and it block too flashbangs :D (extra good).

Plz. close

MeRcyLeZZ 03-21-2009 17:41

Re: Fake bulletproof wall
 
Quote:

Originally Posted by Miczu (Post 784709)
Won't I mess anything if I kill every traceline that go truth that ent? (don't know if only bullets use it).

You can use Ham_TraceAttack to be on the safe side (it should also be a bit more efficient, btw).


All times are GMT -4. The time now is 08:57.

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