message_write?
Hey all :)
What I wanted to do is make a laser scope. I think TFC had one. But, I want it for the scout. I figured you could use trace line, but from the funcwiki it doesn't look like you can actually use that to draw the line visibly. So I guess you'd have to use message_write. I don't know how it works though. Could someone give me an example/walkthrough/tutorial? Thanx |
1 Attachment(s)
:D
|
ha, i'll look through that and see if i can figure out waht it means
|
I'll save you the effort (I'm so generous). Taken straight from my tempentity plugin (not finished yet).
Code:
|
Forgot to mention, you'll obviously need to find the exact point of the weapon so you cna make it look as real as possible, not sure how you'd do this.
Also, the sprite_dot is a variable that holds the id of the sprite "sprites/dot.spr". You'll need to precache it and store it's id in a var. Code:
|
Quote:
|
Quote:
|
wow, thanx. Just wondering though. How do you know that. Like what makes write_bite (1) the start frame for example?
|
If you look at the const.h file, it defines all of the temp entities with some nicer names, then it also has some comments tellign you what it expects for that message.
|
Yea, that file was from the HL SDK or w/e. :D
|
| All times are GMT -4. The time now is 16:42. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.