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

Capsule 2.9 - 09/01/10


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff        Approver:   Exolent[jNr] (178)
Asd'
Senior Member
Join Date: Jun 2009
Location: Argentina
Old 11-08-2009 , 22:36   Capsule 2.9 - 09/01/10
Reply With Quote #1

Description:
This plugin is based on original Half-Life game. When someone dies, release a capsule that contains the weapons and items of dead player. When another player grabs capsule, receive items in the capsule.

There're three modes of playing with capsules:
Quote:
* cp_teammode 0: Every player can pick capsules
* cp_teammode 1: Only players of the same team can pick capsules droped by someone
* cp_teammode 2: Only players of the other team can pick capsules droped by someone

You can enable/disable glowing
:
Quote:
* cp_glowmode 0: Glow disabled
* cp_glowmode 1: Glow enabled

Cvars:

Quote:
cp_teammode 1:
0: Anyone can catch the capsule.
1: Only the same team can catch the capsule.
2: Only the opposing team can catch the capsule.

cp_glowmode 1:
0: Glow disabled.
1: Glow enabled.

cp_remove 0:
0: Do not remove the capsules.
1: Remove the capsules.

cp_bounce 1:
0
: Off the bounce in the capsule
1: On the bounce on the capsule.

Credits:

Quote:
Joropito
IneedHelp
meTaLiCroSS
Video:
Changelog:
Quote:
Version 2.5:
- Removed fun module, added fakemeta module and... this plugin finished.
- Removed fakemeta module, add module fun and add stock.
Version 2.6:
-
Fixed all errors found.
Version 2.7:
- Updated the thread.
- New effects to the dropped a capsule.
- Solved all the opposing mistakes.
- Video of the plugin.
- Fix the plugin.
Version 2.8:
- Fixed all errors / bugs found.
- Added max BP ammo limit.
- Added CLIP clip amount control.
Version 2.9:
- Updated Thread.
- Fixed all errors / bugs found.
Attached Files
File Type: sma Get Plugin or Get Source (Capsule.sma - 3195 views - 9.6 KB)
__________________

Last edited by Asd'; 01-09-2010 at 02:47.
Asd' is offline
Send a message via MSN to Asd'
10000000
BANNED
Join Date: Oct 2009
Old 11-08-2009 , 23:12   Re: CapsuleSorprise 2.0 - 8/11/09.
Reply With Quote #2

Sorry, but your code is wrong. You should store the items in the entity and not get the items by the player id.
10000000 is offline
Old 11-08-2009, 23:16
Asd'
This message has been deleted by Asd'.
10000000
BANNED
Join Date: Oct 2009
Old 11-08-2009 , 23:28   Re: CapsuleSorprise 2.0 - 8/11/09.
Reply With Quote #3

You can store those 3 ints for sure in a entity. There are at least 20 variables to use in a entity like that.
You could even store the three values in just one int.
10000000 is offline
Old 11-12-2009, 14:31
Asd'
This message has been deleted by Asd'.
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 11-12-2009 , 14:49   Re: Capsule 2.5 - 8/11/09.
Reply With Quote #4

Quote:
Originally Posted by Asd' View Post
New version 2.5
Big mistake in removing fun and using fakemeta util functions
Fun is more efficient! Use it!
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 11-12-2009 , 15:04   Re: Capsule 2.5 - 8/11/09.
Reply With Quote #5

Quote:
Originally Posted by ot_207 View Post
Big mistake in removing fun and using fakemeta util functions
Fun is more efficient! Use it!
I've helped Asd in that.
To get Ent of carried weapons I choose to use fm_get_user_weapon_entity instead of make a function for that.

At the time we've started to use FM, I prefer to disable one module (fun).

What's better? use some of FM and some of FUN of use only from one module?
It's there another way to give item? The best it's fun?

Thanks
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 11-12-2009 , 15:06   Re: Capsule 2.5 - 12/11/09.
Reply With Quote #6

Read this and learn:
http://forums.alliedmods.net/showthread.php?t=88792
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-12-2009 , 15:06   Re: Capsule 2.5 - 12/11/09.
Reply With Quote #7

There is already a tutorial which explain that, joropito. Calling one native is more efficient than severals. The less you call the better is.
__________________
Arkshine is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-12-2009 , 15:46   Re: Capsule 2.5 - 12/11/09.
Reply With Quote #8

You could use this code and create only 1 weaponbox.
http://forums.alliedmods.net/showthread.php?p=761924
__________________
- tired and retired -
ConnorMcLeod is offline
Old 11-12-2009, 16:23
Asd'
This message has been deleted by Asd'.
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 11-12-2009 , 16:32   Re: Capsule 2.5 - 12/11/09.
Reply With Quote #9

Nice !

Last edited by #8 SickneSS; 11-12-2009 at 16:51.
#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
metallicawOw
Veteran Member
Join Date: Jun 2009
Location: Anywhere
Old 11-12-2009 , 19:03   Re: Capsule 2.5 - 12/11/09.
Reply With Quote #10

GJ =D
__________________

metallicawOw is offline
Old 11-12-2009, 19:26
Asd'
This message has been deleted by Asd'.
Old 11-16-2009, 18:44
Asd'
This message has been deleted by Asd'.
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 10:46.


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