RUNNING WITH RIFLES http://www.runningwithrifles.com/phpBB3/ |
|
Landmine http://www.runningwithrifles.com/phpBB3/viewtopic.php?f=2&t=1441 |
Page 1 of 1 |
Author: | The Soldier [ Thu Oct 31, 2013 10:58 pm ] |
Post subject: | Landmine |
As the title says, I'm trying to hack my way into a landmine. I've tried using code similar to the cover deploy, expect I've replaced the cover model with a projectile. I'm still trying a bunch of other things, but they're all resulting is crashes. OK, is it possible to get a weapon to spawn an "impact" projectile (like the mortar shell) to stay in one spot until something touches it, say a jeep or a soldier, and explode? Mainly the first part. |
Author: | joneau [ Fri Nov 01, 2013 5:30 am ] |
Post subject: | Re: Landmine |
dunno if this helps but when i tried create the ground impact grenade, i changed one line to impact and when i threw it it basically was blown up on soldiers hand. You might be loooking for that, |
Author: | pasik [ Fri Nov 01, 2013 8:35 am ] |
Post subject: | Re: Landmine |
The 0.92 projectile impact trigger doesn't have collider options, 0.93 gives distinction between terrain, static objects, vehicles and characters. |
Author: | pasik [ Fri Nov 01, 2013 8:38 am ] |
Post subject: | Re: Landmine |
The Soldier wrote: As the title says, I'm trying to hack my way into a landmine. I've tried using code similar to the cover deploy, expect I've replaced the cover model with a projectile. I'm still trying a bunch of other things, but they're all resulting is crashes. I think this should basically be functional, just not for mines in 0.92. I think you should be able to spawn anything this way, vehicles, soldiers, carry items, weapons, projectiles. Having said that, I guess just vehicles have been actually tested at this point. |
Author: | The Soldier [ Fri Nov 01, 2013 6:57 pm ] |
Post subject: | Re: Landmine |
At this point, I'm not really looking for specifics. I'm just trying to get it so that the the projectile, again, take the mortar shell, will stay in one spot just above the ground, so when anything touches it, friendly, enemy, vehicle, soldier, etc., it will explode. Well, got past the crashing. I can enter the game, select the mine, and start planting it with the animation. But it just loops without anything really happening, nothing spawning. So more tweaking time. @joneau Nice idea, but with that little block above, can't really put it to any use. :/ |
Author: | pasik [ Fri Nov 01, 2013 8:05 pm ] |
Post subject: | Re: Landmine |
The Soldier wrote: At this point, I'm not really looking for specifics. I'm just trying to get it so that the the projectile, again, take the mortar shell, will stay in one spot just above the ground, so when anything touches it, friendly, enemy, vehicle, soldier, etc., it will explode. This is exactly the thing you might have to get creative for in 0.92 - the projectile with impact trigger will explode on impact with ground. With some luck you might be able to make the projectile hover over ground if it happens to spawn over ground. In 0.93 you can switch off terrain impact trigger.Quote: Well, got past the crashing. I can enter the game, select the mine, and start planting it with the animation. But it just loops without anything really happening, nothing spawning. So more tweaking time. Make sure the animation has that action trigger, like medic and deploy animation has, if you're not using those animations already. |
Author: | The Soldier [ Fri Nov 01, 2013 8:11 pm ] |
Post subject: | Re: Landmine |
What's mine is MINE! ![]() A bit of a flop on my part, I put in "projectile" instead of "grenade" in the spawn_instance_class line. Also copied the rocket.projectile file and give it no air resistance. And without a speed line in the .weapon class, it just hovers. ![]() And oddly enough, if you're planting it on a slope, the mine will literally be underground. I guess the game doesn't respond to a stationary object touching something as "impact", only when it's moving. Better for me! Sadly these mines don't stay after you've exited the skirmish, since it's technically a projectile. If you load back up, they're gone. So there's a bit of a flaw. Same goes with the MG42 Lafette on the other thread. @pasisk Damn, so there's going to be no challenge with modding in the next patch? ![]() |
Author: | pasik [ Fri Nov 01, 2013 8:37 pm ] |
Post subject: | Re: Landmine |
The Soldier wrote: Sadly these mines don't stay after you've exited the skirmish, since it's technically a projectile. If you load back up, they're gone. So there's a bit of a flaw. Same goes with the MG42 Lafette on the other thread. Yup, vehicles / free items aren't saved/loaded currently. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |