Raised This Month: $128 Target: $400
 32% 

Showing results 1 to 25 of 28
Search took 0.00 seconds.
Search: Posts Made By: Ravrob
Forum: Scripting 11-17-2020, 03:43
Replies: 4
Views: 333
Posted By Ravrob
Re: [TF2] Repeat_Timer script help

Oh cool! I never would've thought of using an index. Thanks a ton!
Forum: Scripting 11-17-2020, 02:09
Replies: 4
Views: 333
Posted By Ravrob
Re: [TF2] Repeat_Timer script help

I'm kinda confused as to how that would make a difference.. I'm pretty sure I'd still have the same problem with the 'debt' variable. I'm starting to think timers might not work with this concept.
Forum: Scripting 11-16-2020, 21:47
Replies: 4
Views: 333
Posted By Ravrob
[TF2] Repeat_Timer script help

So, a brief explanation to this code. I want to make it so that the Bushwacka will grant cloak while you're holding attack2, but after you stop holding attack2 you will bleed for however many seconds...
Forum: Scripting 11-15-2020, 02:16
Replies: 4
Views: 358
Posted By Ravrob
Re: [TF2] Cleaner's Carbine Crikey Meter

All I was really looking for was the netprop used with the meter, thanks anyways.
Forum: Scripting 11-15-2020, 02:15
Replies: 4
Views: 358
Posted By Ravrob
Re: [TF2] Cleaner's Carbine Crikey Meter

Yup that works too thanks, suppose I was trying to over complicate things.
Forum: Scripting 11-13-2020, 19:56
Replies: 4
Views: 358
Posted By Ravrob
[TF2] Cleaner's Carbine Crikey Meter

So I've been trying to make a script that will do something when the player activates their Crikey meter using the Cleaner's Carbine, however I can't seem to figure out what the meter itself is...
Forum: Scripting 11-13-2020, 18:26
Replies: 2
Views: 315
Posted By Ravrob
Re: GetClientWeapon Compile Errors

Ahhh okay I didn't know that. Thanks for pointing that out.
Forum: Scripting 11-13-2020, 06:19
Replies: 2
Views: 315
Posted By Ravrob
GetClientWeapon Compile Errors

So I'm trying to use GetClientWeapon except it keeps throwing error 029: invalid expression, assumed zero. I thought I was using this function correctly and I can't seem to find anything different in...
Forum: Scripting 11-10-2020, 20:52
Replies: 2
Views: 323
Posted By Ravrob
Re: [TF2] Detecting Headshots

Ah! Excellent, now that you point that out that makes perfect sense. One more line of code and it works just fine. Thanks!
Forum: Scripting 11-10-2020, 20:15
Replies: 2
Views: 323
Posted By Ravrob
[TF2] Detecting Headshots

I'm trying to create a script that will increase the decaps and focus meter of the Bazaar Bargain and the Hitman's Heatmaker, however I only want this to trigger upon a headshot. Now I've got the...
Forum: Scripting 11-07-2020, 08:16
Replies: 2
Views: 273
Posted By Ravrob
Re: [TF2] projectile_direct_hit event issue

Thanks! That fixed it. Didn't work at first and it was reporting the correct values, but I realized iWeapon isn't an entity so I removed that and the whole script worked with and without the valid...
Forum: Scripting 11-07-2020, 04:53
Replies: 2
Views: 273
Posted By Ravrob
[TF2] projectile_direct_hit event issue

I'm trying to create a script which increases the Airstrike's clip when a player scores a direct hit with it. However, I'm running into an issue where the "attacker" client index always returns 0....
Forum: Scripting 07-16-2020, 07:24
Replies: 3
Views: 459
Posted By Ravrob
Re: [TF2] OnTakeDamage damage value help

Oh, duh. You were absolutely correct I feel silly having missed that, thank you! Although oddly enough I wasn't getting a tag mismatch.. not sure why that is.
Forum: Scripting 07-15-2020, 21:32
Replies: 3
Views: 459
Posted By Ravrob
[TF2] OnTakeDamage damage value help

I'm trying to create a script that will allow players to leech health under certain conditions and what I wrote does that just fine, only if you call the damage parameter it'll return some huge...
Forum: Scripting 07-09-2020, 05:11
Replies: 6
Views: 532
Posted By Ravrob
Re: [TF2] Getting Uber Value and Setting Uber Value

I hadn't seen your edit about changing float to int, and that was the exact problem! You must've made the edit while I was preparing my reply. The code works perfectly now thank you very much! :D
Forum: Scripting 07-09-2020, 02:51
Replies: 6
Views: 532
Posted By Ravrob
Re: [TF2] Getting Uber Value and Setting Uber Value

Those numbers aren't necessarily the issue, I'm using this to check what the actual float is and for some reason it keeps coming out 0.
PrintToChatAll("You have %f charge.", uberAmount);
I also...
Forum: Scripting 07-09-2020, 01:01
Replies: 6
Views: 532
Posted By Ravrob
Re: [TF2] Getting Uber Value and Setting Uber Value

I had actually tried these stocks earlier to no avail, I was making mistakes converting them to new syntax but I figured it out this time. :roll: So it compiles now, only nothing is happening now,...
Forum: Scripting 07-08-2020, 21:00
Replies: 6
Views: 532
Posted By Ravrob
[TF2] Getting Uber Value and Setting Uber Value

Sincerest apologies if I'm posting too much, I promise I've tried to troubleshoot on my own! :|
So, essentially what this code does is it finds a random dead player and respawns them at a player...
Forum: Scripting 07-08-2020, 02:59
Replies: 10
Views: 551
Posted By Ravrob
Re: Random Player Help

Thanks for all the help! It's choosing random people exactly as I wanted it's just not working with certain functions for some reason. Either way for the most part it does what I want so thanks again...
Forum: Scripting 07-08-2020, 02:14
Replies: 10
Views: 551
Posted By Ravrob
Re: Random Player Help

I figured out that error was because I was using MAXPLAYERS in the for statement rather than MaxClients, oops! The last thing I'm not so sure about is how to call the function, could I just do...
Forum: Scripting 07-08-2020, 01:29
Replies: 10
Views: 551
Posted By Ravrob
Re: Random Player Help

It compiled just fine using MAXPLAYERS but unfortunately now I'm getting an error on the server console which I'm pretty sure is related to MAXPLAYERS where the console is telling me over and over...
Forum: Scripting 07-07-2020, 23:56
Replies: 10
Views: 551
Posted By Ravrob
Re: Random Player Help

I believe it's compiled on 1.9.
Forum: Scripting 07-07-2020, 23:40
Replies: 10
Views: 551
Posted By Ravrob
Re: Random Player Help

So when I use
int clients[];
It outputs these two errors:
error 036: empty statement
error 009: invalid array size (negative, zero or out of bounds)
and creates a whole gaggle of errors in ...
Forum: Scripting 07-07-2020, 23:11
Replies: 10
Views: 551
Posted By Ravrob
Random Player Help

So I've been trying to choose a random player using
stock Action GetRandomPlayer()
{
int clients[MaxClients + 1];
int clientCount;
for (int i = 1; i <= MaxClients; i++)
{
if...
Forum: Scripting 07-05-2020, 23:21
Replies: 3
Views: 414
Posted By Ravrob
Re: Button Press Detection Issues

That worked just fine! Thanks for your help :D I was confused about using OnPlayerRunCmd and you really cleared it up for me. I totally understand why I shouldn't have been using OnGameFrame in that...
Showing results 1 to 25 of 28

 
Forum Jump

All times are GMT -4. The time now is 00:37.


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