Jump to content

karlis

Members
  • Posts

    1,314
  • Joined

  • Last visited

Everything posted by karlis

  1. you basically wrote the same as above, only except destroying only part that was working.
  2. you will have to read all file, then find last 150 "\n" chars.
  3. but it will lack real physics, which will be boring.
  4. wtf is even this? i guess your another post count whore -- @jockie-he didn't miss them, watch more careful. -- try: function setElementSpeed(element, unit, speed) local unit=(unit == "kph") and 161 or 100 if (speed == nil) then speed = 0 else speed = tonumber(speed) end local x,y,z = getElementVelocity(element) local diff = speed/((x^2+y^2+z^2)^0.5*unit) setElementVelocity(element,x*diff,y*diff,z*diff) end addCommandHandler("sspeed", function (player,_, arg1) local veh = getPedOccupiedVehicle(player) if (veh) then setElementSpeed(veh, "kph",arg1) else outputChatBox("You have to sit in vehicle", player,255,0,0) end end )
  5. karlis

    HLSL help

    oh true, but doesn't work with fix either. strange that debug script didn't output compile error.
  6. karlis

    HLSL help

    sorry, i know its noobish to bump, but really theres noone that understands HLSL?
  7. karlis

    Problems

    I DON'T CARE ANYMORE! EDIT: as he edited the post, just fyi, this is reference for him saying the same thing when we say his attitude is bad.
  8. no, just passing another alpha in pixel shader, and enabling alpha blending technique.
  9. how about finding a veh that center of mass is at 0,0,0 and making it uncollidable/invisible and then attaching it.after that change velocity of the vehicle to move it, and should be fine.
  10. karlis

    Player Control

    he just want to show/explain in the server and i already described it pretty plain, its too long for me to write it for you.
  11. karlis

    Player Control

    you need to bind one player's key serverside, then send the keystate to the client of 2nd player, to setPedControlState for the player clientside.
  12. and I take it you know well HLSL be waitin' for a resource from yer or a proof of this possibility so far i did not manage to make any of shader functions work properly but it will be amazing i have to say that i didn't as well, seems that the errors are not outputting in debugscript like they used to. and whats worst is it seems noone(almost) understands it well, and i dont have anyone to get help from .
  13. karlis

    Hunter Alert

    most common bug out here: mixing clientside functions with serverside functions(or serverside versions of function)
  14. objects can be semi-transparent from 1.1 onwards, you just will need to make pretty easy shader for that.
  15. karlis

    Hunter Alert

    server: addEvent("onPlayerPickUpRacePickup", true) addEventHandler("onPlayerPickUpRacePickup", getRootElement(), function(_, pickupType, vehicleModel) if pickupType == "vehiclechange" and vehicleModel == 425 then outputChatBox('[HUNTER] '..getPlayerName(source)..' has reached a Hunter!',getRootElement(),255,0,0) triggerClientEvent("playHunter",getRootElement()) end end) client: local image = guiCreateStaticImage( 0.2, 0.1, 0.5, 0.1, "hunter.png", true ) guiSetVisible(image,false) function HNEnd() guiSetVisible(image,true) setTimer(guiSetVisible, 2000, 1, image, false) end addEvent("playHunter",true) addEventHandler("playHunter", getRootElement(), HNEnd)
  16. he didn't get the value, he just manipulated the nos by turning it off by re-adding the upgrade.
  17. he wants to know when nos is ON, ACTUALLY BOOSTING, not INSTALLED.
  18. i think that'll do it, from 1.1 onwards. NOTE: knowledge of HLSL and way to find nearest bone for each pixel is needed. getPedBonePosition() engineApplyShaderToModel()
  19. you will need to attach something to the weapon bone, and then cancel bullet effect and most likely create a projectile
  20. but you cant tell, is it on or off.
  21. you cant, you could only reequip it to turn it off.
×
×
  • Create New...