Raised This Month: $51 Target: $400
 12% 

Help with Tracers


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Addicted.
AlliedModders Donor
Join Date: Dec 2013
Location: 0xA9D0DC
Old 02-16-2016 , 20:10   Help with Tracers
Reply With Quote #1

Hey guys,

I was just working on some new tracers for the store that I use on my servers and I thought it would be cool to make the tracers come out of the gun itself unlike the other plugins that are out there today.

I did some research on how to find the vector of the fired position (aka end of barrel) and I saw that I need to use the offset Weapon_ShootPosition, only problem is I am a noob when it comes to finding offsets and I could only find the css one online.

This is where I found that information: https://forums.alliedmods.net/showthread.php?t=200458

If anyone could help out that would be awesome! This is for cs:go btw
Addicted. is offline
lay295
Senior Member
Join Date: Sep 2013
Old 02-16-2016 , 22:01   Re: Help with Tracers
Reply With Quote #2

Never made a plugin with gamedata myself but I've seen this link passed around a lot

https://www.sourcemodplugins.org/vtableoffsets/csgo
__________________

lay295 is offline
Addicted.
AlliedModders Donor
Join Date: Dec 2013
Location: 0xA9D0DC
Old 02-16-2016 , 22:06   Re: Help with Tracers
Reply With Quote #3

Ok so BotoX helped me get the offset for Weapon_ShootPosition but that only gets me the position of the gun when it shoots.

Any ideas on finding the vector of the end of the barrel.

I know its possible because I've seen it on a server: https://gfycat.com/IlliterateMeanCheetah

It would be way to much work/impossible to try and calculate the distances and angles for every gun/playermodel so I know there must be a way to get this.
Addicted. is offline
Addicted.
AlliedModders Donor
Join Date: Dec 2013
Location: 0xA9D0DC
Old 02-16-2016 , 22:07   Re: Help with Tracers
Reply With Quote #4

Quote:
Originally Posted by lay295 View Post
Never made a plugin with gamedata myself but I've seen this link passed around a lot

https://www.sourcemodplugins.org/vtableoffsets/csgo
Yeah thats what he linked me earlier, thanks a lot though
Addicted. is offline
Addicted.
AlliedModders Donor
Join Date: Dec 2013
Location: 0xA9D0DC
Old 02-17-2016 , 20:08   Re: Help with Tracers
Reply With Quote #5

Ok so I believe I have narrowed it down to finding the signature of this: http://pastebin.com/M30QwsBr

I've tried by scanning with that decompiler thing but I've had no luck

Any help would be greatly appreciated.
Addicted. is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:32.


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