Hello boys and girls!
I am working on my mod (for MoH:aa, not SH) Medal of Honor: Objective Evolution right now and need some help. I am a poor man so i cant pay you but i cant gie you some looove
My problem is that in my mod i have insted of the rocket luncher a hand model that holds in a bomb. When you hold down the fire button the model starts to move, the hands is setting up the bomb. If you drop the fire weapon within 5 seconds the model stops. So you must hold in the fire button in 5 seconds then the bomb will drop. You cant move when you are planting the bomb.
To the big problem now is that on my beta mod map i have choosed 2 bomb areas, where you can plant the bomb. You dont have to plant it in a selected spot, its more like plant it where you want in the room. So now i need a script on the map that are like this:
In this selected area when i am holding down the firebutton of the "rocket luncher" in 5 seconds a bomb will be droped and planted. Then its just like in the objective gametype, the axis can after that defuse.
Someone that knows how this can be done and wants to help me i would be more than greatful.
Please help me make this mod come true, it will be taking Medal of Honor to a more professional game with a lot more tactics.
Cheers
Drop a bomb!
Moderator: Moderators
a rather brute force solution to this would be to make in your map a really large number of bomb script objects all over the bomb setting area so that wherever the player sets the bomb you could activate the bomb object nearest that, but then you could probably set each one of those bombs in the area (making quite a lot of havoc)... don't think that's what you are really looking for.
Re: Drop a bomb!
Are there girls?kickR wrote:Hello boys and girls!
Live to map, not map to live.
-mohaa_rox, .map
moderator
-mohaa_rox, .map
moderator
Well it might be possible, although I'm not sure of the use of it and am afraid of bugs to come.
However it's not all that difficult to spawn a bomb model on a wall in front of the player. Let's say you want to allow a player to plant a bomb within 64 units from a wall, then just spawn a temporary script_origin about 96 units in front of the player, about 64 units above the player's origin (~ hands level). Then use the trace command to find if there's a wall in between the player and this origin.
e.g., if self = player:
This is just a small example, the final script would be much more complicated.
Well maybe it's better just to stick to the red pulse model kind of bomb
However it's not all that difficult to spawn a bomb model on a wall in front of the player. Let's say you want to allow a player to plant a bomb within 64 units from a wall, then just spawn a temporary script_origin about 96 units in front of the player, about 64 units above the player's origin (~ hands level). Then use the trace command to find if there's a wall in between the player and this origin.
e.g., if self = player:
Code: Select all
local.temp = spawn script_origin
local.temp.origin = self.origin + self.forwardvector * 96 + (0 0 64)
local.collision = trace (self.origin + (0 0 64)) local.temp 0
if(vector_within local.collision self.origin 64)
// spawn bomb model
spawn models/mybomb.tik
Well maybe it's better just to stick to the red pulse model kind of bomb
