[Hidden:Source] Team Aura / Tracer / Tracker
7 Attachment(s)
Written for Hidden:Source Beta 4b
Code:
/* Hidden:SourceMod - Team-Aura |
Re: [Hidden:Source] Team Aura / Tracer / Tracker
Hi.
The source is the 1.1.1 version ? Code:
#define PLUGIN_VERSION "1.1.1" |
Re: [Hidden:Source] Team Aura / Tracer / Tracker
forgot to update that :)
|
Re: [Hidden:Source] Team Aura / Tracer / Tracker
Plugin failed to compile, I'm new to this, I wonder if this is outdated or if you could fix the Plugin failed to compile issue.
Thanks. |
Re: [Hidden:Source] Team Aura / Tracer / Tracker
I know the chances are slim that anyone will answer this, but I was wondering if it was possible to change the lengths/amount of sprites in the I.R.I.S. and Hidden trails.
Any help is appreciated. |
Re: [Hidden:Source] Team Aura / Tracer / Tracker
Should be possible! I'm afraid I can't make the modifications in the code for you, but I'll throw enough out there that you'll be able to try poking it or someone else with more time can do it for you.
I'm assuming by length you're meaning the lifetime of the sprite (how long it appears before disappearing) in which case, it's governed by g_flSpriteUpdate, which is hardcoded to 0.1 seconds then subtracted from by 0.05. So on lines 637, 659, and 830 you can insert your own changes or simply change the value of the variable on line 143. The higher the number, the longer the sprite appears. For the amount of sprites, that's slightly more difficult if you have no coding experience, but by no means impossible. Essentially the lines involving TE_SetupGlowSprite(...) are creating the sprite, and the lines involving TE_SendToClient(...) are sending it to the client. If you were to copy and paste those segments so that you have two back to back, you would in effect be sending two sprites to the client. However, they'd be at the same position. So you'd have to tweak vSpritePos (which is determined above each block containing the TE_* code) slightly so that the other sprite would be visible. Unfortunately this is where you get into some voodoo math if you want to have the sprites appear at the correct positions at all angles (vectors, are they your friend?). The easiest alternative with no evil math would be to merely modify the 'z' axies of vSpritePos so that you have multiple sprites above and below, in which case an easy vSpritePos[2] += 10.0 or -= 20.0, you'd have to fiddle with it to get something you like. I don't know what material is being used to create the effect, or what the effect appears like in-game, but that should be the rough basics needed. |
Re: [Hidden:Source] Team Aura / Tracer / Tracker
I will say that I do not have any coding experience, and I think I got a little bit confused by your third paragraph, and I'm not entirely sure I was copying and pasting the proper segments, but to give you a better idea of what I'm trying to get done I took a screenshot of what the trail looks like with a custom sprite I was messing around with.
http://i.imgur.com/fQdKRT6.jpg As you can see there is a trail of hank hill's face following behind the player, which I use to allow spectators to follow the hidden's movements, but at increased distances the length of the trail can appear much shorter and make it harder to keep track of him, so I was hoping there would be a simple way of just increasing the amount of sprites following, to therefore increase the length of the trail. I previously used this plugin (http://forums.alliedmods.net/showthread.php?p=713664) for tracking the hidden but there was a glitch that caused the trail to continue to follow players after winning a round, and then causing them to be killed, but the plugin on this page managed to fix that, while also allowing for more features such as viewing the trail through walls. If you could provide anymore help it would be greatly appreciated. |
Re: [Hidden:Source] Team Aura / Tracer / Tracker
If you increase the sprite duration modifier from -0.05 to say +0.1 you should get sprites that lasts 0.2 seconds instead of 0.05 so the trail will be easier to follow I guess.
g_flSpriteUpdate defines the overall update cycle. if you decrease it, you'll get more sprites rendering and disappearing faster. if you increase it, the sprites will be farther apart and should remain visible that much longer. Remember though, if you alter g_flSpriteUpdate then you may need to adjust the modifier as well to compensate. But also keep in mind that the more sprites visible, the more work the server, network and clients are doing. |
Re: [Hidden:Source] Team Aura / Tracer / Tracker
Thanks a lot paegus that seems to have done exactly as I wanted, loving the plugin.
|
Re: [Hidden:Source] Team Aura / Tracer / Tracker
Absolutely awesome. These plugins are really helping Hidden stay alive. Bravo, and thx for the tip Doc.
|
All times are GMT -4. The time now is 18:51. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.