Page 2 of 2 FirstFirst 12
Results 41 to 67 of 67
  1. #41

    Default

    free aim not work in UDK-2010-05

  2. #42

    Default

    Yeah I'm having problems with changing the direction the player is looking in the last 3 camera modes. Any suggestions?

    Thanks

  3. #43
    MSgt. Shooter Person
    Join Date
    Feb 2010
    Location
    Acton, London
    Posts
    69

    Default

    Thanks for the script dean it's working like a charm apart from one snag - I have matinee sequences where before it cut to a different camera for cutscenes and such - this script seems to have disabled that ??? Have you encoutered this - do you know of any workarounds?

    Also is there a way to make the camera focus on the crosshair rather than the pawn (player)?

    I understand I should be learning the code for myself but am primarily a modeler/texture artist and was hoping for a helping hand in completing my first project.

    Your help is much appreciated - feel free to PM me - Many thanks
    Last edited by heroicsatsuma; 06-03-2010 at 05:50 PM.

  4. #44

    Default

    Quote Originally Posted by tegleg View Post
    if you get stuck/lost with the ball tutorial like i did
    try geodavs udk basic tutorialshttp://sites.google.com/site/ut40kmod/
    Thanks for the link, I'm just starting to code with Unrealscript without any previous experience, so useful
    Everything about art and level design in UDK, from sketch to the game.

    http://artandleveldesign.blogspot.com/

  5. #45
    Palace Guard
    Join Date
    Feb 2010
    Location
    Tegleg Records
    Posts
    3,785
    Gamer IDs

    Gamertag: tegleg digital

    Default

    Quote Originally Posted by Blade[UG] View Post
    Shouldn't the WeaponAttachmentChanged function check your view type? And also, shouldn't the view type change the Weapon Attachment's visibility when you change views?
    hello
    my weapons dont show in anything but 1st person cam since i changed my character, it was ok with the default udk character
    please could you explain how to get them to show?
    or better still post the code
    im starting to delve into the script now but im still at the bottom of the curve atm
    thanks
    Code:
    We.spazmodicaly.simulate.new.sound.with.technical.equipment.that.is.specificaly.manufactured.for.humans.to.communicate.in.outer.space.Tegleg.manipulates.time.and.space.to.create.new.experiences.to.generate.a.hardcore.database.generation.
    LOOK>> Please ask questions in the forum, NOT a private message <<LOOK
    tegleg.co.uk
    My Tutorials n Stuff
    Games: Tegs Playground - Unwheel2 - VCTF Game - Sponic Mesh 3D - Shh.. dont tell anyone about my android apps.
    will code for money

  6. #46

    Default Very Nice Share

    Nice resource thank you for sharing...

  7. #47
    MSgt. Shooter Person
    Join Date
    Dec 2009
    Posts
    54

    Default

    in UKD 2010-04 I got an error "Couldn't spawn player:Engine.GameMessage.FailedSpawnMessage"

    Why?
    Last edited by jakoks; 06-26-2010 at 02:59 PM.

  8. #48
    MSgt. Shooter Person
    Join Date
    Jun 2010
    Posts
    73

    Default

    @jakoks:
    Is there a PlayerStart actor in your map?

  9. #49

    Default

    Hey guys,

    I managed to clear the code of everything i dont need. ( i just wanted the CameraZoom 2 in fact)

    I get everything running

    BUT

    The weapon always shoot toward a point in the middle of the ceiling. I think it must be in that portion of the code:

    function Rotator GetAdjustedAimFor(Weapon W, vector StartFireLoc)
    { // This makes our gunfire hit our target location, NOT where the pawn or weapon is aimed.
    if (CameraZoom != 1) //if not in first person mode
    {
    if(Pawn != None)
    {
    return rotator(MouseHitWorldLocation - startfireloc); // find the rotation from the weapon's barrel to the target.
    }
    else return Rotation;

    } //if (CameraZoom !=1)

    else //if not in first person mode, run regular UT script
    return super.GetAdjustedAimFor(W,StartFireLoc);
    **Edit

    I got it, i changed

    if (CameraZoom != 1)

    to

    if (CameraZoom == 1)
    So that it passes in the false every time. I just need to make it a little more precise now.

    Thanks!
    Last edited by MaxAttack; 07-24-2010 at 07:23 PM.

  10. #50

    Default

    How can i make sure that the pawn shoots where the crosshair is? should i write another code or can i just modify the regular UT script?

  11. #51
    MSgt. Shooter Person
    Join Date
    Apr 2010
    Posts
    54

    Default

    @Jakoks I had that same problem, if you got warnings on line 8,9, and 11 in DSGameInfo and warnings on 370 in DSPlayerController. You need to change the code to make sure that it's checking in your folder for the scripts.

    Code:
    //parts to change in DSGameInfo
     PlayerControllerClass=class'Yourgamesfolder.DSPlayerController'
     DefaultPawnClass=class'Yourgamesfolder.DSPawn'
     HUDType=class'Yourgamesfolder.DSHUD' //Link to my HUD
    
    //parts to change in DSPlayerController
       InputClass=class'Yourgamesfolder.DSPlayerInput'

  12. #52

    Default

    Hello, there. I've followed this tutorial and it worked out pretty well.
    However, when I tried loading the gamemode for multiplayer the following issue occurs:
    - clients only see their weapons;
    - moving the mouse only makes the weapon change it's pitch;
    Also not that clients can see the player models for others while ingame.

    If anyone has an idea about why it might be happening, I would appreciate a reply.

  13. #53

    Default

    First of this post has been a great help for me to get started with udk scripting. But i have a problem with the AdjustedAim. My camera is setup as a sideview (sidescroller). But i cant figure out how to get this to work in only 2 dimensions (right now it shoots at the wall behind the player and i want it to shoot horizontal)

    function UpdateRotation( float DeltaTime )
    {
    local Rotator newRotation;
    local DemoGamePawn ThePawn; // Typecast the Pawn
    local vector mousePositiontemp;

    ThePawn = DemoGamePawn(Pawn); // Typecast the Pawn

    mousePositiontemp = MouseHitWorldLocation;
    mousePositiontemp.Y = Pawn.Location.Y;

    NewRotation = rotator(mousePositiontemp - Pawn.Location);

    ThePawn.AimNode.Aim=vect2d(0.0, NewRotation.Pitch*0.00006);

    if ( Pawn != None )
    Pawn.FaceRotation(NewRotation, deltatime);
    }

    function Rotator GetAdjustedAimFor(Weapon W, vector StartFireLoc)
    { // This makes our gunfire hit our target location, NOT where the pawn or weapon is aimed.
    if(Pawn != None)
    {
    return rotator(MouseHitWorldLocation - startfireloc); // find the rotation from the weapon's barrel to the target.
    }
    else return Rotation;
    }
    ^- what im currently using to get the pawn to look at the cursor/shoot at the cursor

  14. #54

    Default

    It's shooting at the wall behind the player because the MouseHitWorldLocation points there. You should try to do the same thing you did in UpdateRotation. See the quote:

    function Rotator GetAdjustedAimFor(Weapon W, vector StartFireLoc)
    { // This makes our gunfire hit our target location, NOT where the pawn or weapon is aimed.
    local vector mouserot; //new mouse location vector
    if(Pawn != None)
    {
    mouserot=MouseHitWorldLocation; //get the mouse position
    mouserot.Y=Pawn.Location.Y; //set the Y value to the pawn's
    return rotator(mouserot - startfireloc); // find the rotation from the weapon's barrel to the target.
    }
    else return Rotation;
    }

  15. #55

    Default

    Quote Originally Posted by Vip3r View Post
    It's shooting at the wall behind the player because the MouseHitWorldLocation points there.
    Thats what i thought but im verry new to udk scripting... and the solution so simple -.- tnks for the help

  16. #56

    Default

    Thank you, I appreciate your fantastic post!

    I really needed the function like your MMCamRotate!

    But I have some problems


    I tried your classes in August build of UDK.

    But It looks weird.

    While in 3rd person mode(CameraZoom>=2), My character always fires at a particular position on the floor.

    You intended for the character to fire at the position where the camera is looking at, didn't you?

    I'll be most gratefull for your answeres

  17. #57
    Palace Guard
    Join Date
    Feb 2010
    Location
    Tegleg Records
    Posts
    3,785
    Gamer IDs

    Gamertag: tegleg digital

    Default

    move your mouse round to fire at things in that camera mode
    Code:
    We.spazmodicaly.simulate.new.sound.with.technical.equipment.that.is.specificaly.manufactured.for.humans.to.communicate.in.outer.space.Tegleg.manipulates.time.and.space.to.create.new.experiences.to.generate.a.hardcore.database.generation.
    LOOK>> Please ask questions in the forum, NOT a private message <<LOOK
    tegleg.co.uk
    My Tutorials n Stuff
    Games: Tegs Playground - Unwheel2 - VCTF Game - Sponic Mesh 3D - Shh.. dont tell anyone about my android apps.
    will code for money

  18. #58

    Default

    I am a student game designer and I would like to learn UnrealScript for my final year project. I am trying to use this tutorial as a springboard to understand it, yet I cannot make it work. I follow the steps, have made the changes in

    DefaultEngine.ini
    +ModEditPackages=DSGame

    and

    DefaultGame.ini
    DefaultGame=DSGame.DSGameInfo
    DefaultServerGame=DSGame.DSGameInfo
    PlayerControllerClassName=DSGame.DSPlayerControlle r

    yet when I start it in the editor, I just get the default game settings, FPS and the mouse wheel does not change cameras. I have tried a couple of other tutorials that extend from GameInfo instead of UTGame (eg. http://forums.epicgames.com/showthread.php?t=726985) and they work, yet they lack the features of this one and I do not have enough experience to make them by my self in this point.

    I have not made the connection of the middle key yet in DefaultInput, but from what I see camera changes are made by subverting the exec function PrevWeapon() and exec function NextWeapon(), so it should not influence the outcome.

    I am running the August version of UDK. Any help would be most welcome.

  19. #59
    MSgt. Shooter Person
    Join Date
    Apr 2010
    Posts
    207

    Default

    I think the problem is that in the latest version of UDK, the code becomes...messed up to say the least. In the previous versions i had it working just fine; ported it o the latest version, and only the first person camera works the way its supposed to...this means either giving the code a good look over and making the necessary changes (of which i have no idea), using an older version of UDK, or doing without a thrid person camera...
    I want to get a vending machine with fun sized candy bars, but the glass in front would be a magnifying glass. You'll be mad, but it will be too late.

  20. #60

    Default

    Hi there !
    I'm new in scripting and I am trying to use this tutorial but I got these 2 errors on compiling :
    C:\UDK\UDK-2011-01\Development\Src\GolfGame\Classes\GolfGameHUD.uc (74) : Error, Unknown Function 'GetCursorPosition' in 'Class Engine.UIRoot'
    C:\UDK\UDK-2011-01\Development\Src\GolfGame\Classes\GolfGameHUD.uc (40) : Error, Unrecognized member 'SetMousePosition' in class 'GameUISceneClient'
    Can anyone help me with these errors ?
    thanks !
    line74 class'UIRoot'.static.GetCursorPosition(ScreenPos.X , ScreenPos.Y);
    line40 PlayerOwner.GetUIController().SceneClient.SetMouse Position(PC.resolution.x/2,PC.resolution.y/2);

  21. #61

    Default

    I am receiving the same errors, I am very new to unreal script and wanted to manipulate the camera. Please let me know what I can do to fix this.

    G:\UDK\Development\Src\MyProject\Classes\DSHUD.uc( 65,0): error : Unknown Function 'GetCursorPosition' in 'Class Engine.UIRoot'
    G:\UDK\Development\Src\MyProject\Classes\DSHUD.uc( 31,0): error : Unrecognized member 'SetMousePosition' in class 'GameUISceneClient

  22. #62
    Veteran
    Join Date
    May 2007
    Location
    Above KillZ, Below StallZ
    Posts
    9,953

    Default

    Click "Documentation" search it for Camera stuff, rather than digging up code that is for relatively ancient versions of the engine
    http://www.ericbla.de http://www.dungeondefenders.com http://en.wikipedia.org/wiki/Warm_Gun http://www.rekoil.com http://www.groundbranch.com

    - Please don't send me private messages asking programming questions, those would be better asked on the Programming forum here. Thanks

  23. #63

    Default

    Thanks Blade !
    Sorry for 'buzzing' you. I'm not good at scripting, any info are welcome.
    I'll try on Programming zone.

  24. #64

    Default

    I noticed that the character is not following where the camera is looking. Does anyone know why that is?

  25. #65

    Default

    Quote Originally Posted by Judgement45 View Post
    I am receiving the same errors, I am very new to unreal script and wanted to manipulate the camera. Please let me know what I can do to fix this.

    G:\UDK\Development\Src\MyProject\Classes\DSHUD.uc( 65,0): error : Unknown Function 'GetCursorPosition' in 'Class Engine.UIRoot'
    G:\UDK\Development\Src\MyProject\Classes\DSHUD.uc( 31,0): error : Unrecognized member 'SetMousePosition' in class 'GameUISceneClient
    Me to. I just started with UDK.

    I wanted to try out this code, but i guess it ends here.

  26. #66

    Default

    I have the same errors as well.
    How to fix it? Please help.
    Thanks.
    Last edited by adamboho; 01-21-2012 at 04:54 PM.

  27. #67
    Palace Guard
    Join Date
    Feb 2010
    Location
    Tegleg Records
    Posts
    3,785
    Gamer IDs

    Gamertag: tegleg digital

    Default

    the problem with this excelent script is that in later versions of udk they removed or changed the mouse cursor stuff.
    there is an example of a mouse interface on here somewhere.
    a possible fix would be to integrate the 2 so it takes the mouse position from the mouse interface part.
    Code:
    We.spazmodicaly.simulate.new.sound.with.technical.equipment.that.is.specificaly.manufactured.for.humans.to.communicate.in.outer.space.Tegleg.manipulates.time.and.space.to.create.new.experiences.to.generate.a.hardcore.database.generation.
    LOOK>> Please ask questions in the forum, NOT a private message <<LOOK
    tegleg.co.uk
    My Tutorials n Stuff
    Games: Tegs Playground - Unwheel2 - VCTF Game - Sponic Mesh 3D - Shh.. dont tell anyone about my android apps.
    will code for money


 
Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Copyright ©2009-2011 Epic Games, Inc. All Rights Reserved.
Digital Point modules: Sphinx-based search vBulletin skin by CompletevB.com.