Gunshot smoke( wall puff)
How can i calculate angle, velocity, smoke when the bullet hit wall?
Can i use TE_MODEL to create the sprite? |
Re: Gunshot smoke( wall puff)
explain more please.
I dont understand how the smoke must be, mayby give picture or something? if you want to change angle, velocity and such stuff then you need to create new entity. |
Re: Gunshot smoke( wall puff)
Hook Ham_TraceAttack and get the hit point with get_tr2 TR_vecEndPos.
|
Re: Gunshot smoke( wall puff)
I know that, but i want create smoke at the point when bullet hit something not human.
Of course,TE_SPRITE cant be used in this case. |
Re: Gunshot smoke( wall puff)
get_user_aimning(id,victim,bh) - if 0<victim<=get_max_players() then is not human
get_user_origin(id,origin,3) - aim pos |
Re: Gunshot smoke( wall puff)
Men, i want to create smoke, not get aim origin.
|
Re: Gunshot smoke( wall puff)
create smoke at aim origin (problem?)
|
Re: Gunshot smoke( wall puff)
No,create smoke at bullet hit point. Use TraceAttack to get the endposition.
My english suck! |
Re: Gunshot smoke( wall puff)
to calculate angle you can use my method in http://forums.alliedmods.net/showthread.php?t=183454
PHP Code:
|
Re: Gunshot smoke( wall puff)
I'm not sure about this calculate...
Do you have c++ code of wallpuff? |
| All times are GMT -4. The time now is 06:19. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.