Raised This Month: $32 Target: $400
 8% 

[req] CT run (evade) c4 in map


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
rx1983
Senior Member
Join Date: Jan 2009
Location: BRASIL
Old 01-21-2017 , 13:30   [req] CT run (evade) c4 in map
Reply With Quote #1

(I think I would need this plugin in deathmatch + objetive)

I would like to know if there is a plugin, I do not know where to start a search.
That would enable CT to take c4 and carry it on the map so that it would run away from the TERROR, preventing and hindering the

terrorist team from completing the objective.
A kind of escape with C4.


topic similiar, Counter-Terrorists plant c4... ( So I do not want ct to plant the bomb, just run away.)

https://forums.alliedmods.net/showthread.php?t=15906

example:
Attached Images
File Type: jpg icvih3g.jpg (92.2 KB, 154 views)
__________________
rx1983 is offline
Send a message via MSN to rx1983
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 01-21-2017 , 14:25   Re: [req] CT run (evade) c4 in map
Reply With Quote #2

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <cstrike>
#include <fun>

public plugin_init(){
    
register_plugin("CT Pickup C4","0.1","Hydralisk")
    return 
PLUGIN_CONTINUE
}

public 
client_PreThink(id){
    if (!
is_user_alive(id)) return PLUGIN_CONTINUE
    
if (get_user_team(id) != 2) return PLUGIN_CONTINUE
    
new Ent find_ent_by_class(-1,"weaponbox")
    new 
sz[33]
    new 
Float:ori1[3],Float:ori2[3],Float:vec[3]
    
entity_get_vector(id,EV_VEC_origin,ori1)
    while (
Ent 0){
        
entity_get_string(Ent,EV_SZ_model,sz,32)
        if (
equal(sz,"models/w_backpack.mdl")){
            
entity_get_vector(Ent,EV_VEC_origin,ori2)
            
entity_get_vector(Ent,EV_VEC_velocity,vec)
            if ((
vector_distance(ori1,ori2)<50.0) && (ori1[2] > ori2[2]) && (vector_length(vec) == 0)){
                
give_item(id,"weapon_c4")
                
remove_entity(Ent)
            }
        }
        
Ent find_ent_by_class(Ent,"weaponbox")
    }
    return 
PLUGIN_CONTINUE

Test this and reply if it works.
__________________
Relaxing is offline
yas17sin
Veteran Member
Join Date: Oct 2016
Location: Morocco/Sale
Old 01-21-2017 , 15:11   Re: [req] CT run (evade) c4 in map
Reply With Quote #3

it's working no error but when CT win and someone have the bomb then he can keep it in next round and he can pickup it without progress.
so you need to make bomb back to terorrist next round and make the progress like terorrist when they plant.

Last edited by yas17sin; 01-21-2017 at 15:14.
yas17sin is offline
Send a message via ICQ to yas17sin
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 01-21-2017 , 15:24   Re: [req] CT run (evade) c4 in map
Reply With Quote #4

Need an idea how to send back to Ts...
- You say that you can pickup the bomb even that is planted?
__________________
Relaxing is offline
rx1983
Senior Member
Join Date: Jan 2009
Location: BRASIL
Old 01-21-2017 , 15:29   Re: [req] CT run (evade) c4 in map
Reply With Quote #5

Quote:
Originally Posted by Relaxing View Post
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <cstrike>
#include <fun>

public plugin_init(){
    
register_plugin("CT Pickup C4","0.1","Hydralisk")
    return 
PLUGIN_CONTINUE
}

public 
client_PreThink(id){
    if (!
is_user_alive(id)) return PLUGIN_CONTINUE
    
if (get_user_team(id) != 2) return PLUGIN_CONTINUE
    
new Ent find_ent_by_class(-1,"weaponbox")
    new 
sz[33]
    new 
Float:ori1[3],Float:ori2[3],Float:vec[3]
    
entity_get_vector(id,EV_VEC_origin,ori1)
    while (
Ent 0){
        
entity_get_string(Ent,EV_SZ_model,sz,32)
        if (
equal(sz,"models/w_backpack.mdl")){
            
entity_get_vector(Ent,EV_VEC_origin,ori2)
            
entity_get_vector(Ent,EV_VEC_velocity,vec)
            if ((
vector_distance(ori1,ori2)<50.0) && (ori1[2] > ori2[2]) && (vector_length(vec) == 0)){
                
give_item(id,"weapon_c4")
                
remove_entity(Ent)
            }
        }
        
Ent find_ent_by_class(Ent,"weaponbox")
    }
    return 
PLUGIN_CONTINUE

Test this and reply if it works.
I do not know if it works, the purpose of this plugin is to get c4 arming and defusing. I do not want CT to plant c4.

Attached Images
File Type: jpg whatsapp.jpg (86.9 KB, 119 views)
__________________
rx1983 is offline
Send a message via MSN to rx1983
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 01-21-2017 , 15:46   Re: [req] CT run (evade) c4 in map
Reply With Quote #6

I tested it and CTs couldn't plant C4.
__________________
Relaxing is offline
yas17sin
Veteran Member
Join Date: Oct 2016
Location: Morocco/Sale
Old 01-21-2017 , 16:19   Re: [req] CT run (evade) c4 in map
Reply With Quote #7

yes CT can't plant what i say exactley that if the CT pickup the bomb they can keep it forever if he didn't die or drop it.

and he can pickup it without any progress bar ( like terorrist planting or CT defuse progress bar ) and he say he want it with progress.
yas17sin is offline
Send a message via ICQ to yas17sin
rx1983
Senior Member
Join Date: Jan 2009
Location: BRASIL
Old 01-21-2017 , 16:33   Re: [req] CT run (evade) c4 in map
Reply With Quote #8

Quote:
Originally Posted by yas17sin View Post
yes CT can't plant what i say exactley that if the CT pickup the bomb they can keep it forever if he didn't die or drop it.

and he can pickup it without any progress bar ( like terorrist planting or CT defuse progress bar ) and he say he want it with progress.
__________________
rx1983 is offline
Send a message via MSN to rx1983
rx1983
Senior Member
Join Date: Jan 2009
Location: BRASIL
Old 01-22-2017 , 07:48   Re: [req] CT run (evade) c4 in map
Reply With Quote #9

Quote:
Originally Posted by Relaxing View Post
I tested it and CTs couldn't plant C4.
tested now ct plant bomb
Attached Images
File Type: jpg 20170119213951_1.jpg (28.8 KB, 118 views)
__________________
rx1983 is offline
Send a message via MSN to rx1983
rx1983
Senior Member
Join Date: Jan 2009
Location: BRASIL
Old 01-22-2017 , 08:23   Re: [req] CT run (evade) c4 in map
Reply With Quote #10

I'm sorry for two consecutive posts.

this plugin the VEN, Worked well for the purpose I want.
https://forums.alliedmods.net/showthread.php?p=343868
ctbombstealer_v02beta.sma

+ command: Cbs_plant 0

I go to more testing, thanks for the support on this topic.

edit:
-Disadvantage is that CT not with back_c4
-no progress bar get c4 ...
__________________

Last edited by rx1983; 01-22-2017 at 08:31. Reason: edd
rx1983 is offline
Send a message via MSN to rx1983
Reply



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


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