Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to make somebody melee?
#1
For example when somebody tries to shoot, it makes them melee instead.

PHP Code:
while(!self AttackButtonPressed())
wait 0.05;
self makepersonmelee <---- what goes here 

Also how would I be able to make it so if a person tries to switch weapon, nothing happens eg.

PHP Code:
while(!self secondaryOffhandButtonPressed())
wait 0.05;
self donothing (don't try to switch weapon) <---- what goes here 

Thanks if you can help.
Reply

#2
You can't do AI on a player - which means you can't make him melee/jump.

For the no weapon switching though:
self DisableWeaponCycling();
self EnableWeaponCycling();
YouTube 1:Azumikkel- Modding
YouTube 2:DerpShark- Gaming Entertainment
Website:Jensby.me
Contact: im[at]jensby.me
Reply

#3
Thanks for the no weapon switch, however I have seen a cod4 mod where if you try to shoot, it makes you knife instead, so there must be a way! I have to look for it >Big Grin
Reply

#4
Cod4 is different from black ops.
Reply

#5
(06-16-2011, 20:26)surtek Wrote: Cod4 is different from black ops.

:S

Reply

#6
(06-16-2011, 19:31)Madnesslink5 Wrote: Thanks for the no weapon switch, however I have seen a cod4 mod where if you try to shoot, it makes you knife instead, so there must be a way! I have to look for it >Big Grin

its possible with all other cod games, only black ops blocks it
Reply

#7
(06-16-2011, 20:38)d0h! Wrote:
(06-16-2011, 19:31)Madnesslink5 Wrote: Thanks for the no weapon switch, however I have seen a cod4 mod where if you try to shoot, it makes you knife instead, so there must be a way! I have to look for it >Big Grin

its possible with all other cod games, only black ops blocks it

Damnit =/ Since I can't make somebody melee when they try to shoot, is there anyway to disable shooting? Or so that if they shoot nothing happens? (I still want them to be holding their gun).
Reply

#8
(06-17-2011, 11:29)Madnesslink5 Wrote:
(06-16-2011, 20:38)d0h! Wrote:
(06-16-2011, 19:31)Madnesslink5 Wrote: Thanks for the no weapon switch, however I have seen a cod4 mod where if you try to shoot, it makes you knife instead, so there must be a way! I have to look for it >Big Grin

its possible with all other cod games, only black ops blocks it

Damnit =/ Since I can't make somebody melee when they try to shoot, is there anyway to disable shooting? Or so that if they shoot nothing happens? (I still want them to be holding their gun).

Set their ammo and stock to 0
YouTube 1:Azumikkel- Modding
YouTube 2:DerpShark- Gaming Entertainment
Website:Jensby.me
Contact: im[at]jensby.me
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Make area detect. flag Teleport lewisbibo 4 4,988 10-12-2013, 18:10
Last Post: EnVi Sweden Rocks
Wink Make Platforme lewisbibo 5 4,989 10-08-2013, 14:35
Last Post: 8q4s8
  Make obj MW3.by lewisbibo lewisbibo 3 3,699 10-05-2013, 20:16
Last Post: Nekochan
  Make obj MW3.by lewisbibo lewisbibo 0 2,330 10-03-2013, 20:19
Last Post: lewisbibo
  Help need help?how to make plugins code hXnarutoXone 12 8,542 09-01-2013, 18:30
Last Post: Bandarigoda123
  Help Make ac130 shoot custom bullets Ra3shed 0 2,728 07-23-2013, 13:02
Last Post: Ra3shed
  Melee knife removal kerm007 2 2,950 07-21-2013, 17:45
Last Post: kerm007
  how to make a plugin (mod) E-losev 5 4,329 07-12-2013, 15:48
Last Post: OzonE
  [Release] Make Trees Fall Yamato 8 12,291 06-15-2013, 11:45
Last Post: xfxtroll
  How to make superjump mod TDM sniper hipperz 4 3,973 03-28-2013, 15:09
Last Post: hillbilly

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.