Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, Aku_Aku, ozgur), 1,095 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Gun`s #233861
10/30/08 23:00
10/30/08 23:00
Joined: Sep 2007
Posts: 52
Tver,Russia
D
dtntr Offline OP
Junior Member
dtntr  Offline OP
Junior Member
D

Joined: Sep 2007
Posts: 52
Tver,Russia
My gun shoot with bullets(not c_trace). How i can determine which effect draw when my bullet hit different surfaces?

Re: Gun`s [Re: dtntr] #233867
10/30/08 23:24
10/30/08 23:24
Joined: Jan 2008
Posts: 1,580
Blade280891 Offline
Serious User
Blade280891  Offline
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
D
dtntr Offline OP
Junior Member
dtntr  Offline OP
Junior Member
D

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 Offline
Expert
Uhrwerk  Offline
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 Offline
User
Poison  Offline
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 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.)


Everything is possible, just Do it!
Re: Gun`s [Re: Poison] #234104
11/01/08 00:09
11/01/08 00:09
Joined: Sep 2007
Posts: 52
Tver,Russia
D
dtntr Offline OP
Junior Member
dtntr  Offline OP
Junior Member
D

Joined: Sep 2007
Posts: 52
Tver,Russia
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?


Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1