Deployable Weapons: Mortars, Anti-tank rifles, etc


#21

Yea, take a look at the code for deploying tents, you’d want something similar to that.


#22

Oh right I forgot about tents.


#23

Is there a way to rotate furniture, or should I just not worry about that and just allow free aim rather than an arc?


#24

if by rotate you mean figure out what the facing is, that should be doable based on where the player is relative to the weapon, like…
@BF vs

F
B
@

There’s no rotation operation per se, but you can certainly place the two furniture tiles appropriately and then refuse to let the player interact with it unless they are at the correct orientation.


#25

Well you would have to force the interaction from a certain orientation anyway. Can’t have players firing a 20mm cannon while standing in front of the barrel. No I meant give an option to change the facing while interacting with the weapon.
for example, starting oriented like this:
C
C
P

Player Cannon

You interact with the furniture to shift the weapon and adjust the arc it can fire in (45 degrees) to this:
__C
_C
P

If we can’t make the player able to turn it without completely dismantling the weapon, then I think it would be best to simply force the player to orient behind it, and allow a 270 degree firing arc, so they can’t accidentally blow themselves to smithereens.


#26

Just make it drag able as that changes orientation for most objects. So make the cannon drag able and it’ll turn as you do if you can’t find it in furniture you can just take it from vehicles.


#27

Dragging to orient? That seems like it might be problematic.


#28

You can do it with vehicles fairly well.


#29

Maybe a player could be allowed to ‘try’ and hip fire such things. The user could be gifted with the gift of physics, force, and velocity for their efforts. Like how pulling the pin on a grenade and not throwing it ends as would be expected.


#30

If I make some of this, I am seriously tempted to make that a “feature”.


#31

i can imagine a bug where if mortars are implemented into the game, they can somehow be hip-fired and hit enemies just like explosive rifles…

and change the history of mortar firing procedure… :laughing: :+1:


#32

Oh please, please do. I would honestly help to make this real.


#33


#34

:rofl: perfect…

exactly what i imagine, mortar’s knockback + force produced + loud sound.
oh my i miss that Men In Black scene… noisy cricket gun, absolute damage but ridiculous knockback.


#35

You could also, just for giggles, use such a system while wearing power armour to turn yourself into the projectile and possibly even survive doing it once.


#36

now we start heading to efficiency real quick here :laughing:

yeah, just like a game i used to play long ago (forgot the name) that has this ragdoll feature of killing enemy if you ragdoll using power armor… i think its GTA 4 if i remember.


#37

Oh lord…it just hit me. The Corpse Cannon. It might be too efficient though. But the Mongols would approve


#38

insert metal banging sound that would be nice :smile:


#39

Bad Russian accent In American Cataclysm, you send hulk flying.


#40

one giant leap of humanity… Nasa approves.