(CS) Drawing Spray
I have this screenshot:
http://firepic.org/thumbs/2013-12/31/p8hxad9e5f6s.png And use this code for collect bullet hits coordinates (X/Y): PHP Code:
http://firepic.org/thumbs/2013-12/31/pd8f30p361wl.png It's okay, but I want add dot of crosshair (actually pev_v_angles look at 0 0 coordinates, but I want draw pev_punchangle). I change code on this: PHP Code:
http://firepic.org/thumbs/2013-12/31/xz8k9ng08o9w.png Why punch coordinates so small? If I multiply coordinates on 12, this seems better: http://firepic.org/thumbs/2013-12/31/48wi75xmwnod.png But why 12? How I can calculate correct multiply value for punch? |
Re: (CS) Drawing Spray
Because you take in account distance to wall ?
Look at fm_get_aim_origin and just add punchangle to v_angle and see if you got same results. Following stock is fm_get_user_origin with less native calls, but using trace_line make it automatically use IGNORE_MONSTER if you pass an index (DONT_IGNORE_MONSTER when you pass -1 as index), so if you want to pass index + DONT_IGNORE_MONSTER you need to use engfunc(), but i don't think you care about players in what you are doing. PHP Code:
|
Re: (CS) Drawing Spray
Quote:
Thanks for stock. I use it (hope correct): PHP Code:
PHP Code:
http://5.firepic.org/5/images/2013-1...nk1dkfkewk.png Think is not bad result. |
Re: (CS) Drawing Spray
get_aim_origin returns the origin where player is aiming at, i don't understand why you think it y and z axes would return 0, and why you don't print x origin, and also why you have let line "pev(attacker, pev_v_angle, rvec);"
May be you are confused with punchangle that is not the same thing, punchangle should be 0 on 1st shot, and punchangle is relative to player, not to world. |
| All times are GMT -4. The time now is 10:07. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.