Posted By: Rei_Ayanami
Ugly Bulletholes - 07/19/09 11:52
Hello Guys!
I finally got my 3rd erson gun but there are so many problems . Please don´t say that my View is ugly - I know, it is just for testing.
Here are the pics:
Ugly!
Wrong!
You can see that there are really ugly and wrong.
Code:
Calls the bullet hole and creates it at the target position.
Bullet Hole Code:
Hope you understand the code !
Nearly every reply is a good reply!
I finally got my 3rd erson gun but there are so many problems . Please don´t say that my View is ugly - I know, it is just for testing.
Here are the pics:
Ugly!
Wrong!
You can see that there are really ugly and wrong.
Code:
Code:
c_trace(temp2, temp, IGNORE_PASSABLE | IGNORE_ME | IGNORE_YOU | USE_POLYGON | ACTIVATE_SHOOT | GET_HITVERTEX); ent_create("bullet_hole.tga",target,bullet_hole);
Calls the bullet hole and creates it at the target position.
Bullet Hole Code:
Code:
function bullet_hole() //die Funktion die die Einschusslöcher erstellt { vec_to_angle(my.pan, normal); //setzt den Winkel auf nciht der Camera anpassen my.scale_x = 1; //scaliert das Bild my.scale_y = 1; my.scale_z = 1; set(me, OVERLAY | TRANSLUCENT | PASSABLE); //setzt das Bild auf PASSABLE, Durchsichtig und Schwar ausblenden my.alpha = 100; //setzt die duchsichtig keit auf 0 wait(-5); //warte 5 sekunden while (my.alpha > 0) //solange das bild weniger als 100 % durchsichtig ist { my.alpha -= 0.25*time_step; //erhöhe die durchsichtigkeit wait(1); } ptr_remove(me); //entferne das Bild }
Hope you understand the code !
Nearly every reply is a good reply!