Build-mountable weapons (REQUEST)

Author Topic: Build-mountable weapons (REQUEST)  (Read 2620 times)

I want weapons...that you can build on to your builds. Like a giant cannon, or a giant lazar. Or incineration-inducing howitzer. Some people just want a giant lazer on their death star, alright? Couldnt be too hard, you already have turret bricks >_>....

Also: Controllable turrets. I already know how this would be done...it would be done with an immoble vehicle with a fast-fire weapon attached. simple, for someone who knows something about modding, unlike myself. PLZZ?  :cookie: :cookie: :cookie: :cookie:???

no
already been done
already in v9
wrong section!!!

inb4move

Already done? were?

also, move were? O.o

He wants you to put it in suggestions and requests.


A moving and turning turret would be harder than just the brick itself shooting projectiles, as I have done - mounting things to bricks directly is impossible, and it wouldn't be able to aim.

A controllable turret would be neat but aiming would require engine changes or hacky "rotating" statics attached to the vehicle. Moving the vehicle with a rotating turret would not look good. Static turrets facing one direction on the vehicle are possible and have been done, mount the weapon to a slot and edit the ontrigger things.

These things were in Tribes 2, so perhaps a rummaging through it's files would be in order.

Bet you a cookie it's DSO'd. :cookieMonster:

He wants you to put it in suggestions and requests.


A moving and turning turret would be harder than just the brick itself shooting projectiles, as I have done - mounting things to bricks directly is impossible, and it wouldn't be able to aim.

A controllable turret would be neat but aiming would require engine changes or hacky "rotating" statics attached to the vehicle. Moving the vehicle with a rotating turret would not look good. Static turrets facing one direction on the vehicle are possible and have been done, mount the weapon to a slot and edit the ontrigger things.

A: The giant cannons and other stuff isnt supposed to aim *inless its a mortar or such, and then you build it were you want it, and re-build when you aim wrong*

B: Well, The vehicles are not supposed to move. The rotating statics would be a bad-hacky sort of thing, probably. and what do you mean mount the weapon to a slot? (for the people who would make it >.<).

See Aloshi's warplane. It mounts (%vehicle.mountImage) a custom weapon to a point on the model (Front seat, bottom of plane) and edits some WarPlaneVehicle::onTrigger stuff to activate the weapons.

I made an edited Stuntplane which fires 5 HEGrenades out the bottom when you push Space. It directly creates the projectiles instead of using weapons.

Code: [Select]
other plane stuff
...

function stuntplaneVehicle::onTrigger(%this, %obj, %num, %cli, %wha)
{
if(%cli $= 1 && !%obj.nofire)
{
%obj.nofire = 1;
bottomprint(%obj.getMountedObject(0).client,"\c0Bombs launching!",2,2,2);
schedule(20000,0,resetfire,%obj);
Bombs(0,%obj);
}
}

function resetFire(%obj)
{
 %obj.nofire = 0;
 if(isObject(%obj.getMountedObject(0).client)){bottomprint(%obj.getMountedObject(0).client,"\c0Bombs ready!",2,2,2);}
}

function Bombs(%num,%obj)
{
     %p = new (Projectile)() {
      dataBlock        = heGrenadeProjectile;
      initialVelocity  = vectorScale("0 0 -1",heGrenadeProjectile.muzzleVelocity);
      initialPosition  = vectorAdd(%obj.position,"0 0 -2");
      sourceObject     = %obj;
      sourceSlot       = 0;
      client           = %obj.getMountedObject(0).client;
      minigame = %obj.getMountedObject(0).client.minigame;
   };
if(%num<6){schedule(500,0,bombs,%num++,%obj);}
}

Is it possible to build on vehicles? Is there a script that makes it that way? That would be cool. Also, a set of four wheels and a baseplate connecting them would allow people to easily make their own vehicles from ingame.

The warplane directly made the projectiles for the bombs anyway, it was only the gun on the front which was mounted to it.

I want weapons...that you can build on to your builds. Like a giant cannon, or a giant lazar. Or incineration-inducing howitzer. Some people just want a giant lazer on their death star, alright? Couldnt be too hard, you already have turret bricks >_>....

Also: Controllable turrets. I already know how this would be done...it would be done with an immoble vehicle with a fast-fire weapon attached. simple, for someone who knows something about modding, unlike myself. PLZZ?  :cookie: :cookie: :cookie: :cookie:???

PPL need to stop asking impossible things when it's clearly un do able.

PPL need to stop asking impossible things when it's clearly un do able.

People who don't know about scripting do not know the difference between do-able and not do-able, even when it's clear to scripters. That's why I usually talk to them for ideas, considering their minds are free of all the technical restrictions that we have. I've found the 'impossible' can usually be done (although, a lot of the time, it's either some crazy workaround or it devours the server's CPU).

I've been thinking about this... would it be possible to:

a) Hide part of a model when you get in a vehicle?
b) Make a non-moving vehicle?
c) Hold a certain weapon once you get in?

Take a cannon for example. Set everything like engineTorque to 0. Somehow script it so that when you get in, the cannon model disappears, leaving you on a platform, holding a cannon.

Quote
a) Hide part of a model when you get in a vehicle?
b) Make a non-moving vehicle?
c) Hold a certain weapon once you get in?
a) Possibly, depending on the model. Player models can hideNodes, after all.
b) Possibly. Just make it redicilously heavy and don't take engines... or hey, even mount it to something? That might work, but I'll need to look into the specifics. Need to look into this one, though.
c) Yes, this is possible. Just mountImage a specific weaponImage during thisvehicle::onMount.

If you had a non-moving vehicle, you could "mount" a gun to it, and get a turret. Another thought: I haven't tested it yet, but if you set the number of wheels on the jeep to 0, does it move?