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

Showing results 1 to 25 of 148
Search took 0.01 seconds.
Search: Posts Made By: NIGathan
Forum: Scripting 02-12-2019, 04:34
Replies: 9
Views: 2,980
Posted By NIGathan
Re: When are handles closed?

I assumed an ArrayList would be more like std::vector from C++, where its size can be greater than it's actual contents. I assumed I was simply preparing the container to hold 1, not actually make it...
Forum: Scripting 02-12-2019, 02:30
Replies: 9
Views: 2,980
Posted By NIGathan
Re: When are handles closed?

Wow... Well I can't believe it, but I fixed it... The problem was initializing the ArrayList inside of MapRewardList to a size of 1 instead of 0. I guess when it was trying to access the 0 index it...
Forum: Scripting 02-11-2019, 22:33
Replies: 9
Views: 2,980
Posted By NIGathan
Re: When are handles closed?

Yes, my plugin is creating them.

No, I was the one who discovered that bug (https://forums.alliedmods.net/showthread.php?t=313970), I've been very careful to avoid it at all costs. The only enum...
Forum: Scripting 02-10-2019, 22:45
Replies: 9
Views: 2,980
Posted By NIGathan
Re: When are handles closed?

That was my assumption, but perhaps ArrayList's or StringMap's destructors get called when they are out of scope?

Also it would take me quite a long time to reproduce in a small enough sample size...
Forum: Scripting 02-10-2019, 22:05
Replies: 9
Views: 2,980
Posted By NIGathan
When are handles closed?

I just finished writing a rather large and thorough plugin using the new transitional syntax with a bunch of enum structs and methodmap objects that hold either ArrayList's or StringMap's of data,...
Forum: Scripting 02-04-2019, 18:53
Replies: 2
Views: 1,883
Posted By NIGathan
Re: Function callbacks with enum structs?

Ah, that makes sense, I should have thought about that.. Thanks
Forum: Scripting 02-04-2019, 03:49
Replies: 2
Views: 1,883
Posted By NIGathan
Function callbacks with enum structs?

I am trying to setup an enum struct to contain cvar handles, variables, and function callbacks for when they are changed, but the compiler is telling me there is a prototype mismatch. I imagine this...
Forum: Scripting 02-03-2019, 11:39
Replies: 8
Views: 4,106
Posted By NIGathan
Re: Trying to play with the new enum structs, but....

So after a good bit of trial and error I have managed to create a fully working test plugin that utilizes StringMaps to store data to and from an enum struct within a methodmap wrapper. I tried to...
Forum: Scripting 02-01-2019, 11:13
Replies: 8
Views: 4,106
Posted By NIGathan
Re: Trying to play with the new enum structs, but....

Well shouldn't view_as be making them both true regardless of the address because it's not a null address? Also, would methodmaps provide a temporary fix for this? I'm somewhat confused about them...
Forum: Scripting 01-31-2019, 19:43
Replies: 8
Views: 4,106
Posted By NIGathan
Re: Trying to play with the new enum structs, but....

Thanks for your reply and passing this along! This explains why view_as gave me differing results as well.
Forum: Scripting 01-30-2019, 22:31
Replies: 8
Views: 4,106
Posted By NIGathan
Re: Trying to play with the new enum structs, but....

I don't think that's entirely true. So I declared full before onPluiginStart, and initialized Edict to -1 there, then I get this error in console:nigel: !testfull prop_physics_override...
Forum: Scripting 01-29-2019, 23:37
Replies: 8
Views: 4,106
Posted By NIGathan
Trying to play with the new enum structs, but....

I've nearly pulled all my hair out trying to figure out how to make this thing work...

It almost seems like struct member functions return simply that they exist? I don't even know anymore.. Every...
Forum: Plugins 01-28-2019, 03:45
Replies: 9
Views: 5,187
Posted By NIGathan
Re: [ANY] Map Rewards (v1.000, 1/28/19)

The first officially stable v1.000 release is here!

This is the 241st build of Map Rewards and hopefully only new features come from here. In my testing I haven't found any bugs and deem it...
Forum: Plugins 01-19-2019, 22:20
Replies: 9
Views: 5,187
Posted By NIGathan
Re: [ANY] Map Rewards (v0.222, 1/19/19)

Several bugs have been smashed thanks to a lot of major code rewrites. Also aliases are evaluated much faster and smarter, most commands allow targeting multiple rewards at the same time, and you can...
Forum: Plugins 01-14-2019, 00:53
Replies: 9
Views: 5,187
Posted By NIGathan
Re: [ANY] Map Rewards (v0.195, 1/13/19)

Lots of bug fixes and some new stuff in v0.195:

I'm trying to prepare the code to transition into a better reward ID system that will allow better control over multiple entities at the same time,...
Forum: Plugins 01-03-2019, 01:03
Replies: 9
Views: 5,187
Posted By NIGathan
Re: [ANY] Map Rewards (v0.179, 12/23/18)

Thanks for the feedback, but as much as I agree with you on that for those specific cases, this plugin is for everything else. This plugin aims to easily create rewards on the map and on the fly. In...
Forum: Plugins 12-23-2018, 22:37
Replies: 9
Views: 5,187
Posted By NIGathan
Re: [ANY] Map Rewards (v0.172, 12/23/18)

v0.173 is now up!

This update adds some exciting features, now entities that can take damage can trigger commands when they are hurt or killed. They will also respawn automatically using whichever...
Forum: Plugins 12-22-2018, 18:49
Replies: 9
Views: 5,187
Posted By NIGathan
Re: [ANY] Map Rewards (v0.161, 12/20/18)

Yep, this can do that. Except for the breaking part. I plan to add in a means for determining if an entity's lifespan has ended, like when a tf_pumpkin_bomb gets shot, but I've got no real idea how...
Forum: Plugins 12-20-2018, 18:35
Replies: 9
Views: 5,187
Posted By NIGathan
Re: [ANY] Map Rewards (v0.161, 12/20/18)

Updated to v0.161

Changes
Fixed a bug causing timers in charge of rotating entities created with the -T switch to incorrectly apply garbage rotations to unrelated entities.
Forum: Plugins 12-17-2018, 04:03
Replies: 9
Views: 5,187
Posted By NIGathan
[ANY] Map Rewards (v1.001, 1/28/19)

Map Rewards on GitHub (https://github.com/nigelSaysHesHappy/Map-Rewards)



Description
Map Rewards allows you to create custom entities around the map. In theory, you are free to customize...
Forum: Plugins 05-13-2014, 20:18
Replies: 6
Views: 5,056
Posted By NIGathan
Re: [ANY] Server Migration (Changing IP?)

I haven't tested, but it might. I know it works in CSS.
Forum: Plugins 05-07-2014, 19:00
Replies: 6
Views: 5,056
Posted By NIGathan
Re: [ANY] Server Migration (Changing IP?)

Oh, thanks for the heads up. I couldn't find anything like it, only unautomated redirect plugins. No worries, I wrote this in like 20 minutes.
Forum: Plugins 05-07-2014, 18:37
Replies: 6
Views: 5,056
Posted By NIGathan
[ANY] Server Migration (Changing IP?)

I just had to move servers to a new IP. So I setup a VPS and bound my old IP's to it, setup a 2 slot server mimicing the old ones. Threw this plugin on them and added this line to the server.cfg...
Forum: Scripting 01-16-2014, 09:02
Replies: 12
Views: 1,860
Posted By NIGathan
Re: Admin List conundrum

if (GetUserFlagBits(client) & ADMFLAG_CHEATS) //client has cheat flag.

GetUserFlagBits() returns a number of all the flags combined. The & operator (Not &&) checks if a value is present. More...
Forum: Scripting 01-16-2014, 08:49
Replies: 2
Views: 936
Posted By NIGathan
Re: [TF2] Adding conditions...

This is what I use.

public OnPluginStart()
{
RegConsoleCmd("sm_milkme", Command_Milk)
}

public Action:Command_Milk(client, args)
{
if (IsClientInGame(client) && IsPlayerAlive(client))
Showing results 1 to 25 of 148

 
Forum Jump

All times are GMT -4. The time now is 06:10.


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