Gun`s

Posted By: dtntr

Gun`s - 10/30/08 23:00

My gun shoot with bullets(not c_trace). How i can determine which effect draw when my bullet hit different surfaces?
Posted By: Blade280891

Re: Gun`s - 10/30/08 23:24

You need to assign the action to the bullet that if it hits say a wall model it will produce spark image, i think.

That means that you will probably have to assign an action to the wall's as well so the game knows its a wall.
Posted By: dtntr

Re: Gun`s - 10/31/08 09:39

No. How i can detrmine which surface hit my bullet? In c_trace weapon it easy through SCAN_TEXTURE.
Posted By: Uhrwerk

Re: Gun`s - 10/31/08 19:23

If your bullet hits the wall, i.e. event_block occurs, then do c_trace from the position of the bullet right to the front of the bullet. Remember to use IGNORE_ME. Then you can use SCAN_TEXTURE as well.
Posted By: Poison

Re: Gun`s - 10/31/08 19:41

do it like this, define a skill fe skill1 as surface_type like this #define surface_type skillbalbla
than define the types water f.e. #define water 1 you could also use another type f.e. rock wink
than use if(you.surface_type == water) after c-trace for detecting the surface_type of the hited modell.

be sure that the entity you want to hit has a surface type (my.surface_type = water/rock/etc.)
Posted By: dtntr

Re: Gun`s - 11/01/08 00:09

Thanks. You method is good for me(c_trace from every bullet is bad for system resources, i think). But my terrain is cover by multitexturig shader. How i can determine this surface?
© 2024 lite-C Forums