AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Capsule 2.9 - 09/01/10 (https://forums.alliedmods.net/showthread.php?t=108745)

Asd' 11-08-2009 21:36

Capsule 2.9 - 09/01/10
 
1 Attachment(s)
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.

10000000 11-08-2009 22:12

Re: CapsuleSorprise 2.0 - 8/11/09.
 
Sorry, but your code is wrong. You should store the items in the entity and not get the items by the player id.

10000000 11-08-2009 22:28

Re: CapsuleSorprise 2.0 - 8/11/09.
 
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.

ot_207 11-12-2009 13:49

Re: Capsule 2.5 - 8/11/09.
 
Quote:

Originally Posted by Asd' (Post 988061)
New version 2.5

Big mistake in removing fun and using fakemeta util functions :wink:
Fun is more efficient! Use it!

joropito 11-12-2009 14:04

Re: Capsule 2.5 - 8/11/09.
 
Quote:

Originally Posted by ot_207 (Post 988092)
Big mistake in removing fun and using fakemeta util functions :wink:
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

Exolent[jNr] 11-12-2009 14:06

Re: Capsule 2.5 - 12/11/09.
 
Read this and learn:
http://forums.alliedmods.net/showthread.php?t=88792

Arkshine 11-12-2009 14:06

Re: Capsule 2.5 - 12/11/09.
 
There is already a tutorial which explain that, joropito. Calling one native is more efficient than severals. The less you call the better is.

ConnorMcLeod 11-12-2009 14:46

Re: Capsule 2.5 - 12/11/09.
 
You could use this code and create only 1 weaponbox.
http://forums.alliedmods.net/showthread.php?p=761924

#8 SickneSS 11-12-2009 15:32

Re: Capsule 2.5 - 12/11/09.
 
Nice !

metallicawOw 11-12-2009 18:03

Re: Capsule 2.5 - 12/11/09.
 
GJ =D


All times are GMT -4. The time now is 08:43.

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