Jump to content

Slothman

Retired Staff
  • Posts

    2,963
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Slothman

  1. when you play outside of the bounds of the regular gta world, it can have some odd side effects. just a heads up.
  2. I updated the resource, go download the latest version for the fix. thanks to everyone helping eachother out in the meantime.
  3. updated the resource. the stuff that was causing the issues was something to make it compatible with an firstperson script. it was just easier to remove that barely used feature. Thanks for helping people in the meantime jesseunit, much respect.
  4. hard to say what it might be without seeing the script. if you keep checking the position of the ped, does it update? attached objects used to have issues with updating position.
  5. are you just setting ped rotation, or are you setting their aim? also, it seems like peds are shooting the wrong direction somethimes because they twist at the waist, but the bullets still go the right way, is that what your seeing?
  6. the trick is to re-give the weapon when the ped streams in.
  7. topis isnt locked, but was certainly a waste of everyone's time.
  8. I'm not sure what could be the issue then. You can try to press "k" to refresh the flag objects. when you hover your mouse over the flag, do you see the objects description?
  9. this happened today: WHERES MY CROWN?!?!?
  10. step1: in editor, add the Slothbot to definitions. step2: place the flags as waypoints. step3: click "connection mode" button or press g step4: click on the first flag, then click the flag you want to connect it to. step6: for one way connections (paths that only go one way) press h or click "one-way connection" button
  11. the problem is that your setting animations, when setting the control state is the only thing I was successful in making peds or players grab ledges or hop fences. (force the player to jump by setting the jump control state)
  12. you can feel like darth maul, tooling around tatooine. dont feel to bad about not knowing, i think about half the people reading this thread are like "holy crap! really?!?"
  13. murder, death, ...cill ?
  14. thanks, that really got me started. It'll need some back up parts for when the calculations dont make sense (like a player aims too close to a corner) one of the uses for this is to update my grapple script, but this sort of calculation could be used to add things like bullet hole marks, spray tags, blood splatters, etc. so heres part of the script so far: function getPointFromDistanceRotation(x, y, dist, angle) local a = math.rad(90 - angle); local dx = math.cos(a) * dist; local dy = math.sin(a) * dist; return x+dx, y+dy; end function findRotation(x1,y1,x2,y2) local t = -math.deg(math.atan2(x2-x1,y2-y1)) if t < 0 then t = t + 360 end; return t; end grapplegun = 26 --WHICH GUN WILL BE USED AS A GRAPPLE? gunrange = 80 --HOW FAR WILL THE GRAPPLE RANGE BE? function onClientPlayerWeaponFireFunc(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement ) if weapon == grapplegun then if source == getLocalPlayer() then local Point1X, Point1Y, Point1Z = getPedTargetStart(getLocalPlayer()) local lx, ly, lz = getPedTargetEnd(getLocalPlayer()) local len = getDistanceBetweenPoints3D(Point1X, Point1Y, Point1Z, lx, ly, lz) local Point2X = Point1X + (lx - Point1X)/len*gunrange local Point2Y = Point1Y + (ly - Point1Y)/len*gunrange local Point2Z = Point1Z + (lz - Point1Z)/len*gunrange local Hit, HitX, HitY, HitZ = processLineOfSight(Point1X, Point1Y, Point1Z, Point2X, Point2Y, Point2Z) -- first line of sight if Hit then local LineAngle = findRotation(Point1X, Point1Y, Point2X, Point2Y) local LineDistance = .2 local Point3X, Point3Y = getPointFromDistanceRotation(Point1X, Point1Y, LineDistance, LineAngle - 90) local Point4X, Point4Y = getPointFromDistanceRotation(Point2X, Point2Y, LineDistance, LineAngle - 90) local Hit2, Hit2X, Hit2Y, Hit2Z = processLineOfSight(Point3X, Point3Y, Point1Z, Point4X, Point4Y, Point2Z) -- second line of sight, directly left if Hit2 then angle = findRotation(HitX, HitY, Hit2X, Hit2Y) end createObject ( 1318, HitX, HitY, HitZ ,90, 0, angle ) end end end end addEventHandler ( "onClientPlayerWeaponFire", getRootElement(), onClientPlayerWeaponFireFunc ) the problem with this is that it seems to jump 180 degrees when at certain angles. this would definitly be a problem for my purposes. any advice?
  15. you need to show some of the script thats giving you the trouble, and maybe describe what your trying to censor.
  16. I am need of a way that a client could calculate the angles of a surface. i need to be able to take 2 xyz coords and detect if an object is between them (easy so far using processlineofsight) but if there is something blocking the line, then i need to know its surface angle. I imagine this would be done by measuring the coords of 3 or 4 parralell lines of sight and using them to calculate the angle of the item. this is where im stuck. I threw together this diagram to help you see what i mean: keep in mind it needs to be 3d, not 2d, and the angles would be needed for placing objects. any pointing in the right direction would be appreciated from any math whizzes
  17. whats triggering this function, and more to the point, how is it getting "source" ?
  18. sounds like a fun gamemode, even though it smells a little racist
  19. very very nice. I'm impressed
  20. people are looking into the linux crashing thing, something of that nature is beyond my abiility to help with.
  21. most of the ac kicks are due to conflicting scripts, like another script preventing or altering damage to players. when the zombies attack.
  22. thats something someone would be able to script. keep in mind that the zombie free zones only mean that no zombies spawn there, it doesnt automatically clear out existing zombies and it doesnt prevent them from walking into the zone.
  23. theres also a few object that create smoke clouds simply by placing them. the fog machine, and theres a fryer (object 4571) that creates a big cloud.
  24. sounds like reasonable improvements to me. btw, i strongly suggest ou freeze the peds,set their voices to silent, and make sure they cant be killed.
×
×
  • Create New...