|
5 registered members (AndrewAMD, TipmyPip, Quad, M_D, 1 invisible),
1,614
guests, and 3
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Gun`s
[Re: dtntr]
#233867
10/30/08 23:24
10/30/08 23:24
|
Joined: Jan 2008
Posts: 1,580
Blade280891
Serious User
|
Serious User
Joined: Jan 2008
Posts: 1,580
|
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.
Last edited by Blade28081991; 10/30/08 23:25.
My Avatar Randomness V2"Someone get me to the doctor, and someone call the nurse And someone buy me roses, and someone burned the church"
|
|
|
Re: Gun`s
[Re: dtntr]
#233937
10/31/08 09:39
10/31/08 09:39
|
Joined: Sep 2007
Posts: 52 Tver,Russia
dtntr
OP
Junior Member
|
OP
Junior Member
Joined: Sep 2007
Posts: 52
Tver,Russia
|
No. How i can detrmine which surface hit my bullet? In c_trace weapon it easy through SCAN_TEXTURE.
Last edited by dtntr; 10/31/08 09:46.
|
|
|
Re: Gun`s
[Re: dtntr]
#234046
10/31/08 19:23
10/31/08 19:23
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
Expert
|
Expert
Joined: Jan 2002
Posts: 4,225
Germany / Essen
|
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.
Always learn from history, to be sure you make the same mistakes again...
|
|
|
Re: Gun`s
[Re: Uhrwerk]
#234049
10/31/08 19:41
10/31/08 19:41
|
Joined: Apr 2007
Posts: 582 Germany
Poison
User
|
User
Joined: Apr 2007
Posts: 582
Germany
|
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  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.)
Everything is possible, just Do it!
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|