In my Der Riese mod, I'm trying to script a boss into the map, but the only problem I'm having is that it's not spawning. The game plays the boss spawn music, but after that, nothing. I'm not familiar with radiant, but I'm pretty sure spawn points are set through it, right? Well I'm not able to do that, since I've working on a pre-existing map. Is there any way I can set a spawn point for the boss via script? I can provide the script that I'm using if anybody has to look at it. Thanks to anyone who can help me
Okay, so I'm trying to script the Engineer Zombie into Der Riese using redspace200's pack. I added all of the contents to my WaW folder, as well as my mod and whatnot. In game, however, whenever the boss is supposed to spawn, all that happens is that a sound plays. There's supposed to be a sound that plays whenever the boss spawns into the map, but it skips that and just plays a different sound. What I'm trying to get at is that I'm not sure if I need to edit the script for the boss in order to get him to actually spawn. I've looked at the same script that is being used in a custom map, and there are no changes made to it, so I was assuming that the spawn points are set in radiant. However, since I'm trying to script the boss into Der Riese, I'm unable to set spawn points the same way since Der Riese is a pre-existing map that can't be edited in radiant. Hopefully that all makes sense lol
i Find it hard to believe the spawn-points for it are allready in Der Riese, seems very unlikely to me. For the rest you rlly need to show the actual code, cause i dont know the scripts from redspace from the top of my head
// Zombie Engineer script by redspace200, give credit if used!! // Source Model, Animations
// Boss Layout by redspace200 // Give Credit if used... // You do not have permission to use these scripts unless I say otherwise // To set specific spawn locations --> script_origin --> "zomeng_spawn"
eng_init() { // Set FX here level._effect["fx_eng_impact"] = loadFX("custom/fx_ai_eng_impact");
// Set Variables here level.eng_boss_model = "bo1_char_ger_zombeng_body1_1"; // The Model this boss will use. Defaults (bo1_char_ger_zombeng_body1_1) level.debug_eng = false; // Enable/Disable debug here. Defaults (false) ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// level.eng_use_fx = true; // Enable/Disable use of fx on this ai. Defaults (true) level.next_eng = 8; // First round ai will spawn on. Defaults (8) level.eng_round_add = 4; // After 1st spawn, every _ amount of rounds he will return. Defaults (4) level.eng_health_multiplier = 20; // Amount to * health by. Will be overrided by eng_min_health. Defaults (20) level.eng_health_multiplier_by_player = true; // Multiply ai health based on the # of players in the game. Will be overrided by eng_min_health. Defaults (true) level.eng_min_health = 12000; // Min health this ai can have. Defaults (12000) level.eng_attack_radius = 80; // Radius before ai can begin a Melee Attack. Defaults (80) level.eng_attack_radius_add = 20; // Radius added to normal Melee Attack Radius for dealing player damage. Defaults (20); level.eng_attack_damage = 100; // Player Damage Amount. Defaults (100) level.start_eng_ai = 1; // Start # of ai to spawn on each spawn session. Defaults (1) level.max_eng_ai = 3; // Max # of ai. Defaults (3)
// Advanced Variables level.eng_max_roof_distance = 650; // # of units to tallest roof. Defaults (650) level.eng_total_walk_anims = 2; // Number of possible animations this ai can use for walking. Defaults (2) level.eng_total_sprint_anims = 1; // Number of possible animations this ai can use for sprinting. Defaults (1) level.eng_boss_attackanim_delay = .685; // Time before the zombies Melee Attack will actually damage the player (based on anim). Defaults (.685) level.eng_boss_rageanim_delay = .8; // Time before the Angry Anim will actually stun the player (based on anim). Defaults (.8) level.eng_attacks_before_sprint = 8; // Number of times ai attack while walking before being forced to sprint. Defaults (8) level.eng_health_divider = 1.2; // Divides the start health by this number. If the ai health goes below the result, sprint mode will activate. Defaults(1.2) level.eng_boss_player_stun_radius = 200; // Radius the shake effect is when ai switches from walk to sprint state. Defaults (80) level.eng_boss_player_stun_type = "electrocution"; // Type of stun effect on the player when ai switches from walk to sprint state. Defaults ("electrocution") level.eng_boss_player_stun_time = 2.5; // Time the player gets stunned when ai switches from walk to sprint state. Defaults (2.5) level.eng_ai_increasement = 1; // # of more ai to spawn after each spawn session. Defaults (1)
If you want scripts / features made for you, then contact me by PM or email / skype etc it will cost you tho so if you have no intention of reciprocating don't even waste my time
So now I'm working on modding Hellhounds into Call of the Dead in Black Ops (the Engineer boss will come later), and I guess I'm facing the same issue where they just never spawn. In my previous post on this thread, I found this string:
Code Snippet
Plaintext
org = spawn("script_origin",self getorigin());
Which I believe I would have to use in order to place a spawn point, am I right? I know the respective target names to use, I just don't know how I would go about setting it all up. Anyone understand what I'm trying to get at? Thanks for the help
Plans have changed once again. Dogs for CotD are scrapped, just going with the Engineer for now. Looking through the gsc files for Kino, I found a couple strings that look something like this:
Plans have changed once again. Dogs for CotD are scrapped, just going with the Engineer for now. Looking through the gsc files for Kino, I found a couple strings that look something like this:
org = spawn("script_origin", your coordinate); org.targetname = "zomeng_spawn";
Also do you even have the asset files set up for the boss like xanims, and its xmodel?
Thanks, I was able to get it working in WaW. And yeah, I had no problem with setting up the xanims and xmodels, it was just getting him to spawn in. I'm having a little difficulty getting it to work in Black Ops though. The game doesn't crash when I load it up, though the boss just never shows up. Is there anything I'd have to change in the gsc file in order to get it to work correctly in Black Ops?
Thanks, I was able to get it working in WaW. And yeah, I had no problem with setting up the xanims and xmodels, it was just getting him to spawn in. I'm having a little difficulty getting it to work in Black Ops though. The game doesn't crash when I load it up, though the boss just never shows up. Is there anything I'd have to change in the gsc file in order to get it to work correctly in Black Ops?
did you create a function in the boss zombie script with this in it?
Code Snippet
Plaintext
org = spawn("script_origin", your coordinate); org.targetname = "zomeng_spawn";