Raised This Month: $106 Target: $400
 26% 

C4 pick up from ground


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay       
karaulov
Junior Member
Join Date: Jul 2018
Old 07-09-2018 , 15:28   C4 pick up from ground
Reply With Quote #1

Sometimes accidentally, sometimes intentionally, players drop the bomb into an inaccessible place.


I could not find the plug-in that will fix it, and wrote my first plug-in that fixes it.

Just walk closer to the bomb, aim at it, and press the "use" button.

Attached Files
File Type: sma Get Plugin or Get Source (c4_helper.sma - 120 views - 2.1 KB)

Last edited by karaulov; 09-24-2018 at 04:56.
karaulov is offline
Mordekay
Squirrel of Fortune
Join Date: Apr 2006
Location: Germany
Old 07-09-2018 , 16:23   Re: C4 pick up from ground
Reply With Quote #2

Simple
Easy to use
good idea
Thanks!
__________________

Mordekay is offline
E1_531G
Senior Member
Join Date: Dec 2017
Old 07-09-2018 , 17:29   Re: C4 pick up from ground
Reply With Quote #3

Some fast tips:
1. You can force the touch between c4 and player. (instead of the remove-give method)
2. Better way to hook +use:
a. EmitSound: hook 'beep' sound
b. Pre/Post Think: hook IN_USE button
__________________
My English is A0

Last edited by E1_531G; 07-09-2018 at 17:30.
E1_531G is offline
karaulov
Junior Member
Join Date: Jul 2018
Old 07-10-2018 , 03:21   Re: C4 pick up from ground
Reply With Quote #4

But it my first plugin I don't know how to play sound or give weaponbox directly to player, or how to hook +use key...

Last edited by karaulov; 07-10-2018 at 03:22.
karaulov is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 07-10-2018 , 06:19   Re: C4 pick up from ground
Reply With Quote #5

Quote:
Originally Posted by karaulov View Post
But it my first plugin I don't know how to play sound or give weaponbox directly to player, or how to hook +use key...
You can find a lot of examples for each of this things if you search. This is how you learn.
__________________
HamletEagle is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 07-10-2018 , 10:44   Re: C4 pick up from ground
Reply With Quote #6

Is not more easy when drop C4 made a calc to manage if C4 will be drop at this type of location? and give it back to player? or move out from these places?

It is cool use +USE to bring c4 again, but sometimes this seems to be a problem in certain places.

n1ce idea anyway
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar,get_pcvar_num(pCvar) ? 1); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
Mordekay
Squirrel of Fortune
Join Date: Apr 2006
Location: Germany
Old 07-10-2018 , 11:08   Re: C4 pick up from ground
Reply With Quote #7

Mostly this happens when you are killed. What will you do with the C4 when you are dead?
__________________

Mordekay is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 07-10-2018 , 11:32   Re: C4 pick up from ground
Reply With Quote #8

Quote:
Originally Posted by Mordekay View Post
Mostly this happens when you are killed. What will you do with the C4 when you are dead?
Give to next terrorist or just move out from this place.
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar,get_pcvar_num(pCvar) ? 1); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
Mordekay
Squirrel of Fortune
Join Date: Apr 2006
Location: Germany
Old 07-10-2018 , 11:34   Re: C4 pick up from ground
Reply With Quote #9

Sadly the HL engine is stupid and does not know when someone could pick it up or not. giving it instantly to the next T is also not good. You have to go to it to pick it up. That's how it has to be
__________________

Mordekay is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 07-10-2018 , 11:56   Re: C4 pick up from ground
Reply With Quote #10

Quote:
Originally Posted by Mordekay View Post
Sadly the HL engine is stupid and does not know when someone could pick it up or not. giving it instantly to the next T is also not good. You have to go to it to pick it up. That's how it has to be
"Sadly the HL engine is stupid and does not know when someone could pick it up or not"

That is why amxx was created in first place, to no make any sense if C4 can not be pick up in some places of map.

See many C4 plugins to fix that, if i remember old HLGuard has something like this.

Press E Key trough walls to give back C4 seems to be a bit hack in a live game or some maps like Nuke, train and others that have this type of bug. is bad to general gameplay
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar,get_pcvar_num(pCvar) ? 1); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
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 13:44.


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