August 21 2019 12:04:52
Navigation
· Home
· Articles
· Downloads
· FAQ
· Discussion Forum
· Web Links
· News Categories
· Contact Me
· Photo Gallery
· Search
· Gameservers
Languages
Users Online
· Guests Online: 2

· Members Online: 0

· Total Members: 1,058
· Newest Member: Soul of Minh
Teamspeak 3
Last Seen Users
· evgen01:06:28
· apfelbaum12:00:54
· Gskill13:36:53
· Intruder16:57:33
· Hoods20:23:41
· The ACE 1 day
· GONZO 2 days
· Homi 2 days
· VictorMyson 2 days
· Vietmin 2 days
· sonic 4 days
· martyr 5 days
· WEZ 5 days
· RedAkks 6 days
· Jimmy 6 days

View Thread: Knife fighting
Vietcong.Info » Vietcong General Discussion » Maps & Mapping
Who is here? 1 Guest
Current Rating: (Total: 1 rating)  
 Print Thread
Knife fighting
martyr
Hi everyone,

I've been playing with an idea for a new map.

1. COOP mode: I would like to create enemy bots that attack/defend with knives only.
First, I have created the basics - enemies only have a knife only but they didn't really attack or defend themselves when I attacked them. They just kind of sat there waving their knives at me sometimes. It was a sad kind of slaughter Frown
Then I added some linked waypoints and changed their vc_basic.inc and added some more aggressive properties - using Intruder's very helpful mapping advice about creating 'clever bots'. For example: props.shoot_while_hidding = 1; and props.boldness = 10;
I was happy to see that they behaved much better - I actually got killed several times but I still feel like I could do better.
So, the first question: Does anyone know if there is a way to make them even more aggressive and use their knifes like they use guns?

2. COOP, CTF, LMS and DM modes: I would like to force all spawning players to only have a knife. I might allow some guns to be hidden (CTF, LMA, DM only) also but this will come later. I'm sure I have seen info or a tutorial about forcing pistols only somewhere but I am having trouble locating it.
So the other question: what would be involved in making players spawn only with a knife and can anyone assist me with this?
Signature________________________________________________________________________

"From every kill grow, from every death learn"
  x 1  x 1
 
http://www.clanofminh.vcclan.net/minh/
Virus
I will not be very helpful but your idea rocks ahah !
I would love to cut some Vietcong meat ! Grin
  x 1
 
VCG john
u have to ask xhc... (or jojn discord)
Signature#VCG_freddy
Mail: vietcongguys@gmail.com
Facebook: fb.com/vcgfreddy
VCG_Page: fb.com/vcg31
Vietcong Guild: https://discord.gg/mXaXG2P
Vietcong Messenger: https://vietcongmessenger.mn.co
  x 1
 
https://vietcongmessenger.mn.co
H5N1 Bird Flu
So the other question: what would be involved in making players spawn only with a knife and can anyone assist me with this?


There is no problem to do that. I will post u at evening.

Try this map if this is what u want.
There is KMDM,KMCTF mode i think.
H5N1 Bird Flu attached the following file:
30ms_boxcastle_1.rar [2.22 MB, 28 Downloads]
Edited by H5N1 Bird Flu on 13-12-2018 13:47
  x 1  x 1
 
30min.vietcong1.cz
H5N1 Bird Flu
Download source  Code
case SC_NET_MES_CLIENT_TICK:
         
         if (SC_P_IsReady(SC_PC_Get())){

            switch(SC_P_GetCurWeap(SC_PC_Get()))

            {

            case 0:    //Unlimited weapons

            case 29:   //Knife

            case 30:   //VC Knife

            case 33:   //Machete

            case 58:   //Map
            case 61:   //Ammobag
            case 62:   //Medikit
               break;

            default:

               SC_P_ChangeWeapon(SC_PC_Get(),1,33);
               SC_P_SetSelWeapon(SC_PC_Get(),1);
               SC_P_ChangeWeapon(SC_PC_Get(),2,61);
               SC_P_ChangeWeapon(SC_PC_Get(),3,62);
               SC_P_ChangeWeapon(SC_PC_Get(),4,58);
               SC_P_ChangeWeapon(SC_PC_Get(),5,0);
               SC_P_ChangeWeapon(SC_PC_Get(),6,0);
               SC_P_ChangeWeapon(SC_PC_Get(),7,0);
               SC_P_ChangeWeapon(SC_PC_Get(),8,0);
               SC_P_ChangeWeapon(SC_PC_Get(),9,0);
               SC_P_ChangeWeapon(SC_PC_Get(),10,0);

         }
         
         }

         break;// SC_NET_MES_CLIENT_TICK




Knife,Machete,Ammobag,Medikit,Map
Edited by H5N1 Bird Flu on 14-12-2018 00:47
  x 1  x 1
 
30min.vietcong1.cz
martyr
Thanks to you all for replying.
@H5N1 - this is great! And a fun map you linked also. Did you make it?

H5N1 Bird Flu wrote:
...
Knife,Machete,Ammobag,Medikit,Map


Thanks for the code - it looks clear and I see where to put it.
I tried in a coop.c script to test but I get an error. The function needs to be declared but I'm not sure how or where to declare it.
Do you know?
martyr attached the following image:

[20.48 kB]

Edited by martyr on 14-12-2018 15:10
Signature________________________________________________________________________

