Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006144opensim[REGION] Script Functionspublic2012-08-09 09:162012-08-10 11:59
ReporterSignpostMarv 
Assigned To 
PrioritynormalSeverityminorReproducibilityrandom
StatusnewResolutionopen 
PlatformOSOS Version
Product Versionmaster (dev code) 
Target VersionFixed in Version 
Summary0006144: rapidly crouching occasionally produces unexpected results
DescriptionRapidly crouching occasionally indicates to script engine that the avatar is in the air, e.g. llOwnerSay((string)(llGetAgentInfo(i) & (AGENT_FLYING | AGENT_IN_AIR))); spits out "256" when it should always spit out "0".
Steps To Reproduce1) stand on flat sim terrain
2) Attach a prim containing the script in the additional info field
3) rapidly press the Page Down key rapidly enough for LSL not to notice the key is held, as the script will detatch the prim when Page Down is "held".
Additional Informationdefault
{
    state_entry(){
        if(llGetAttached() != 0){
            llRequestPermissions(llGetOwner(), PERMISSION_TAKE_CONTROLS);
        }
    }
    
    attach(key a){
        if(a != NULL_KEY){
            llRequestPermissions(a, PERMISSION_TAKE_CONTROLS);
        }else{
            llReleaseControls();
            llRequestPermissions(a, 0);
        }
    }

    run_time_permissions(integer p){
        if(p & PERMISSION_TAKE_CONTROLS){
            llTakeControls(CONTROL_DOWN, TRUE, TRUE);
        }
    }
    
    control(key i, integer l, integer e){
        llOwnerSay((string)(llGetAgentInfo(i) & (AGENT_FLYING | AGENT_IN_AIR)));
        if((llGetAgentInfo(i) & (AGENT_FLYING | AGENT_IN_AIR)) == 0 && llGetAttached() != 0){
            if(((l & ~e) & CONTROL_DOWN) != 0){
                osForceDropAttachment();
            }
        }
    }
}
TagsNo tags attached.
Git Revision or version number19417fca41e
Run Mode Grid (1 Region per Sim)
Physics EngineODE
Script Engine
Environment.NET / Windows64
Mono VersionNone
Viewer
Attached Files

- Relationships

-  Notes
(0022007)
SignpostMarv (reporter)
2012-08-09 09:20

May or may not be related, but although this particular issue cannot be reproduced with BulletSim, holding crouch in BulletSim makes the avatar appear to sink into the ground (Impy 1.4 b1)
(0022013)
SignpostMarv (reporter)
2012-08-10 08:21

accidentally did patch included on wrong issue

- Issue History
Date Modified Username Field Change
2012-08-09 09:16 SignpostMarv New Issue
2012-08-09 09:20 SignpostMarv Note Added: 0022007
2012-08-10 08:20 SignpostMarv Status new => patch included
2012-08-10 08:21 SignpostMarv Note Added: 0022013
2012-08-10 11:59 nebadon Status patch included => new
2012-08-18 04:32 DMX04 Issue cloned: 0006219


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker