Posted By: mEnTaL
ent_decal issue - 08/27/10 21:02
Hi, it's me with my ent_decal problems again.
So, basicly what I am trying to do is a bullet which simply makes a hole when it hits a wall. And I did it this way:
But the SCAN_TEXTURE flag causes me a lot of problems and when I remove it the decal doesn't appear : ( . So, can you tell me how to do the same thing but without using this flag.
Thx : )
So, basicly what I am trying to do is a bullet which simply makes a hole when it hits a wall. And I did it this way:
Code:
...... VECTOR trace_target; vec_set(trace_target,vector(50,0,0)); vec_rotate(trace_target, me.pan); vec_add(trace_target, me.x); c_trace(me.x,trace_target, IGNORE_PASSABLE | USE_POLYGON | SCAN_TEXTURE ); PARTICLE* hole = ent_decal(you,bullethole,10,random(360)); .......
But the SCAN_TEXTURE flag causes me a lot of problems and when I remove it the decal doesn't appear : ( . So, can you tell me how to do the same thing but without using this flag.
Thx : )