Raised This Month: $209 Target: $400

Throwable C4 [ V 0.6 ]

Post New Thread Reply   
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay        Approver:   Arkshine (91)
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 09-25-2014 , 14:04   Throwable C4 [ V 0.6 ]
Reply With Quote #1

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.

  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
Attached Files
File Type: sma Get Plugin or Get Source (throwable_c4.sma - 1333 views - 8.3 KB)

Last edited by HamletEagle; 08-04-2015 at 13:48.
HamletEagle is offline
Old 09-25-2014, 14:04
This message has been deleted by HamletEagle. Reason: API deleted
Old 09-25-2014, 14:05
This message has been deleted by HamletEagle.
Join Date: Feb 2014
Location: Romania
Old 09-25-2014 , 14:17   Re: Throwable C4 [ V 0.2 ]
Reply With Quote #2

Very nice, good ideea, i like it
Adventx is offline
Send a message via Yahoo to Adventx
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 09-25-2014 , 15:13   Re: Throwable C4 [ V 0.2 ]
Reply With Quote #3

For packages, use only zip, [tar.]gz, [tar.]bz2. Plugins using other compression formats should not be approved, this includes RAR and 7z.
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (intervening in a thread, asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 09-25-2014 , 15:15   Re: Throwable C4 [ V 0.2 ]
Reply With Quote #4

I though that 7z is allowed, will change immediately.

Edit: done

Last edited by HamletEagle; 09-25-2014 at 15:19.
HamletEagle is offline
Senior Member
Join Date: Dec 2010
Old 09-25-2014 , 18:01   Re: Throwable C4 [ V 0.2 ]
Reply With Quote #5

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?
DonKisgot is offline
Senior Member
Join Date: Apr 2013
Old 09-25-2014 , 19:23   Re: Throwable C4 [ V 0.2 ]
Reply With Quote #6

hosimosi is offline
Join Date: Jul 2014
Location: Romania
Old 09-26-2014 , 11:28   Re: Throwable C4 [ V 0.2 ]
Reply With Quote #7

Very nice plugin.
You worked hard at it, do not think whoever makes it.
The plugin is working perfectly, I tested it
Keep working.
AlexandruRO is offline
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 09-26-2014 , 11:30   Re: Throwable C4 [ V 0.2 ]
Reply With Quote #8

Thx all, video added. Thx again to AlexandruRO
HamletEagle is offline
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 09-26-2014 , 12:35   Re: Throwable C4 [ V 0.2 ]
Reply With Quote #9

Another good plugin from HamletEagle. ;)
Problem with ZP?
ZP Helper!
zmd94 is offline
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-26-2014 , 13:48   Re: Throwable C4 [ V 0.2 ]
Reply With Quote #10

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.

Last edited by Arkshine; 09-26-2014 at 13:49.
Arkshine is offline

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

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