AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   COD Mysterybox v1.2 (https://forums.alliedmods.net/showthread.php?t=300976)

Natsheh 09-04-2017 13:52

COD Mysterybox v1.2
 
Description :>

COD Mysterybox the idea is taken from call of duty zombie...
still don't know what is a mysterybox here....

Cvars :>
* Cvars will only change its value on new round start.
  • mybox_enabled
    Default : 1
    1 - plugin is enabled
    0 - plugin is disabled
  • mybox_flags
    Default : "acd"
    * a = spawn a mybox on round start,
    * b = spawn a mybox every x second,
    * c = remove all the myboxes on round end,
    * d = spawn a mybox if a mybox has teddybear called AKA vanished.
  • mybox_quantity_spawn_onroundstart
    the quantity of spawning a mysterybox during the round start, Default is 1.
  • mybox_loop_spawn_time
    Default : "240" / 4 Minutes
    the amount of time in seconds to spawn a mysterybox this cvar is useful when the cvar mybox_flags contain the value 'b'
  • mybox_teddybear_chances
    Default : "50"
    the percent of showing a teddybear when opening the box.

Commands:>
  • Console Commands:
    mysteryboxspawn spawn a mysterybox in a random location!
  • Client Commands:
    mysteryboxeditor Opens up the mysterybox editor menu
    mysterybox_editor_menu Opens up the mysterybox editor menu
    mysterybox_call_teddybear Calls a teddybear to the mybox that you are aiming at!



CHANGE LOGS :>

Code:

v1.0: Released.
v1.1: Item chances are now more correct, added Scale for sprites.
v1.1.1: Fixed a small bug prevented the box from opening!
v1.2: The code were optimized, fixed a bug that crashes the server due freeing a memory using remove_entity, added samantha laugther sound effect, gave the box yellow aura light effect, fixed items chances, created an API.


mysterybox_items.ini configuration....
PHP Code:


// Item name, currently its AK47
[AK47]
// COMMAND TYPE #1 is executing a function from a plugin.
COMMAND_TYPE "1"
// FORMAT will be like this
// "function_fullname" "plugin_fullname" "I:parameter 1 integer value" "S:parameter 2 string value" "F:parameter 3 float value".......
// WARNING : max parameters are 5.
COMMAND "func_give_item mysterybox_functions.amxx I:%id S:weapon_ak47 I:30 I:90"
// item model.
MODEL "models/w_ak47.mdl"
// item model angles.
MODEL_ANGLES "0.0 0.0 0.0"
// item sound only wav type, the sound will be called when the item has been chosen.
SOUND ""
// item accessflags
FLAG "b"
// item chance.
CHANCES 25


// Item name is Restart
[Restart]
// item command type is 0 which its a server command
COMMAND_TYPE 0
// command execution!
COMMAND "sv_restart 1"
// ITEM accessflags is immunity.
FLAG "a"
// item chances is 75 %
CHANCES 75


// Item name is introduction
[Introduction]
// item command type is -1 which its a client command
COMMAND_TYPE = -1
// client console command execution!
COMMAND "say hello, what a nice mysterybox!"
// item chances is 75 %
CHANCES 75
// Model sprite.
MODEL "sprites/welcome.spr"
// Scale of the sprite half its original size.
SCALE 50 

check out the file for examples....



Installation

Extract all the files in the archive into your game/server folder....


Servers are using this plugin....

Relaxing 09-05-2017 17:12

Re: COD Mysterybox
 
The configuration may be hard to customize for beginners. But the idea is great.

Ynet 09-06-2017 00:03

Re: COD Mysterybox
 
incredible plugin nothing else to say,
Thumbs Up! But There is a little bug when you get a teddy bear the Box doesn't despawn and the box bounces for some reason aswell

https://steamuserimages-a.akamaihd.n...72CEB4B14792B/

Natsheh 09-06-2017 08:36

Re: COD Mysterybox
 
!

Quote:

Originally Posted by Ynet (Post 2546962)
incredible plugin nothing else to say,
Thumbs Up! But There is a little bug when you get a teddy bear the Box doesn't despawn and the box bounces for some reason aswell

https://steamuserimages-a.akamaihd.n...72CEB4B14792B/

Theres several fall types for the mybox

1. Normal Fall
2. Bouncing Fall
3. Parachute Fall
4. No falling



About the teddybear you need atleast 2 locations inorder to respawn.

Natsheh 10-18-2017 06:28

Re: COD Mysterybox
 
If you or somebody have a problem configuring read the tutorial carefully..
Or look at the examples...

Natsheh 06-11-2018 08:12

Re: COD Mysterybox
 
Version 1.1 has been released!

Read the change log for more info.

Fuck For Fun 06-12-2018 11:16

Re: COD Mysterybox
 
GJ BRO, Like it :)

Natsheh 08-27-2018 15:24

Re: COD Mysterybox
 
Quote:

Originally Posted by Fuck For Fun (Post 2596565)
GJ BRO, Like it :)

Thanks would be real awesome if someone will make a video.

Anonymous 09-25-2018 17:26

Re: COD Mysterybox
 
Stolen from https://gamebanana.com/gamefiles/4180

Natsheh 09-26-2018 06:01

Re: COD Mysterybox
 
Its not even the same code beside my plugin has more features than that hardcoded plugin.

And you calling me a thief, how disrespectful is that.

Dont give any feedback without testing the differences or the results.

And btw i didnt steal shit from no one.

Instead of accusing people for stealing plugins why you dont find a better shit to do, and change your signature because you are on of the shits that youre talking about.


All times are GMT -4. The time now is 12:02.

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