Jump to content

burgelkat

Members
  • Posts

    203
  • Joined

  • Last visited

Posts posted by burgelkat

  1. found the Problem

    you have delete the Mass set to 0 if you die
     

    function Script:Kill()
        self.health=0
        self.alive = false    
        self.corpse = Pivot:Create()
        local shape = Shape:Load("Models/Characters/Generic/corpse.phy")--this shape is made from a low-poly CSG sphere, so it will roll around a bit but come to a stop quickly
        self.corpse:SetShape(shape)
        if shape~=nil then shape:Release() end
        self.flashlight:Hide()
        if self.weapons[self.currentweaponindex]~=nil then
            self.weapons[self.currentweaponindex]:Hide()
        end
        self.corpse:SetMass(5)
        self.corpse:SetMatrix(self.camera:GetMatrix())
        self.camera:SetParent(self.corpse)
        self.camera:SetPosition(0,0,0)
        self.camera:SetRotation(0,0,0)
        self.corpse:SetCollisionType(Collision.Prop)
        self.corpse:SetSweptCollisionMode(true)
        self.entity:SetCollisionType(0)
        self.corpse:SetFriction(10,10)
        local maxomega=5
        self.corpse:SetOmega(Vec3(math.random(-maxomega,maxomega),math.random(-maxomega,maxomega),math.random(-maxomega,maxomega)))
        local v = self.entity:GetVelocity()
        if v:Length()>1 then
            v=v:Normalize()
        end
        self.corpse:SetVelocity(Vec3(math.random(-1,1),math.random(-1,1),math.random(-1,1)))
        --self.entity:SetMass(0) ----> deactivate this line because the game crash if you die 
        self.entity:SetPhysicsMode(Entity.RigidBodyPhysics)
    end

     

  2. Game crashes without message when I'm attacked by an NPC (Melee attack) and then die. Does anyone know why  is so?

    Was never like that before.

    I build a new Project and i have the crashes too. I use the start Map with only a Block and put the crawler to it and the player. (It would be bad if I had to make the map completely new.)

     

    Edit: If i jump and then in this phase i die then there is no crash

  3. Hi,

    i exportet an Model from blender (with Leadwerks exporter). Its modified with lattice so i get a nice corrugated iron roof. If you look at the picture you can see that the shadow is not correct? what i did wrong here? in blender the shadow looks ok .. is there something that i have to observed?

     

    thanks for some hints

    Screenshot 2017-06-13 18.18.59.jpg

  4. i downloaded some free weapons and completed it in blender

    Then i changed the FPSGun.Lua so the rpg7 Munition hide and show

    for the grenade i use the FPSGrenade Script from "Einlander" and changed some positions

     

    also i implemented a nightvision to the player  :)

     

     

    • Upvote 5
  5. Sorry for a new question about this.

     

    the script function good but not with a character model if i hide a character for example the merc with m4 and i will show the char at a Special Moment then the m4 is always hidden. Wy the child m4 does not show up? Is a char model with many bones as child a different child that has to be another script code ? Thanks for your help ... 

  6. Thanks :)

     

    Yes i use your free skyboxes. Thanks a lot for that.

     

    The TrainStation Map is not yet finished. But you can use it now. If you find the switch ... a Train arrives. Its not yet perfect. But looks in my eyes cool :)

     

    Have fun

    • Upvote 1
  7. Hello,

     

    i have a question about show and hide:

     

    If i Hide an Object by this script

    function Script:Show()--in
    if (self.entity:Hidden()) then
    self.entity:Show()
    end
    end
    function Script:Hide()--in
    if not self.entity:Hidden() then
    self.entity:Hide()
    end
    end
    

     

    then child are hide too.

     

    But if i have an Object that is at "Start" hidden. Then the Childs ( the hole object) not show after i would show it . What i have to do that all Childs are show so i have not to put in every child a script with show ?

     

    (the Childs are different Boxes and 2 ermitters)

     

    i hope you can follow what i have written smile.png

  8. With this update I created a level menu. Here you can simply continue with the next Map where you left off.

     

    There is still a small problem. I think it is due to "UpdateWorld Function". If the button does not work the same, please again (possibly also 3x click)

     

    I also worked a bit with the Vergetation and Billboards. I have improved the Map "Forest" and "Countryside" a little bit

    post-13719-0-63927900-1490382983_thumb.png

    post-13719-0-05603600-1490383061_thumb.jpg

    • Upvote 6
  9. Thanks i am happy that you enjoy it

     

    I think i have to make the task more transparent

     

    Its a little tricki with the pizza because the Modell overlaps the mouse icon

    You have to find a good position so the icon shows up

     

    I think about a menu where you can choose the Level

     

    For a save game function i think its to late to implement this afer finished maps ?!?

×
×
  • Create New...