On "round end" and "round start"
Moderator: Core Staff
On "round end" and "round start"
Hey guys..
I'm trying to create a small mod and i need to thread ad function on the start and end of every round.
I tryed "waittill("round_end") and waittill("round_start") but its not working..
Any ideas?
I'm trying to create a small mod and i need to thread ad function on the start and end of every round.
I tryed "waittill("round_end") and waittill("round_start") but its not working..
Any ideas?
Re: On "round end" and "round start"
Try
Code: Select all
waittill("I have become smart enough to look into stock .gsc files");
-
- CJ Spammer!
- Posts: 641
- Joined: April 20th, 2009, 8:29 pm
- PSN ID: mooselflies
- Location: Reading :<
Re: On "round end" and "round start"
take your sarcasm somewhere else... this is the point of the forums for people to ask for help not have retards like you just abuse them.megazor wrote:Try
Code: Select all
waittill("I have become smart enough to look into stock .gsc files");
-
- Core Staff
- Posts: 13313
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
Re: On "round end" and "round start"
I am sure what Megazor meant to say was if you had a look in the game files you could find your answer.
The file you will be looking at is: _globallogic.gsc
That file is the key file that runs every gametype for CoD4.
There is a function inside that file called "endGame( winner, endReasonText)".
You are look for the first "notify", which is "level notify("game_ended");"
However, depending on what you are trying to do, will depend on what you will need to do (you may not want to thread your function at the beginning of the end_game, or you may not want to do whatever you are doing on a round-based gametype, like S&D.
Similarly there is a "startGame()" function, with "level notify("prematch_over")", as it suggests, this notify is called when the round is ready to begin after any prematch periods.
Megazor however has the right sentiments, try searching for it first, the raw files are full of answers.
The file you will be looking at is: _globallogic.gsc
That file is the key file that runs every gametype for CoD4.
There is a function inside that file called "endGame( winner, endReasonText)".
You are look for the first "notify", which is "level notify("game_ended");"
However, depending on what you are trying to do, will depend on what you will need to do (you may not want to thread your function at the beginning of the end_game, or you may not want to do whatever you are doing on a round-based gametype, like S&D.
Similarly there is a "startGame()" function, with "level notify("prematch_over")", as it suggests, this notify is called when the round is ready to begin after any prematch periods.
Megazor however has the right sentiments, try searching for it first, the raw files are full of answers.
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010
-
- CJ Spammer!
- Posts: 641
- Joined: April 20th, 2009, 8:29 pm
- PSN ID: mooselflies
- Location: Reading :<
Re: On "round end" and "round start"
True but he could of went with a much better approach.Drofder2004 wrote: Megazor however has the right sentiments, try searching for it first, the raw files are full of answers.
Re: On "round end" and "round start"
I actually meant to help. Rather than waiting for a wizard to do all the job for you, better try to do something on you own.
I just gave right direction - open any round-based gametype and learn how it works.
I just gave right direction - open any round-based gametype and learn how it works.
Last edited by megazor on May 11th, 2013, 3:02 pm, edited 2 times in total.
Re: On "round end" and "round start"
Ok i solved my problsm, thank you all!
@ megazor: I just have not thought to look into the original files. Ofc its the easiest way!
@ megazor: I just have not thought to look into the original files. Ofc its the easiest way!
Who is online
Users browsing this forum: No registered users and 3 guests