Results 1 to 6 of 6

Thread: Quickmenu without .menu :D

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,018
    Thanks
    2,110
    Thanked 1,086 Times in 753 Posts

    Quickmenu without .menu :D

    Hey all,

    I've had a nice idea and maybe somebody wants to do it:

    pseudocode:



    PHP Code:
    while (isDefined(player))
    {
        if (
    player useButtonPressed())
        {
            
    createAllQuickMenuHuds();
            
    mouse getMousePositionFromPlayerAngles();
            
    drawMousePointer(mouse["x"], mouse["y"]);
            
    item findSelectedItem(mouse);
            
    doSomethingWithItem(item);
        } else {
            
    deleteAllQuickMenuHuds();
        }


    The idea is, that if the player is pressing USE, an overlay will appear. To "fake" a mouse-pointer, the player-angles are used. Which item is used, depends on where to release the mouse-pointer on.

    That would work with every weapon, though it could be restricted to a "tool gun".

    I would like such a system to buy Turrets e.g. in the BaseTDM.

    If something is unclear, just ask
    timescale 0.01

  2. The Following 2 Users Say Thank You to kung foo man For This Useful Post:

    EvoloZz (6th April 2013),Jeplaa (5th April 2013)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •