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

[TF2] Gift Mod [2.0] - New update! - [7/31/2015]


Post New Thread Reply   
 
Thread Tools Display Modes
Chaosxk
Veteran Member
Join Date: Aug 2010
Location: Westeros
Old 07-15-2013 , 22:32   Re: [TF2] Gift Mod [1.2.3] - [7/13/2013] - Fixes TF2 Update crash
Reply With Quote #131

I'll eventually add it back, i just did it because i thought it might cause a call stack error.

In other news, i'm gonna change the plugin setup a bit by allowing admins to set effects on another player with a overriding time. So doing something like !seteffect @all draculua 60 would give everyone the dracula effect for 60 seconds. Or -1 for permanent until removal.

Might also remove the particle glow that player gets when they get a gift.
__________________

Last edited by Chaosxk; 07-15-2013 at 22:38.
Chaosxk is offline
FlaminSarge
Veteran Member
Join Date: Jul 2010
Old 07-18-2013 , 00:28   Re: [TF2] Gift Mod [1.2.3] - [7/13/2013] - Fixes TF2 Update crash
Reply With Quote #132

If you're not using a tempent, try doing so for the particle stuff.
Code:
stock bool:TE_SetupTFParticle(String:Name[],
            Float:origin[3] = NULL_VECTOR,
            Float:start[3] = NULL_VECTOR,
            Float:angles[3] = NULL_VECTOR,
            entindex = -1,
            attachtype = -1,
            attachpoint = -1,
            bool:resetParticles = true)
{
    // find string table
    new tblidx = FindStringTable("ParticleEffectNames");
    if (tblidx == INVALID_STRING_TABLE)
    {
        LogError("Could not find string table: ParticleEffectNames");
        return false;
    }
    // find particle index
    new String:tmp[256];
    new count = GetStringTableNumStrings(tblidx);
    new stridx = INVALID_STRING_INDEX;
    for (new i = 0; i < count; i++)
    {
        ReadStringTable(tblidx, i, tmp, sizeof(tmp));
        if (StrEqual(tmp, Name, false))
        {
            stridx = i;
            break;
        }
    }
    if (stridx == INVALID_STRING_INDEX)
    {
        LogError("Could not find particle: %s", Name);
        return false;
    }

    TE_Start("TFParticleEffect");
    TE_WriteFloat("m_vecOrigin[0]", origin[0]);
    TE_WriteFloat("m_vecOrigin[1]", origin[1]);
    TE_WriteFloat("m_vecOrigin[2]", origin[2]);
    TE_WriteFloat("m_vecStart[0]", start[0]);
    TE_WriteFloat("m_vecStart[1]", start[1]);
    TE_WriteFloat("m_vecStart[2]", start[2]);
    TE_WriteVector("m_vecAngles", angles);
    TE_WriteNum("m_iParticleSystemIndex", stridx);
    if (entindex != -1)
    {
        TE_WriteNum("entindex", entindex);
    }
    if (attachtype != -1)
    {
        TE_WriteNum("m_iAttachType", attachtype);
    }
    if (attachpoint != -1)
    {
        TE_WriteNum("m_iAttachmentPointIndex", attachpoint);
    }
    TE_WriteNum("m_bResetParticles", resetParticles ? 1 : 0);
    return true;
}
I... don't remember quite how to use it, but you'll get it eventually.
I've got it for something like this:
Code:
    if (TE_SetupTFParticle(effectname, pos, _, _, prop, 3, 0, false))
        TE_SendToAll(0.0);
__________________
Bread EOTL GunMettle Invasion Jungle Inferno 64-bit will break everything. Don't even ask.

All plugins: Randomizer/GiveWeapon, ModelManager, etc.
Post in plugin threads with questions.
Steam is for playing games.
You will be fed to javalia otherwise.
Psyduck likes replays.
FlaminSarge is offline
Chaosxk
Veteran Member
Join Date: Aug 2010
Location: Westeros
Old 07-18-2013 , 18:06   Re: [TF2] Gift Mod [1.2.3] - [7/13/2013] - Fixes TF2 Update crash
Reply With Quote #133

Thanks for that, it's very useful, especially on another plugin i'm working on that spawns info_particle_systems but had issues with no edict crash.

Just 2 questions,
1. What does entindex do?
2. How can i remove it under a timer?
I tested it but it doesn't get removed, i tried to write m_fLife but it doesn't have that property.

Edit: Did some search and found out we can only use particles that die on their own for tempents.
__________________

