It is currently Mon Jun 16, 2025 6:17 pm

RUNNING WITH RIFLES Multiplayer

test

Game servers 42 List provided by EpocDotFr | Players online 35


All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Landmine
PostPosted: Thu Oct 31, 2013 10:58 pm 
Offline

Joined: Sat Oct 05, 2013 12:19 am
Posts: 635
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.


Top
 Profile  
 
 Post subject: Re: Landmine
PostPosted: Fri Nov 01, 2013 5:30 am 
Offline
User avatar

Joined: Thu Sep 27, 2012 4:41 pm
Posts: 392
Location: finland
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,

_________________
co-owner of NEWA


Top
 Profile  
 
 Post subject: Re: Landmine
PostPosted: Fri Nov 01, 2013 8:35 am 
Offline
Site Admin

Joined: Mon Jun 27, 2011 11:59 am
Posts: 2856
The 0.92 projectile impact trigger doesn't have collider options, 0.93 gives distinction between terrain, static objects, vehicles and characters.


Top
 Profile  
 
 Post subject: Re: Landmine
PostPosted: Fri Nov 01, 2013 8:38 am 
Offline
Site Admin

Joined: Mon Jun 27, 2011 11:59 am
Posts: 2856
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.


Top
 Profile  
 
 Post subject: Re: Landmine
PostPosted: Fri Nov 01, 2013 6:57 pm 
Offline

Joined: Sat Oct 05, 2013 12:19 am
Posts: 635
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. :/


Top
 Profile  
 
 Post subject: Re: Landmine
PostPosted: Fri Nov 01, 2013 8:05 pm 
Offline
Site Admin

Joined: Mon Jun 27, 2011 11:59 am
Posts: 2856
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.


Top
 Profile  
 
 Post subject: Re: Landmine
PostPosted: Fri Nov 01, 2013 8:11 pm 
Offline

Joined: Sat Oct 05, 2013 12:19 am
Posts: 635
What's mine is MINE!

Image

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. :) So mines galore!

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? ;) And yea, I made sure the animations were correct - didn't fiddle with them.


Top
 Profile  
 
 Post subject: Re: Landmine
PostPosted: Fri Nov 01, 2013 8:37 pm 
Offline
Site Admin

Joined: Mon Jun 27, 2011 11:59 am
Posts: 2856
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group