Raised This Month: $ Target: $400
 0% 

Showing results 1 to 23 of 23
Search took 0.00 seconds.
Search: Posts Made By: akn
Forum: Code Snippets/Tutorials 02-23-2013, 09:39
Replies: 8
Views: 8,732
Posted By akn
Re: [SNIPPET] first person gunpoint (view model attachment)

I believe it works for attachment point of all models
Forum: Approved Plugins 02-22-2013, 08:40
Replies: 118
Views: 162,715
Posted By akn
Re: Advanced Weapon Tracers 1.3.0 (21 jun 2008)

some suggestion for first person tracer
https://forums.alliedmods.net/showthread.php?t=209170
Forum: Code Snippets/Tutorials 02-22-2013, 04:36
Replies: 8
Views: 8,732
Posted By akn
[SNIPPET] first person gunpoint (view model attachment)

Code will post later, let me explain it first

Start at 2009
I saw the plugin “Advanced Weapon Tracers” by ConnorMcLeod about 4 years ago,
http://forums.alliedmods.net/showthread.php?t=62224
It...
Forum: Scripting Help 08-25-2009, 01:51
Replies: 36
Views: 14,568
Posted By akn
Re: How to get the coordinate of gunpoint

currently it works only for left handed, I am try to make it fit right handed

//first person tracer
#include <amxmodx>
#include <cstrike>
#include <fakemeta_stocks>
#include <engine>
#include...
Forum: Scripting Help 08-25-2009, 01:42
Replies: 36
Views: 14,568
Posted By akn
Re: How to get the coordinate of gunpoint

At least there is one way I found, post code in next post
Forum: Scripting Help 08-24-2009, 10:27
Replies: 36
Views: 14,568
Posted By akn
Re: How to get the coordinate of gunpoint

thanks, arkshine, I will try to find other ways
Forum: Scripting Help 08-24-2009, 05:24
Replies: 36
Views: 14,568
Posted By akn
Re: How to get the coordinate of gunpoint

that is the problem, each weapon have different position to calculate, not a possible solution.

when using TE_BEAMENTPOINT, you could use "playerID|0x1000" to ask the engine to draw a line from...
Forum: Scripting Help 08-24-2009, 00:24
Replies: 36
Views: 14,568
Posted By akn
Re: How to get the coordinate of gunpoint

many thanks Arkshine,
calculating the position can't be precise, since TE_BEAMENTPOINT is able to location the position so well, maybe we could get the position by investigating how does the...
Forum: Scripting Help 08-22-2009, 12:58
Replies: 36
Views: 14,568
Posted By akn
Re: How to get the coordinate of gunpoint

i tried with below code:
//UTIL_GetGunPosition( Player, Origin );
engfunc( EngFunc_GetAttachment, Player, 0 , Origin, VAngle );

the effect of player own shot is not good, because the...
Forum: Scripting Help 08-22-2009, 12:28
Replies: 36
Views: 14,568
Posted By akn
Re: How to get the coordinate of gunpoint

first, Arkshine, I really appreciate your effort and time answering this question,
the test code still have same problem as "Advanced Weapon Tracers", you can't see the tracer of your own shots.
...
Forum: Scripting Help 08-22-2009, 10:43
Replies: 2
Views: 1,280
Posted By akn
Re: help on fakemeta pev parameter

great, thanks a lot:wink:
Forum: Scripting Help 08-22-2009, 10:38
Replies: 2
Views: 1,280
Posted By akn
help on fakemeta pev parameter

in fakemeta_const.inc, all enum EngFunc key have parameter list in comments, but enum pev key don't have comments, where could i find the parameter list of pev key?
Forum: Scripting Help 08-22-2009, 09:12
Replies: 36
Views: 14,568
Posted By akn
Re: How to get the coordinate of gunpoint

the picture in first post is not a tracer, it is a laser sight, link:http://forums.alliedmods.net/showthread.php?p=518900
Forum: Scripting Help 08-22-2009, 07:59
Replies: 36
Views: 14,568
Posted By akn
Re: How to get the coordinate of gunpoint

this plugin can't show trace in first person view, that is what i want to do.
Forum: Scripting Help 08-22-2009, 03:08
Replies: 36
Views: 14,568
Posted By akn
Re: How to get the coordinate of gunpoint

peve player ID pev_view_ofs always return 0,0,17, not the offset of gun point.

pev playerID pev_viewmodel2 return models/v_ak47.mdl
pev playerID pev_weaponmodel2 return models/p_ak47.mdl...
Forum: Scripting Help 08-21-2009, 08:30
Replies: 36
Views: 14,568
Posted By akn
Re: How to get the coordinate of gunpoint

i know that, the format "id | 0x2000" is work for TE_BEAMENTS and TE_BEAMENTPOINT, how format work for EngFunc_GetAttachment? I failed
Forum: Scripting Help 08-21-2009, 07:49
Replies: 36
Views: 14,568
Posted By akn
Re: How to get the coordinate of gunpoint

the question is what "id | 0x1000" means, i know id is the players id
thx
Forum: Scripting Help 08-21-2009, 06:20
Replies: 36
Views: 14,568
Posted By akn
Re: How to get the coordinate of gunpoint

thanks,

I was trying to create a trace a line from the weapon attachment point, I know that TE_BEAMENTS and TE_BEAMPOINTS is able to draw a line from the attachment point, but there is a problem...
Forum: Scripting Help 08-21-2009, 04:40
Replies: 36
Views: 14,568
Posted By akn
Re: How to get the coordinate of gunpoint

I'll be appreciate if anyone could help
Forum: Scripting Help 08-20-2009, 09:15
Replies: 36
Views: 14,568
Posted By akn
Re: How to get the coordinate of gunpoint

thanks.
I try with playerID, value =1, it is works, but that is not the coordinate of gunpoint, as the picture below, left one is player's attachment point, right one is first person view weapon's...
Forum: Scripting Help 08-20-2009, 08:03
Replies: 36
Views: 14,568
Posted By akn
Re: How to get the coordinate of gunpoint

I tried with below code, and cs crashed, did I use error attachmentID or anything else I did wrong?

//amxx 1.8.1 all needed inc included

new wid=fm_get_user_weapon_entity(playerID)
//playerID...
Forum: Scripting Help 08-19-2009, 22:45
Replies: 36
Views: 14,568
Posted By akn
Re: How to get the coordinate of gunpoint

thanks a lot,
i will try it tonight :D
Forum: Scripting Help 08-19-2009, 07:10
Replies: 36
Views: 14,568
Posted By akn
How to get the coordinate of gunpoint

need the coordinate of gunpoint in first person view, as the picture
i know TE_BEAMENTPOINT is able to draw a line from that coordinate, but how to get the coordinate float value?
Showing results 1 to 23 of 23

 
Forum Jump

All times are GMT -4. The time now is 17:22.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode