Results 1 to 19 of 19
  1. #1
    legacy-Tatsu[opera]
    Guest

    Default A Karma based barrel to shoot around...

    Anyone know of a tutorial to create a Karma boject that acts like a basketball. Basically you can shoot it and it moves around like a ball or one of the barrels in Devistation? (Another Unreal engine game)

    Any help is appreciated. It isnt for me, but I know someone who is looking high and lot for it. Thanks!

  2. #2
    MSgt. Shooter Person
    Join Date
    May 2002
    Posts
    155

    Default

    find the barrel static mesh in one of the packages...or use any mesh u want. then in the mesh browser, give the mesh karma collision, save it in myLevel, and then "add karma object" to level. place the thing where u want it...play the map, and shoot it around.

  3. #3
    legacy-Tatsu[opera]
    Guest

    Default

    Do you know if there is a way to have the kactor react to player contact? Can you make it pushable by the player?

  4. #4
    MSgt. Shooter Person
    Join Date
    Mar 2002
    Posts
    98

    Default

    It needs to be programmed in.

    talk to the coder on your project about making a kactor sub class that applies a KActor Impulse on player touch.

  5. #5
    legacy-Tatsu[opera]
    Guest

    Default

    Thanks, Bean...old bean.

  6. #6
    legacy-HomeydaKlown
    Guest

    Default

    You should be able to make it react to player contact with the default kactor properties. Go into the object's properties and look around a bit, it's there.

  7. #7
    MSgt. Shooter Person
    Join Date
    Jan 2001
    Posts
    103

    Default

    Keep in mind that karma is clientside so this will not work and can cause trouble if you try to play the map online.

  8. #8
    Redeemer
    Join Date
    Oct 2002
    Posts
    1,323

    Default

    I distinctly remember reading that there is no support for players pushing karma objects (I was trying to make swinging doors). It requires more coding.

  9. #9
    legacy-Tatsu[opera]
    Guest

    Default

    UPDATE:

    In order to help a friend out I have been dorking about with this and here is what I have discovered...

    - Karma based objects function in a multiplayer environment...for the most part. Seems that the moment someone else joins you all hell breaks loose. Errors and all kinds of crap.
    - You cannot simply check a box to make Karma objects move when pushed. You have to alter the KActor code as someone suggested and EITHER save it you a mutator ".U" file or the myLevel package
    - Karma object SERIOUSLY screw with frame rates.

    All of this confuses me because the little rocks from the bulldog driving dont screw with any of this stuff and they are supposedly Karma based. You can push them, they bounce around and **** and they work online. I need to look into this before my programmer friend loses his mind. Thanks people!

  10. #10
    Redeemer
    Join Date
    Jul 2002
    Posts
    1,910

    Default

    Those little rocks are probably meshes from a particle emitter.
    Like the 'dustclouds' & 'steam' in the levels they're affected by explosions and such ...

  11. #11
    legacy-Streetgrime
    Guest

    Default ....

    So?

    Do we all agree that Characters can NOT push Karma actors around? Even in a single player environment?

    or do I have to keep investigating this?

  12. #12
    MSgt. Shooter Person
    Join Date
    Mar 2003
    Posts
    270

    Default

    Pushing Karma objects are certainly possible and making it work online is possible aswell. It does require extra server bandwidth (depends on how many objects you have going at the same time)

    The LawDogs mod has pushable karma and it works online , i'm no coder, so i don't know how it was done, but, it has been used in maps for the mod.

  13. #13
    Boomshot
    Join Date
    Mar 2002
    Posts
    2,475

    Default

    Code to make Karma work online is available on the Wiki: http://wiki.beyondunreal.com/wiki/KActor_Replication

    A very simple bit of code to make KActors pushable by players:
    Code:
    simulated event Bump(Actor Other)
    {
    	if(!bPushable || Other == None)
    		return;
    
    	if(VSize(Other.Velocity) < 0.001)
    		return;
    
    	KAddImpulse(Other.Velocity * Other.Mass * PushFactor, Other.Location);
    }
    Note that that is a very simplified model that is nothing like the real laws of physics.

  14. #14
    Redeemer
    Join Date
    Sep 2001
    Posts
    1,187

  15. #15
    Iron Guard
    Join Date
    Jun 2002
    Posts
    516

    Default

    Mr Evil to the coding rescue once again

    I actually have 6 Karma objects in Marsbase3000 which I released last NOV, and you could shoot them around and use for cover in SINGLE player but they didnt work AT ALL online, but they didnt crash the game or mess anything up either. they just rolled a bit the first time the map was loaded than stayed solid after that.

  16. #16
    Iron Guard
    Join Date
    Aug 2002
    Posts
    520

    Default

    Originally posted by BabyNuke
    http://udn.epicgames.com/pub/Content...ExampleUT2003/

    Download that example map
    And that helps how exactly?
    I dont think you read any of this thread.

  17. #17
    Redeemer
    Join Date
    Sep 2001
    Posts
    1,187

    Default

    Has two pipes that can be blown around. It's a nice example, ain't it?

  18. #18

    Default

    Quote Originally Posted by legacy-Mr Evil View Post
    Code to make Karma work online is available on the Wiki: http://wiki.beyondunreal.com/wiki/KActor_Replication

    A very simple bit of code to make KActors pushable by players:
    Code:
    simulated event Bump(Actor Other)
    {
    	if(!bPushable || Other == None)
    		return;
    
    	if(VSize(Other.Velocity) < 0.001)
    		return;
    
    	KAddImpulse(Other.Velocity * Other.Mass * PushFactor, Other.Location);
    }
    Note that that is a very simplified model that is nothing like the real laws of physics.
    this is a stupid question but how and where do i use that script code?

  19. #19
    MSgt. Shooter Person
    Join Date
    Oct 2006
    Location
    land of the dutch
    Posts
    494

    Default

    huge necro!
    ..__.
    (__ ._ ._ *\./

    .__)(_)[ )|/'\


 

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.