Cam51 0 Posted April 7, 2005 I'd like to disable the message you get when you kill someone. I think having to visually check to make sure your target is dead makes a mission more realistic IMO. But I don't know if this can be done. I have search this and other forums but haven't found what I've been looking for. Any help? Thnx Share this post Link to post Share on other sites
Blanco 0 Posted April 7, 2005 Learn about the event based scripts There are some scripts in the game which are launched when some event occured onplayerkilled.sqs - launched when the player is killed. This script replaces the default death sequence. Make sure you place the command "enableEndDialog" somewhere in your script, as this will then cause the dialog that allows you to load, retry, or quit to appear. The script has 2 arguments: _this select 0 = who died _this select 1 = who killed them Second argument can be null in some cases (death from falling or camcreated artillery, for example). Other eventbased scripts are : init.sqs - launched when mission is started (before briefing screen) - no arguments initIntro.sqs - launched when intro is started (since 1.50) - no arguments exit.sqs - launched when mission is finished (before debriefing screen, since 1.50) - argument: end # - number of game end onFlare.sqs - launched when illuminating shell is lit(since 1.45) - arguments: [[r, g, b], gunner] - r, g, b is light color Source : ofpec Share this post Link to post Share on other sites
.pablo. 0 Posted April 7, 2005 does this mean that it is possible to override the death notices by placing a blank onplayerkilled.sqs in your mission? i had always assumed that it was impossible to do, that's why i never asked... Share this post Link to post Share on other sites
Cam51 0 Posted April 8, 2005 I tried what .pablo asked and it didn't work for me. I put an empty onplayerkilled.sqs in my mission folder and saved it as a MPMission, went in with a respawn inplace and it still said "Cam51 (Alpha Black 1) was killed" There has GOT to be a way to do it. Tons of things we thought weren't possible on this game have been done. Share this post Link to post Share on other sites
Blanco 0 Posted April 8, 2005 Offcourse, you have to put something in it. Override it with you own cutscene and don't forget to end the script (after you delete the camera) with the enableEndDialog command! It's not an OFP restriction, iactually it's a feature BIS gave us from day one. It really works, it has been done in lots of missions : To name two - Unimpossible mission by Macguba - Operation Lojack by toadlife Share this post Link to post Share on other sites
Cam51 0 Posted April 8, 2005 I'm looking to have it just pop you right back into respawn... without going threw a dramatic cut-scene. Can you do it with out a crap load of scripting? Just a basic... start script stop script command? Share this post Link to post Share on other sites
crashdome 3 Posted April 8, 2005 I was under the impression that worked differently in MP respawn. Therefore, onPlayerKilled.sqs never gets executed if respawning is enabled. Is this true? Share this post Link to post Share on other sites
Cam51 0 Posted April 8, 2005 Can anyone add more info for this? or maybe post a snippet of the "onplayerkilled.sqs" Share this post Link to post Share on other sites
.pablo. 0 Posted April 9, 2005 wait a minute, i think i understand what's happened here: Quote[/b] ]Offcourse, you have to put something in it.Override it with you own cutscene and don't forget to end the script (after you delete the camera) with the enableEndDialog command! he isn't trying to change the "You are dead." camera sequence when you're killed. What he's trying to do is disable the text in the chat area that says "pablo was killed" or "pablo was killed by blanco." Share this post Link to post Share on other sites
Cam51 0 Posted April 9, 2005 wait a minute, i think i understand what's happened here:Quote[/b] ]Offcourse, you have to put something in it.Override it with you own cutscene and don't forget to end the script (after you delete the camera) with the enableEndDialog command! he isn't trying to change the "You are dead." camera sequence when you're killed. What he's trying to do is disable the text in the chat area that says "pablo was killed" or "pablo was killed by blanco." did I not explain it well enough? Thats what im looking for.... disabling the "was killed by" message in text for multiplayer missions. Share this post Link to post Share on other sites
Odin -AEF-Kampa- 0 Posted April 10, 2005 open stringtable.csv with texteditor->Search this words "kill" (youll find 3 lines) -> Delete the whole line -> Save -> No Kill Msg anymore Share this post Link to post Share on other sites
thorgal 0 Posted April 10, 2005 Nice advice but then the only one not seeing the message will be the player who edited stringtable. Correct? And rest of the bunch will still see "killed by" notice on the screen. Thorgal PS. AFAIK it can be done on the level of server, not in the mission but I am not 100% sure of this. Share this post Link to post Share on other sites
Cam51 0 Posted April 10, 2005 @ April 10 2005,04:21)]open stringtable.csv with texteditor->Search this words "kill" (youll find 3 lines) -> Delete the whole line -> Save -> No Kill Msg anymore is there a way to disable that STR line in a mission script? (ie: init.sqs, description.ext, or mission.sqm) Add the line: STR_WAS_KILLED_BY=false STR_WAS_KILLED=false That was enemy to enemy kills will not be shown, but friendly fire deaths will remain active. Share this post Link to post Share on other sites
Odin -AEF-Kampa- 0 Posted April 10, 2005 Nice advice but then the only one not seeing the message will be the player who edited stringtable. Correct? And rest of the bunch will still see "killed by" notice on the screen.Thorgal PS. AFAIK it can be done on the level of server, not in the mission but I am not 100% sure of this. No Nobody see the msg when you were killed. I played often with it Online ;) Share this post Link to post Share on other sites
Garcia 0 Posted April 10, 2005 ...if you want to make a mission where nobody should see the "player1 was killed by player2" message, it doesn't help really much if the author of the mission edits his stringtable...so there ain't any point in doing it... Share this post Link to post Share on other sites
Cam51 0 Posted April 11, 2005 @ April 10 2005,04:21)]open stringtable.csv with texteditor->Search this words "kill" (youll find 3 lines) -> Delete the whole line -> Save -> No Kill Msg anymore is there a way to disable that STR line in a mission script? (ie: init.sqs, description.ext, or mission.sqm) Add the line: STR_WAS_KILLED_BY=false STR_WAS_KILLED=false That was enemy to enemy kills will not be shown, but friendly fire deaths will remain active. Bump Share this post Link to post Share on other sites
Odin -AEF-Kampa- 0 Posted April 13, 2005 ...if you want to make a mission where nobody should see the "player1 was killed by player2" message, it doesn't help really much if the author of the mission edits his stringtable...so there ain't any point in doing it... Garcia Read the First Post He wanted to know how to disable the msg ! I explained only one way how to disalbe it. Share this post Link to post Share on other sites