November 26 2024 10:54:52
Navigation
· Home
· Articles
· Downloads
· FAQ
· Discussion Forum
· Web Links
· News Categories
· Contact Me
· Photo Gallery
· Search
· Gameservers
Languages
Users Online
· Guests Online: 29

· Members Online: 0

· Total Members: 1,134
· Newest Member: Brody
Teamspeak 3
Last Seen Users
· hackepter01:36:59
· GONZO18:31:30
· Intruder18:58:13
· Sully 1 day
· desintegrator 2 days
· WEZ 3 days
· Homi 3 days
· The ACE 4 days
· xhc 1 week
· dRgiGGLeZ 1 week
· El Dookie 1 week
· Melber 2 weeks
· SGT PEPPER 2 weeks
· martyr 2 weeks
· Terminator 2 weeks

View Thread: Troubles with the TDMC script
Vietcong.Info » Vietcong General Discussion » Vietcong Tech Talk
Who is here? 2 Guests
Current Rating: (Total: 0 ratings)  
 Print Thread
Troubles with the TDMC script
Intruder
Hi,

I'm going to release IntrusionWars for very soon now, but I have a little problem with the TDMC script... Normally, the guns already on the map are disabled (invisible?) in this mode but when I test the map, they are still there and "usable"! Is the "hidden part" already in the TDMC script "by default"?
Maybe I have "messed" in another script (.inc?) but normally I'm using the original scripts used "by default" for that map version!
Any ideas?


Intruder.
 
KostiCZ
Can you upload your script here? Some definitions are done also in mplevel.ini, so we need to check both files
Signature________________________________________________

2LT William Theolinus "KostiCZ" Boner Jr.
LRRP Squad Baker, Delta Team
cache.www.gametracker.com/player/KostiCZ/63.143.47.189:2302/b_560x95.png
 
Teamrespawn.cz
Intruder
Here are the files that I'm using...
Thank you to have a look on them! Cool


Intruder.
Intruder attached the following file:
scripts_intruder.zip [3.42 kB, 563 Downloads]
Edited by Intruder on 01-07-2011 14:04
 
KostiCZ
If you want to hide weapons, try to change

Download source  Code

...
      case GVAR_MP_MISSIONTYPE_TDM:
            hide_weapons = FALSE;
...





to


Download source  Code

...
      case GVAR_MP_MISSIONTYPE_TDM:
            hide_weapons = TRUE;
...





...in your mplevel.inc

It should work.
Edited by KostiCZ on 01-07-2011 14:37
Signature________________________________________________

2LT William Theolinus "KostiCZ" Boner Jr.
LRRP Squad Baker, Delta Team
cache.www.gametracker.com/player/KostiCZ/63.143.47.189:2302/b_560x95.png
 
Teamrespawn.cz
Intruder
Ok, I will try this later because I don't have the time anymore...
But, if I do that change, it will affect my TDM mode aswell, no?


Intruder.
Edited by Intruder on 01-07-2011 14:53
 
KostiCZ
What is TDMC? If you want weapons in TDM but not in TDMC try to change TDMC script, put following line somewhere in your TDMC script (i think in level_init part):

SC_MP_SRV_InitWeaponsRecovery(5.0f);

where 5.0f means 5 minutes, it will override settings from mplevel.inc
Signature________________________________________________

2LT William Theolinus "KostiCZ" Boner Jr.
LRRP Squad Baker, Delta Team
cache.www.gametracker.com/player/KostiCZ/63.143.47.189:2302/b_560x95.png
 
Teamrespawn.cz
Intruder
TDMC is the "Team Death Match Coop" created by Don Turtuma (here)...
I thought it was a "stand alone" script by judging "the comment" but apparently it isn't...
I think to modify my mplevel.inc script by adding that TDMC mode, to have the "specific" option (no guns) for that mode only...
Don? Are you "in the house" to add a complement of informations? Wink

More news later... Smile


Intruder
 
KostiCZ
Just because we need some standard in gamemodes, please use next free number in your sc_global.h file. We used till now 16 gamemodes...

// predefined values, use some other for own MP missiontypes
#define GVAR_MP_MISSIONTYPE_DM 1
#define GVAR_MP_MISSIONTYPE_TDM 2
#define GVAR_MP_MISSIONTYPE_ATG 3
#define GVAR_MP_MISSIONTYPE_LMS 4
#define GVAR_MP_MISSIONTYPE_CTF 5
#define GVAR_MP_MISSIONTYPE_CTR 6
#define GVAR_MP_MISSIONTYPE_COOP 7
#define GVAR_MP_MISSIONTYPE_RW 8
#define GVAR_MP_MISSIONTYPE_TT 9

#define GVAR_MP_MISSIONTYPE_VCCOOP 10
#define GVAR_MP_MISSIONTYPE_USREAL 11
#define GVAR_MP_MISSIONTYPE_VCREAL 12
#define GVAR_MP_MISSIONTYPE_USEXPLORE 13
#define GVAR_MP_MISSIONTYPE_VCEXPLORE 14
#define GVAR_MP_MISSIONTYPE_GTP 15
#define GVAR_MP_MISSIONTYPE_BRIEF 16



So you can use:
#define GVAR_MP_MISSIONTYPE_TDMC 17

