AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Throwable C4 [ V 0.6 ] (https://forums.alliedmods.net/showthread.php?t=248866)

HamletEagle 09-25-2014 13:04

Throwable C4 [ V 0.6 ]
 
1 Attachment(s)

Throwable C4 0.6
Release: 25.09.2014 | Last Update: 28.11.2014

Table of Contents

Description top

This plugin brings a new concept into the game, now you can throw the bomb. All you have to do is find a bomb site, go into it and press right click. The bomb will be thrown with a certain speed and a certain direction and will plant where it lands, no matter if it is no longer in bomb site.

Features:
  1. If you are in a bomb site the bomb will be throwed and will get planted.
  2. If you are outside bomb site and you press right click, the bomb will be just dropped.
  3. If you are not running a bomb map the plugin will be auto paused, so it won't use memory for nothing.
Requirements top

You need the fallowing things to get this working:
  • Okapi module.
  • An updated server without dproto.
    It may work into your outdated server with dproto, but if it doesn't, I won't help you.
Installation top

To install the plugin:
  1. Download the resources from this post. You need to get the source and compile it locally.
  2. Put throwable_c4.amxx in addons/amxmodx/plugins
  3. Open addons/amxmodx/configs/plugins.ini and add at the end of this file throwable_c4.amxx
  4. You can put the sma file into addons/amxmodx/sources but this is not mandatory.
  5. Restart the server/change map.

To install okapi:
  1. Download okapi_bin.zip and extrat the arhive.
  2. Copy okapi_amxx.dll/okapi_amxx_i386.so depending on your operation system into addons/amxmodx/modules
  3. The module will be auto-loaded, you don't need to add it into modules.ini

To compile locally:
  • First way:
    1. Download AMX Mod X for windows/linux from main site
    2. Extract somewhere the arhive and remember the folder!
    3. Copy the content from include folder from the okapi arhive into addons/amxmodx/scripting/include( in the folder created in the step 2 ).
    4. Download the source of the plugin( throwable_c4.sma) from this post and drag it over the compile.exe(scripting folder from the arhive created at step 2)
    5. It will create a new folder called compiled. Open it and you will find your compiled plugin( throwable_c4.amxx )
  • Second way:
    1. Go to http://spider.limetech.org/
    2. Copy/paste the code from the .sma file into the website.
    3. Under the big blue Compile button you see a box which Drop .inc files here
    4. Then press Compile and Download
Credits top
  • BackStabNoob: base ideea
  • Arkshine: a lot of useful explanation.
ChangeLog top
  • V 0.1:
    • Initial release
  • V 0.2:
    • Fixed some think bugs.
      Now using a more efficient method to get detect when player is using IN_ATTACK2 button
      Fixed a bug when you can't plant the c4 as per usual.
      Now the bomb hud icon is put back when you pickup the fake c4.
      Now the boxs near the bombsite are destroyed.
  • V 0.3:
    • Now the bomb is handled by the game so api removed..
  • V 0.4:
    • Changed a lot of stuffs, can't write all of them here.
  • V 0.5:
    • Major changes, Arkshine pocket is empty now, hopefuly.
  • V 0.6:
    • Fixed plugin not working on linux
    • Changed variable names
Downloads top
  • V 0.1 + V 0.2:25 downloads
  • V 0.3+0.5: 110 downloads

Adventx 09-25-2014 13:17

Re: Throwable C4 [ V 0.2 ]
 
Very nice, good ideea, i like it :)

YamiKaitou 09-25-2014 14:13

Re: Throwable C4 [ V 0.2 ]
 
For packages, use only zip, [tar.]gz, [tar.]bz2. Plugins using other compression formats should not be approved, this includes RAR and 7z.

HamletEagle 09-25-2014 14:15

Re: Throwable C4 [ V 0.2 ]
 
I though that 7z is allowed, will change immediately.

Edit: done

DonKisgot 09-25-2014 17:01

Re: Throwable C4 [ V 0.2 ]
 
we need video ASAP I'm really curious now but ı'm so lazy to install orpheu and insatll sprites and install plugin and change map to see how is this.. So please a video?

hosimosi 09-25-2014 18:23

Re: Throwable C4 [ V 0.2 ]
 
Gj

AlexandruRO 09-26-2014 10:28

Re: Throwable C4 [ V 0.2 ]
 
Very nice plugin.
You worked hard at it, do not think whoever makes it.
The plugin is working perfectly, I tested it
Keep working.

HamletEagle 09-26-2014 10:30

Re: Throwable C4 [ V 0.2 ]
 
Thx all, video added. Thx again to AlexandruRO

zmd94 09-26-2014 11:35

Re: Throwable C4 [ V 0.2 ]
 
Another good plugin from HamletEagle. ;)

Arkshine 09-26-2014 12:48

Re: Throwable C4 [ V 0.2 ]
 
I think you don't need to reinvent the wheel. You can probably heavily simplify if you're using Orpheu, like using the original function which creates bomb ShootSatchelCharge(), then you won't need all this touch/think/api/and such and let the game handling that (which is better for others plugins compatibility). All left would be probably handling how is thrown bomb. I did not check more than that, so I could be wrong.


All times are GMT -4. The time now is 16:32.

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