"From every kill grow, from every death learn"
 
http://www.clanofminh.vcclan.net/minh/
H5N1 Bird Flu
Im not author of code just share it,but I never tested with coop script.
Works fine with CTF,DM and ATG. I will try too and we will see.
Did you try it with other mods?
Edited by H5N1 Bird Flu on 14-12-2018 21:38
 
30min.vietcong1.cz
xhc
I am pretty sure u have again mismatch in script and helpers .... who did it, you martyr? it physically hurts me something like this warning message

EDIT: probably I need to explain to freddy: when I say helpers I mean c++ files not helpers as humans here dSmile
Edited by xhc on 15-12-2018 03:29
  x 1
 
http://moddb.com/members/xhc
martyr
xhc wrote:
I am pretty sure u have again mismatch in script and helpers .... who did it, you martyr? it physically hurts me something like this warning message


You were right of course... I changed my include to a version of sc_global.h from the SDK because I found the function declaration there. So no more error now and map mode working Smile Thanks!
By the way, is the SDK the best source for the most recent scripts?


H5N1 Bird Flu wrote:
Works fine with CTF,DM and ATG. I will try too and we will see.
Did you try it with other mods?


Once I resolved the problem above, my Coop worked and I also made a CTF which worked too. Thanks!


So one problem solved but one problem remains...
How to make my Coop enemies even more aggressive and use their knifes like they use guns?
Signature________________________________________________________________________

"From every kill grow, from every death learn"
 
http://www.clanofminh.vcclan.net/minh/
xhc
need to create custom function, then polishing and testing as much as you can to have it most bug-free
 
http://moddb.com/members/xhc
VCG john
http://www.vietco...p;pid=6168 Tutorial to make clever bots, very helpful...just test it..how hard u want them


xhc schrieb:
EDIT: probably I need to explain to freddy: when I say helpers I mean c++ files not helpers as humans here dSmile


please give me a helper file for this Grin
Edited by VCG john on 16-12-2018 22:10
Signature#VCG_freddy
Mail: vietcongguys@gmail.com
Facebook: fb.com/vcgfreddy
VCG_Page: fb.com/vcg31
Vietcong Guild: https://discord.gg/mXaXG2P
Vietcong Messenger: https://vietcongmessenger.mn.co
  x 2
 
https://vietcongmessenger.mn.co
420Ninjutsu
I would love to play knife only map !!!!!
 
WEZ
NO!
Signature-S.D.S.- WEZ
****************
Member of vietcong.info
Member of ALPHA-TEAM.cz
Member of Subgamers.com

Member of 4cheaters.de (R.I.P.)
Member of unitedadmins.com (R.I.P.)
Member of eliteteamwork.proboards.com (R.I.P.)
Member of vietcong1.cz (R.I.P.)
Member of auscong.com (R.I.P.)
Member of friends-for-all.de (R.I.P.)
Member of vietcong.cz (R.I.P.)
Member of TS-Database (R.I.P.)
Member of neoseeker.com (R.I.P.)
Member of answers.microsoft.com (R.I.P.)

http://cache.gametracker.com/profile/sds-wez/
cache.gametracker.com/images/global/header_logo_black.png
wf.my.com/custom/ub/MV82Njg0NTE5c29tZV90b2tlbl9rZXk/6c6e0f284d4430dae327c4b1e65f98ae/bar.jpg
  x 1
 
https://www.youtube.com/embed/ZWkSyF7tNgQ
GONZO
Hello, I worked maybe half year at map G_Pueblo. At graphic I made maybe everything there, rolingstones, also palms I changed, but scriptsts...
I wanted to know how to make VC in mexican style with machette. I can do it, but he do not attack you with this big knife. It is all. 3 months spent by trying testing..
  x 1
 
http://vietcong.7x.cz/
420Ninjutsu
GONZO wrote:
Hello, I worked maybe half year at map G_Pueblo. At graphic I made maybe everything there, rolingstones, also palms I changed, but scriptsts...
I wanted to know how to make VC in mexican style with machette. I can do it, but he do not attack you with this big knife. It is all. 3 months spent by trying testing..


G_Pueblo is one of the best user-made map . I respect gonzo ! half a year !?
 
martyr
Agreed. G_Pueblo is a great map... and I played another of GONZO's called G_LostRuins the other night - fantastic also!
Perfection always takes time Smile

As for my AI bots. I have them sometimes killing me but it is not great. I will post a video when I have them doing a little better. At the moment they are a bit like annoyed chickens... diving around, slashing the air with their knives and sometimes making a run for me.
Grin
Signature________________________________________________________________________

"From every kill grow, from every death learn"
 
http://www.clanofminh.vcclan.net/minh/
Intruder
Unfortunately, I'm afraid you won't be able to really create the bots you want simply because they haven't been originally "made" for such a specific task... Nowhere in the sdk, I've found scripts to be able to set the "knife part" for the bots, like we have for the guns or the behaviour for example... But I hope to be wrong of course! Wink



Intruder
Signaturewww.vietcong.info/portal/images/ranks/Member_of_the_Month1011.pngwww.vietcong.info/portal/images/ranks/Member_of_the_Month_6.png
 
Jump to Forum:
Login
Username

Password



Forgotten your password?
Request a new one here.
Render time: 0.31 seconds - 91 Queries 2,526,013 unique visits