Last edited by Chaosxk; 07-18-2013 at 18:50.
Chaosxk is offline
DeathMaster
AlliedModders Donor
Join Date: Mar 2009
Old 08-11-2013 , 14:18   Re: [TF2] Gift Mod [1.2.3] - [7/13/2013] - Fixes TF2 Update crash
Reply With Quote #134

Well this is the 2nd time iv tried your plugin now with poor results. It ran for about 4 minutes before crashing the server hard. No errors in the logs so not quite sure whats going on. Is this plugin compatible with RTD?
DeathMaster is offline
Chaosxk
Veteran Member
Join Date: Aug 2010
Location: Westeros
Old 08-11-2013 , 18:05   Re: [TF2] Gift Mod [1.2.3] - [7/13/2013] - Fixes TF2 Update crash
Reply With Quote #135

Quote:
Originally Posted by DeathMaster View Post
Well this is the 2nd time iv tried your plugin now with poor results. It ran for about 4 minutes before crashing the server hard. No errors in the logs so not quite sure whats going on. Is this plugin compatible with RTD?
Post your sourcemod and build number.

Also post your "sm plugins list" so i can see if another plugin might conflict. RTD and this plugin should be fine running together.

Edit: Also, Linux or Windows.
__________________

Last edited by Chaosxk; 08-11-2013 at 18:37.
Chaosxk is offline
DeathMaster
AlliedModders Donor
Join Date: Mar 2009
Old 08-14-2013 , 18:05   Re: [TF2] Gift Mod [1.2.3] - [7/13/2013] - Fixes TF2 Update crash
Reply With Quote #136

Quote:
Originally Posted by Chaosxk View Post
Post your sourcemod and build number.

Also post your "sm plugins list" so i can see if another plugin might conflict. RTD and this plugin should be fine running together.

Edit: Also, Linux or Windows.
Windows

SourceMod Version Information:
SourceMod Version: 1.5.0-dev+3877
SourcePawn Engine: SourcePawn 1.1, jit-x86 (build 1.5.0-dev+3877)
SourcePawn API: v1 = 4, v2 = 4
Compiled on: Aug 5 2013 10:440
Build ID: 3877:85ab61768bb0

