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

Showing results 1 to 25 of 156
Search took 0.01 seconds.
Search: Posts Made By: Theme97
Forum: Scripting 12-25-2009, 20:23
Replies: 8
Views: 1,846
Posted By Theme97
Re: Some way to optimise this...

Dynamic arrays or keyvalues?
Forum: Scripting 12-17-2009, 08:07
Replies: 8
Views: 2,525
Posted By Theme97
Re: OnGameFrame GUI

Client indices are 1 to MaxClients (inclusive). The script is probably erroring out at client 0 (world). You should also add checks to see if the client exists, or else it'll probably fail as well.
...
Forum: Scripting 12-05-2009, 02:48
Replies: 8
Views: 2,487
Posted By Theme97
Re: why is this >working< ?

It would be String:moreText[2] because there are 2 indices (0 and 1).

Also, using "new" and setting something to 0 is redundant because "new" initializes all values to 0. If we were going for...
Forum: Scripting 11-21-2009, 04:46
Replies: 4
Views: 3,699
Posted By Theme97
Re: How to set an Entity Flag using CreateEntityByName?

If I remember correctly,

DispatchKeyValue(ent, "spawnflags", "3");
Forum: Scripting 11-11-2009, 04:08
Replies: 13
Views: 2,796
Posted By Theme97
Re: loop optimization

It means that every time you do array[key], it has to calculate where to look in the array. If you do it repeatedly, it will recalculate again and again.

This, however, is not relevant to your...
Forum: Scripting 11-10-2009, 20:12
Replies: 13
Views: 2,796
Posted By Theme97
Re: loop optimization

I'm not sure about #1, but if you do end up using local variables, be sure to use decl instead of new.

As for #2, are you using them multiple times in the loop or just once in that comparison? If...
Forum: Scripting 11-09-2009, 16:00
Replies: 4
Views: 1,611
Posted By Theme97
Re: Edit servertags problem

Also, tagging was completely removed in 1.2.1 (see bug #3751 (https://bugs.alliedmods.net/show_bug.cgi?id=3751)).
Forum: Scripting 10-26-2009, 21:55
Replies: 11
Views: 3,345
Posted By Theme97
Re: Check if player is on (above) another players head

That is correct, Scuzzy.


decl Float:pos_a[3], Float:pos_b[3];
GetClientAbsOrigin(player_a, pos_a);
GetClientAbsOrigin(player_b, pos_b);

if (pos_a[2] > pos_b[2]) {
// player_a is...
Forum: Unapproved Plugins 10-25-2009, 20:25
Replies: 116
Views: 196,543
Posted By Theme97
Re: [TF2] Randomizer

Ah, I was hoping I could get some more information on the ammo bug and the fake medigun beam bug before I can fix anything, but so far I don't have anyone to test for me. Hopefully I'll be able to...
Forum: Plugins 10-25-2009, 20:14
Replies: 16
Views: 25,151
Posted By Theme97
Re: [TF2] Intel Timer

Ah, no, but I'll see if I can get around to that now. Since my last post up there, I'd temporarily switched computers so I don't quite have the fixed version up yet.

Give me a bit.
Forum: Unapproved Plugins 10-22-2009, 23:30
Replies: 116
Views: 196,543
Posted By Theme97
Re: [TF2] Randomizer

I thought this might still be an issue. Please check any error logs and let me know where the errors, if any, are.

I also thought I'd fixed that but I suppose not? Make sure you're using the...
Forum: Plugin/Gameplay Ideas and Requests 10-22-2009, 01:26
Replies: 20
Views: 4,313
Posted By Theme97
Re: [L4D][REQ] Use of Pipe / Molly while incapped

[/quote]

Doing it by emulating client commands (especially +command and slot#) sounds rather hackish to me and seems like it's just bound to lead to complications.
Forum: Scripting 10-22-2009, 01:17
Replies: 1
Views: 902
Posted By Theme97
Re: [L4D] Speed of a player?

Either try using Prop_Send or use m_vecVelocity and get the vector length.
Forum: Plugins 10-21-2009, 19:58
Replies: 15
Views: 24,310
Posted By Theme97
Re: [TF2] Melee Dare

Yeah, that was sort of my next move with this idea. If you know some sound files that don't get used, I'll be happy to add them.



Thanks for the confirmation.



Part of it is because there...
Forum: Plugins 10-19-2009, 00:38
Replies: 15
Views: 24,310
Posted By Theme97
Re: [TF2] Melee Dare

Hmm. Try it without the public cvar (line 26).

If not, then I'd appreciate some error logs.
Forum: Plugins 10-18-2009, 23:42
Replies: 15
Views: 24,310
Posted By Theme97
Re: [TF2] Melee Dare

Gah. Any errors or a detailed description of what you tried to do? It seemed to work last time I had someone else try it.
Forum: Plugins 10-18-2009, 22:15
Replies: 15
Views: 24,310
Posted By Theme97
[TF2] Melee Dare

Helping out the guys working on the Touhou Fortress 2 (http://touhoufortress2.web.fc2.com/) modification, I felt kinda bad for having our voice actors record lines that aren't ever used.

The...
Forum: Snippets and Tutorials 10-17-2009, 14:52
Replies: 3
Views: 3,927
Posted By Theme97
Re: Cut decimal places (float to string)

Well, considering Format() already does this...

stock FloatToCutString(Float:value, String:target[], targetSize, DecPlaces) {
decl String:fmt[8];
FormatEx(fmt, sizeof(fmt), "%%.%df",...
Forum: Unapproved Plugins 10-15-2009, 20:33
Replies: 116
Views: 196,543
Posted By Theme97
Re: [TF2] Randomizer

This probably isn't fixable through a plugin, sorry.
Forum: Scripting 10-12-2009, 02:39
Replies: 6
Views: 1,944
Posted By Theme97
Re: Some TF2 and Misc Questions

Hah, just realized my "Probably not" wasn't in reply to what I wanted it to.

It was an answer to the first part of your question.
Forum: Scripting 10-12-2009, 00:19
Replies: 6
Views: 1,944
Posted By Theme97
Re: Some TF2 and Misc Questions

If you recall this bit on handles (http://wiki.alliedmods.net/Handles_%28SourceMod_Scripting%29), it's a special type of handle that comes from an enum (see here...
Forum: Scripting 10-09-2009, 02:36
Replies: 2
Views: 1,167
Posted By Theme97
Re: Spawning model with radius - need help

Could it be because the mine doesn't exist at the time? Try an IsValidEntity() check before it.
Forum: Plugins 10-05-2009, 19:36
Replies: 97
Views: 59,178
Posted By Theme97
Re: [ALL] Karaoke

Done.

Also rewrote the OP so it's less crappy. Hooray!
Forum: Scripting 10-04-2009, 22:32
Replies: 3
Views: 1,269
Posted By Theme97
Re: Detecting if player is spun up?

If m_nPlayerCond has bit 1 set, he's spun up.
Forum: Scripting 10-04-2009, 13:35
Replies: 6
Views: 1,596
Posted By Theme97
Re: GetArrayString <---> Invalid Handle

Sorry for the lack of clarity; I was referring to CreateDataTimer() (http://wiki.alliedmods.net/Timers_(SourceMod_Scripting)#Data_Packs).
Showing results 1 to 25 of 156

 
Forum Jump

All times are GMT -4. The time now is 13:59.


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