Aldro Koon Posted January 8, 2016 Posted January 8, 2016 Hey,How do I go about making a NPC_Droid_Protocol have infinite health/not be able to be damaged? Surely theres some way... Thanks for any help!
Langerd Posted January 9, 2016 Posted January 9, 2016 Hey,How do I go about making a NPC_Droid_Protocol have infinite health/not be able to be damaged? Surely theres some way... Thanks for any help!I think using the script https://github.com/JACoders/OpenJK/wiki/ICARUS-ScriptingYou have great site here! Of course if we are talking about Single Player
Aldro Koon Posted January 9, 2016 Author Posted January 9, 2016 I think using the script https://github.com/JACoders/OpenJK/wiki/ICARUS-ScriptingYou have great site here! Of course if we are talking about Single PlayerTalking about MP My bad! Its basically a droid in a map.I decompiled a map and noticed the parameter "health" so I am good, haha. Shouldve done it earlier! Thanks anyway
eezstreet Posted January 9, 2016 Posted January 9, 2016 Can be done via a tw ICARUS script: affect ("s"){ SET (SET_INVINCIBLE, TRUE) } Where "s" is the script_targetname of the NPC. Asgarath83 likes this
Mysterious Stranger Posted January 9, 2016 Posted January 9, 2016 health parameter in a map entity doesn't give invincibility, if you stuff an NPC under an elevator long enough or use noclip in the midst of a saber swing and stick it into them long enough they still die. eezstreet likes this
Aldro Koon Posted January 9, 2016 Author Posted January 9, 2016 health parameter in a map entity doesn't give invincibility, if you stuff an NPC under an elevator long enough or use noclip in the midst of a saber swing and stick it into them long enough they still die.Is there no parameter to make them invincible or immune to attacks? Ideally, it would stand there like a statue. Might just try make it into a misc_model, rather... On another note, does anyone know how to have multiple music play throughout the map? With say three buttons to alternate between 3 songs? Langerd likes this
Mysterious Stranger Posted January 9, 2016 Posted January 9, 2016 I remember there's a script somewhere to spawn the NPC as non-solid. Which means you can walk through it or visually it'd be there but do nothing else. Not much fun interacting with that though.
Ramikad Posted January 9, 2016 Posted January 9, 2016 Script is the way to go. SET_INVINCIBLE True, and eventually SET_NO_FORCE True, should prevent it from being killed and pushed around. Scripts generally work better (if at all) in SP, but I think this one can work in MP.
Asgarath83 Posted January 9, 2016 Posted January 9, 2016 SET_INVINCIBLE, true, with icarus scripting, executed as spawnscript of the droid is the better way. for the button, you can use entity called target_speaker triggered by buttons, with loopin value and a music file path in wav format.
Langerd Posted January 9, 2016 Posted January 9, 2016 Soooo.. most of scripts doesnt work for mp right? Which ones ?@Aldro Koon If You want to make misc_model You can add a trigger_multiple next to it to add him voice effects or something
Aldro Koon Posted January 9, 2016 Author Posted January 9, 2016 SET_INVINCIBLE, true, with icarus scripting, executed as spawnscript of the droid is the better way. for the button, you can use entity called target_speaker triggered by buttons, with loopin value and a music file path in wav format.but does that really change the music of worldspawn? i basically want everyone to be able to toggle between 3 soundtracks on the map. ive looked into how taspir power complex did it but im way over my head because it uses icarus scripting and i have 0 knowledge of it. ive gotten my hands on the SDK and used DEVaheb to look at it but my knowledge is too weak lol. is there any prebaked script or any other way to do this any faster?
Asgarath83 Posted January 9, 2016 Posted January 9, 2016 but does that really change the music of worldspawn? i basically want everyone to be able to toggle between 3 soundtracks on the map. ive looked into how taspir power complex did it but im way over my head because it uses icarus scripting and i have 0 knowledge of it. ive gotten my hands on the SDK and used DEVaheb to look at it but my knowledge is too weak lol. is there any prebaked script or any other way to do this any faster? well, the dinamic music of a map is defined into dms.dat and make a dinamic music is very hard and require audacity.what you need to do, is simply to NOT put the music into the wordspawn. you can use a global looped in target_speaker for play a track, and a system of target_relay or triggers for shut down the other speakers when you use another speaker.example, if you use speaker A, you shut down B e C, if you use B, shut down A e C, Etc.Or... a more simple Way (because this is not exactly easily to script) using Icarus with a script used by the buttons that play the music.the script that run for each button get the SET_MUSIC command or PLAY_MUSIC, i not remember exactly byut there is into icarus set options.and you need just to seth the path of music file to play.
Aldro Koon Posted January 9, 2016 Author Posted January 9, 2016 well, the dinamic music of a map is defined into dms.dat and make a dinamic music is very hard and require audacity.what you need to do, is simply to NOT put the music into the wordspawn. you can use a global looped in target_speaker for play a track, and a system of target_relay or triggers for shut down the other speakers when you use another speaker.example, if you use speaker A, you shut down B e C, if you use B, shut down A e C, Etc.Or... a more simple Way (because this is not exactly easily to script) using Icarus with a script used by the buttons that play the music.the script that run for each button get the SET_MUSIC command or PLAY_MUSIC, i not remember exactly byut there is into icarus set options.and you need just to seth the path of music file to play.The icarus way seems to be the better one. Is there really no script that has already done this and all you need to do is to target the script with triggers and just set the tracks to music1 etc/slightly modify the path of the script? Feels like someone would've done one in all these years for newbs like myself XD
Asgarath83 Posted January 9, 2016 Posted January 9, 2016 The icarus way seems to be the better one. Is there really no script that has already done this and all you need to do is to target the script with triggers and just set the tracks to music1 etc/slightly modify the path of the script? Feels like someone would've done one in all these years for newbs like myself XD mmm i am an idiot. Now that i think on radiant there is already an entity that you can use for it!Target_play_music. you can put 3 target play music into the map, and every button has a trigger multiple that trigger one of that. Not put music into worldspawn and put the buttons at the start of the map. in that's way, player can chooce the soundtrack before explore the map. No icarus needed.
Aldro Koon Posted January 9, 2016 Author Posted January 9, 2016 mmm i am an idiot. Now that i think on radiant there is already an entity that you can use for it!Target_play_music. you can put 3 target play music into the map, and every button has a trigger multiple that trigger one of that. Not put music into worldspawn and put the buttons at the start of the map. in that's way, player can chooce the soundtrack before explore the map. No icarus needed.Wow ill try that, will let you know how it goes. Thanks! Asgarath83 likes this
Aldro Koon Posted January 9, 2016 Author Posted January 9, 2016 mmm i am an idiot. Now that i think on radiant there is already an entity that you can use for it!Target_play_music. you can put 3 target play music into the map, and every button has a trigger multiple that trigger one of that. Not put music into worldspawn and put the buttons at the start of the map. in that's way, player can chooce the soundtrack before explore the map. No icarus needed.Perfect man, thank you so much! Asgarath83 likes this
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now