PDA

View Full Version : [req] CT run (evade) c4 in map


rx1983
01-21-2017, 13:30
(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:
https://forums.alliedmods.net/attachment.php?attachmentid=160258&stc=1&d=1485023382

Relaxing
01-21-2017, 14:25
#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.

yas17sin
01-21-2017, 15:11
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.

Relaxing
01-21-2017, 15:24
Need an idea how to send back to Ts...
- You say that you can pickup the bomb even that is planted?

rx1983
01-21-2017, 15:29
#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.

https://forums.alliedmods.net/attachment.php?attachmentid=160263&stc=1&d=1485030537

Relaxing
01-21-2017, 15:46
I tested it and CTs couldn't plant C4.

yas17sin
01-21-2017, 16:19
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
01-21-2017, 16:33
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.
http://cleaner-and-launderer.com/wp-content/uploads/2016/02/Facebook-Like_zpszniov66a-1.png

rx1983
01-22-2017, 07:48
I tested it and CTs couldn't plant C4.
tested now ct plant bomb
https://forums.alliedmods.net/attachment.php?attachmentid=160278&stc=1&d=1485089273

rx1983
01-22-2017, 08:23
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 ...

Relaxing
01-22-2017, 09:13
Don't forget that there are several spots in dust2 that if you drop the c4 you won't pick up.(Goose, Bombsite B, And CT Spawn)