[SM] Listing 67 plugins:
01 "AddTime" (1.0.4) by bl4nk
02 "Admin File Reader" (1.5.0-dev+3855) by AlliedModders LLC
03 "Admin Help" (1.5.0-dev+3855) by AlliedModders LLC
04 "Admin List" (1.2) by Fredd
05 "Admin Menu" (1.5.0-dev+3855) by AlliedModders LLC
06 "Admin Smite" (2.1) by Hipster
07 "Advanced Infinite Ammo" (1.2.9) by Tylerst
08 "Advertisements" (0.5.5) by Tsunami
09 "Anti-Flood" (1.5.0-dev+3855) by AlliedModders LLC
10 "[TF2] backpack.tf Price Check" (2.2.0) by Dr. McKay
11 "Basic Chat" (1.5.0-dev+3855) by AlliedModders LLC
12 "Basic Comm Control" (1.5.0-dev+3855) by AlliedModders LLC
13 "Basic Commands" (1.5.0-dev+3855) by AlliedModders LLC
14 "Basic Info Triggers" (1.5.0-dev+3855) by AlliedModders LLC
15 "Basic Votes" (1.5.0-dev+3855) by AlliedModders LLC
16 "[TF2] Be the Horsemann" (1.3) by FlaminSarge
17 "BuildingsSpawner" (1.0) by X3Mano
18 "TF2 Shop Mod" (4.0) by GachL & TheSpyHunter
19 "Fun package for Candy" (1.5) by GachL & TheSpyHunter
20 "TF2 Class Restrictions" (0.6) by Tsunami
21 "Client Preferences" (1.5.0-dev+3855) by AlliedModders LLC
22 "[Source 2009] Custom Chat Colors" (3.0.1) by Dr. McKay
23 "Auto De-Spectate" (1.1.1) by Oshroth
24 "[TF2] Destroy Engineer Buildings" (1.2.0) by DarthNinja
25 "[TF2] Fancy Fire Arrows (Crossbow and Huntsman)" (2.0.0) by DarthNinja
26 "Fun Commands" (1.5.0-dev+3855) by AlliedModders LLC
27 "Fun Commands X" (2.3) by Spazman0 and Arg!
28 "Fun Votes" (1.5.0-dev+3855) by AlliedModders LLC
29 "[Any] Deluxe Godmod" (2.0.0) by DarthNinja
30 "[TF2] Monoculus Spawner" (1.1.1) by DarthNinja
31 "Immunity Reserve Slots [CONNECT]" (2.0. by Jamster
32 "Melee Mode" (0.4) by chundo
33 "Name Change Handler" (1.0.0) by Ixel
34 "TF2SS Perkbot" (0.6) by TF2SwapShop
35 "PermaMute" (0.1) by Ryan "FLOOR_MASTER" Mannion
36 "Player Commands" (1.5.0-dev+3855) by AlliedModders LLC
37 "[TF2] Pumpkin" (1.1) by linux_lover edited by TSH
38 "Steam Report Bot" (0.6) by TF2SwapShop
39 "TF2: Roll the Dice" (0.4.4.2) by linux_lover ([email protected])
40 "Round Triggers" (1.10) by MikeJS
41 "Say Sounds (including Hybrid Edition)" (4.0.6) by Hell Phoenix|Naris|FernFerret|Uberman|psychonic|ed gecom|woody|Miraculix|gH0sTy
42 "Server Crontab" (1.0.1.2) by dubbeh
43 "Scrap Bank Bot" (0.1) by TF2SwapShop
44 "Server Crontab Module" (1.0.1.2) by dubbeh
45 "Server Logo TF2" (1. by ReFlexPoison
46 "Server Redirect Modded" (1.2) by Bottiger, Brainstorm
47 "Shop Bot" (0.1) by TF2SwapShop
48 "Simple Chat Processor (Redux)" (1.1.5) by Simple Plugins, Mini
49 "Evil Admin - Beam" (1.0.100) by Dog
50 "Evil Admin - Glow" (1.0.107) by Dog
51 "Evil Admin - Health" (1.0.104) by Dog
52 "Evil Admin - Pimp Slap" (1.0.102) by Dog
53 "Evil Admin - Rocket" (1.0.110) by Dog
54 "Force HTML MOTDs" (1.0.3) by Twisted|Panda
55 "Sound Commands" (1.5.0-dev+3855) by AlliedModders LLC
56 "SourceBans" (1.4.9) by SourceBans Development Team
57 "Steam inviter" (1.0) by Russianeer
58 "SteamRep Checker" (1.1.5) by jameless
59 "[TF2] Stunmod" (1.4.4.7) by DarthNinja
60 "[TF2] Capture Toggle" (0.0.3) by AW 'Swixel' Stanley
61 "Targeted Crits chance" (0.1) by Spazman0
62 "TeamSwitch" (1.3) by MistaGee
63 "TF2 Set Class" (1.2.1) by Tylerst
64 "[TF2Items] Manager" (1.4.1) by Damizean & Asherkin
65 "[TF2] Afk to Red" (1.0) by TF2SwapShop
66 "[TF2] Rate of Fire" (1.2) by EHG
67 "Traffic Cash" (0.8.5) by Traffic Cash
DeathMaster is offline
VirtualJunky
Junior Member
Join Date: Aug 2013
Old 08-16-2013 , 09:39   Re: [TF2] Gift Mod [1.2.3] - [7/13/2013] - Fixes TF2 Update crash
Reply With Quote #137

[SM] Plugin gift.smx failed to load: Native "GetUserMessageType" was not found.
VirtualJunky is offline
Chaosxk
Veteran Member
Join Date: Aug 2010
Location: Westeros
Old 08-16-2013 , 12:34   Re: [TF2] Gift Mod [1.2.3] - [7/13/2013] - Fixes TF2 Update crash
Reply With Quote #138

Quote:
Originally Posted by VirtualJunky View Post
[SM] Plugin gift.smx failed to load: Native "GetUserMessageType" was not found.
Use Sourcemod 1.5 snapshot, not 1.4.8.
http://www.sourcemod.net/snapshots.php
__________________
Chaosxk is offline
VirtualJunky
Junior Member
Join Date: Aug 2013
Old 08-17-2013 , 08:43   Re: [TF2] Gift Mod [1.2.3] - [7/13/2013] - Fixes TF2 Update crash
Reply With Quote #139

Quote:
Originally Posted by Chaosxk View Post
Use Sourcemod 1.5 snapshot, not 1.4.8.
http://www.sourcemod.net/snapshots.php
Oh thanks, that seemed to have fixed it.
VirtualJunky is offline
mycologist
SourceMod Donor
Join Date: Sep 2008
Location: Sep 2008
Old 08-19-2013 , 16:55   Re: [TF2] Gift Mod [1.2.3] - [7/13/2013] - Fixes TF2 Update crash
Reply With Quote #140

Any updates on 1.2.4? My community absolutely loves this plugin, great work.
__________________

mycologist is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:35.


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