Advertisement

Author Topic: My weapon is a brush (ACCEPTED)  (Read 2639 times)

0 Members and 1 Guest are viewing this topic.

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
My weapon is a brush (ACCEPTED)
« on: 05 Apr 2007, 20:35:23 »
just a bit of fun with the new weaponDirection command.

Spooner [2007-10-05]: Accepted as a bit of fun and a demonstration of drop/weaponDirection commands.
« Last Edit: 05 Oct 2007, 18:46:12 by Spooner »

Offline JasonO

  • OFPEC Patron
  • ****
  • Oh no...
    • The New Life RPG
Re: My weapon is a brush
« Reply #1 on: 05 Apr 2007, 22:10:00 »
 :clap:

Very nice. So it detects the position from the player in which the crosshair is facing?

This helps me know what this command can do now, thanks.

Good job aswell  :yes:

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: My weapon is a brush
« Reply #2 on: 05 Apr 2007, 22:39:40 »
As indicated in first post,  weaponDirection command.

You get an array similar to that of vectorDir command.


Offline johnnyboy

  • OFPEC Patron
  • ****
  • Matan los Pantalones!!!
Re: My weapon is a brush
« Reply #3 on: 05 Apr 2007, 22:50:43 »
Very interesting. 

Opens doors to lasers, flamethrowers, etc., perhaps...
El Cojon: "Do you like to Tango?"
You: "Only in Bagango."
Download Last Tango in Bagango and discover how El Cojon earned his name...

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: My weapon is a brush
« Reply #4 on: 06 Apr 2007, 00:36:15 »
Those were possible with 'just' using fired eventHandler, weaponDirection just makes it a bit easier..
Project MCAR   ---   FWW2 - Finland At War 1939-1945
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: My weapon is a brush
« Reply #5 on: 06 Apr 2007, 00:51:44 »
As long as you had ammo left  :P

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: My weapon is a brush
« Reply #6 on: 06 Apr 2007, 01:01:48 »
Quite, but that's besides the point  :D
Project MCAR   ---   FWW2 - Finland At War 1939-1945
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline Blanco

  • Former Staff
  • ****
Re: My weapon is a brush
« Reply #7 on: 09 Apr 2007, 05:10:36 »
Strange HDR effects...  :whistle:


Just an idea...

Is it possble to create a script where you are as artillery observer (eg: mortars) are able to assign bombingspots just by pointing your crosshair?
Eventually only when you look through binoculars (you can check this with the animationstate command).  8)

Search or search or search before you ask.

Offline JasonO

  • OFPEC Patron
  • ****
  • Oh no...
    • The New Life RPG
Re: My weapon is a brush
« Reply #8 on: 09 Apr 2007, 05:13:27 »
Yes, if its possible to get the distance from the player.. at the moment I think it's just [x,y] array from the weapondirection command?

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: My weapon is a brush
« Reply #9 on: 09 Apr 2007, 09:00:29 »
Quote
[x,y] array from the weapondirection command?
weaponDirection returns direction vector [x,y,z] (afaik)..
Project MCAR   ---   FWW2 - Finland At War 1939-1945
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: My weapon is a brush
« Reply #10 on: 09 Apr 2007, 09:32:42 »
Blanco, general speaking, yes for more or less flat terrain, knowing the angle of your binocs and the height of the unit you may calculate easily where its sight line intersects the terrain. But there is a much better way to do this which is currently present in Mando Missile 2.2 (not released yet) to detect when that line really intersects the terrain.