Or download followings sc_global and mplevel.inc (don't forget to change your tdmc script also (setting of gametype from TDM to TDMC):





EDIT: Don't forget to prepare your TDMC script for using with Ando's automatic gvars system ;-)
KostiCZ attached the following files:
mplevel.rar [973 Bytes, 582 Downloads]
sc_global.rar [15.59 kB, 591 Downloads]
Edited by KostiCZ on 02-07-2011 09:39
Signature________________________________________________

2LT William Theolinus "KostiCZ" Boner Jr.
LRRP Squad Baker, Delta Team
cache.www.gametracker.com/player/KostiCZ/63.143.47.189:2302/b_560x95.png
  x 1
 
Teamrespawn.cz
Silent Bob
#define GVAR_MP_MISSIONTYPE_KOTH 18
#define GVAR_MP_MISSIONTYPE_DMC 19
#define GVAR_MP_MISSIONTYPE_ADM 20
Edited by Silent Bob on 02-07-2011 11:40
 
www.vietcong.info
KostiCZ
ok, i'll add it
Signature________________________________________________

2LT William Theolinus "KostiCZ" Boner Jr.
LRRP Squad Baker, Delta Team
cache.www.gametracker.com/player/KostiCZ/63.143.47.189:2302/b_560x95.png
 
Teamrespawn.cz
Intruder
KostiCZ wrote:
Or download followings sc_global and mplevel.inc (don't forget to change your tdmc script also (setting of gametype from TDM to TDMC):

Well, I used the files you uploaded but it's still not working...
I also made more tests "on my side" but with the same result...not working! Sad
It's really strange because as you said:"it should work"!
We are probably "missing something"...but what?!? Frown


EDIT: Don't forget to prepare your TDMC script for using with Ando's automatic gvars system ;-)

Haaa, sorry KostiCZ but I'm afraid "you" will have to do it yourself because we are already reaching the limits of my knowledge about the scripts! Sad lol
I remind "you all" that I have NO background concerning the scripting part (C+), unfortunately!!! What I'm doing is ONLY based on scripts comparison, trials, errors and..."suppositions"! And I can ensure you that it's a real "brain storming" on my side when I try to adapt a script! lol


Intruder
 
KostiCZ
Do you have access to FTP server? There is folder prepared for changed game scripts, so upload there all scripts you want to use. This week I want to modify all game scripts to 1.70 version...
Signature________________________________________________

2LT William Theolinus "KostiCZ" Boner Jr.
LRRP Squad Baker, Delta Team
cache.www.gametracker.com/player/KostiCZ/63.143.47.189:2302/b_560x95.png
 
Teamrespawn.cz
Intruder
No, I don't have access to the FTP server...and don't think it would be of a big use for me (or you) anyway. I'm only using the "default" scripts and the changes I make to some are very simple and without interest for scripters "like you" I guess... Wink
Thank you for the proposition anyway! Smile


Intruder
 
Ando
So, weapons should be invisible.

Fixed it now and attached file. Sorry that wasn't doing it before.
Ando attached the following file:
tdmc.rar [2.42 kB, 575 Downloads]
 
Intruder
I made a quick test and...it's working!!! YES!
So, it was just a missplaced "//" in front of the correct code line?
I should have paid more attention to "this" note in the script: // Disable weapons placed on the map to guess that something was wrong "there"...and not in the mplevel.inc script! But because that TDMC script is old now and that nobody reported the bug yet, I thought that original script was "clean"...
IntrusionWars just needs small details before to be released now... Clans (not only!) are going to love it! Smile

Thanks for the help! APPLAUSE


Intruder
Edited by Intruder on 05-07-2011 22:42
 
Kermit
Intruder wrote:
I made a quick test and...it's working!!! YES!
So, it was just a missplaced "//" in front of the correct code line?
I should have paid more attention to "this" note in the script: // Disable weapons placed on the map to guess that something was wrong "there"...and not in the mplevel.inc script! But because that TDMC script is old now and that nobody reported the bug yet, I thought that original script was "clean"...
IntrusionWars just needs small details before to be released now... Clans (not only!) are going to love it! Smile

Thanks for the help! APPLAUSE


Intruder


If you need people for a map/mode-test, I would like toWink
 
Intruder
Hmmm, I don't think it will be necessary... IntrusionWars has been tested yet and the next time you will hear about it, it should be for a public release (but still beta)!
I just hope that the "no-coop" players will be interrested to play on a HUGE map either, where a lot of different tactics will be possible...
I will try to prepare the map for the weekend to come! Smile


Intruder
 
Silent Bob
Cant wait, Intrusion is a really good map and it will be great to work out some tactics (depending on spawn zones) Wink
 
www.vietcong.info
Kermit
Ok, please share some screenshots thenSmile

Always looking forward to new (serious) custom maps, especially when theyre big.APPLAUSE
 
KostiCZ
And what about coop version? Will it be also released?
Signature________________________________________________

2LT William Theolinus "KostiCZ" Boner Jr.
LRRP Squad Baker, Delta Team
cache.www.gametracker.com/player/KostiCZ/63.143.47.189:2302/b_560x95.png
 
Teamrespawn.cz
Jump to Forum:
Similar Threads
Thread Forum Replies Last Post
Multiplayer Game Script Vietcong Tech Talk 4 22-06-2019 19:31
MP sync. script discussion Maps & Mapping 89 26-04-2016 09:40
Ando door script Maps & Mapping 4 25-10-2015 19:50
Vietcong Troubles Vietcong Tech Talk 2 18-06-2015 12:34
ADM script Maps & Mapping 3 03-12-2014 14:23
Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Render time: 0.26 seconds - 88 Queries 5,473,438 unique visits