Raised This Month: $59 Target: $400
 14% 

Custom Bags


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Team Fortress Classic        Category:   Server Management        Approver:   v3x (159)
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 06-08-2006 , 02:26   Custom Bags
Reply With Quote #1


This plugin allows you to create custom backpacks / armorkits / healthkits with however much health/armor/ammo/nades in each that you want. You can also choose how often the bag spawns, what model it is, and which team can use it. Not only can you spawn custom bags, but you can delete bags that are already on a map. All spawned and deleted bags are saved into a configfile so that when the map changes back it will load the custom bags + removed bags. Custom bags can be removed and removed bags can be de-removed.

Commands (Flag "q"):

Menu Command that contains all the below commands in menu form:
amx_bagmenu

amx_createbag - Syntax:
Code:
<model - 1=backpack | 2=green armor | 3=red armor | 4=yellow armor | 5=medkit>
<health>
<armor>
<shells>
<bullets>
<cells>
<rockets>
<nade1>
<nade2>
<team - 0=any 1=blue 2=red 3=yellow 4=green>
<respawn time in 0.1s>
amx_removebag - Removes the backpack/armor/medkit closest to you from the map.
amx_de-removebag - <bag # - or - 0=list deleted bags>


Example amx_createbag usage:
Code:
amx_createbag 1 0 0 25 50 200 40 0 0 0 20

This creates a bag with a backpack model containing:

0 health
0 armor
25 shells
50 bullets
200 cells
40 rockets
0 nade type 1
0 nade type 2
respawns every 2 seconds
The list of de-removed bags tells you only the time at which the bag was deleted.

Note: When picking up a bag the right section of your hud does not flash.
Attached Files
File Type: sma Get Plugin or Get Source (GHW_Custom_Bags.sma - 1736 views - 36.6 KB)

Last edited by GHW_Chronic; 12-22-2006 at 20:03.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 06-13-2006 , 18:07  
Reply With Quote #2

whever posted that they wanted a menu and then deleted their post (lol) I added a menu and it's uber.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
bmxer4lyfe
Junior Member
Join Date: Aug 2005
Location: Canada eh
Old 06-13-2006 , 20:28  
Reply With Quote #3

Great plugin, but could it be made for CS aswell?
bmxer4lyfe is offline
Send a message via AIM to bmxer4lyfe
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 06-13-2006 , 21:26  
Reply With Quote #4

that'de be something completely different. This is pretty much an ingame no-brainer TFC map-editer. Post your requestion under the suggestions/requests forum.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
Kratos24
Junior Member
Join Date: Feb 2006
Old 06-19-2006 , 02:08  
Reply With Quote #5

umm, yea that was me that deleted the post... (didnt really mean too)
when I made some bags on 2fort map it made it were you chouldnt cap the flag,I had to delete the ini file were it saved the cordents
also the nades and shotgun shells didnt work for the bags
(Had the same problem with the Unlimited Ammo plugin)
__________________
Kratos24 is offline
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 06-19-2006 , 19:11  
Reply With Quote #6

if you tried to remove a bag while near a flagcap area, it will delete the flagcap area. and the ammo thing appears to be an AMXX bug.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
Ramono
Veteran Member
Join Date: Nov 2005
Location: Netherlands
Old 10-09-2006 , 16:20   Re: Custom Bags
Reply With Quote #7

OMG!! the bags dont need to be blocking!
they need to be SOLID_TRIGGER

gj on the plugin
Ramon.
__________________
Um, hi.
Ramono is offline
terrum
AlliedModders Donor
Join Date: Apr 2006
Location: UK, Kent
Old 10-29-2006 , 08:03   Re: Custom Bags
Reply With Quote #8

dude there's something like this on AdminOP. But AdminOP sucks and it doesn't delete the capinfo thing. great plugin though, +karma.
__________________
Thanks,
Terrum.


terrum is offline
Send a message via AIM to terrum Send a message via MSN to terrum Send a message via Skype™ to terrum
Ramono
Veteran Member
Join Date: Nov 2005
Location: Netherlands
Old 12-22-2006 , 08:25   Re: Custom Bags
Reply With Quote #9

I found a bug:

Max cells is 200 not 100 ( for engineers )

line 1229:
if(tfc_getbammo(ptd,TFC_AMMO_CELLS)>100) tfc_setbammo(ptd,TFC_AMMO_CELLS,100)

and in the menu has a 100 max too
__________________
Um, hi.
Ramono is offline
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 12-22-2006 , 20:03   Re: Custom Bags
Reply With Quote #10

thx fixed
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
Reply


Thread Tools
Display Modes

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 15:48.


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