2000 if you can make this unstopable
|
RacerX Gullwing
Magic Rabbit
Join date: 18 Jun 2004
Posts: 371
|
07-27-2005 07:52
no responses for days so i put the new amount for solving the problem for me with setpos if you can givme the formula to move a ball in an arc aproxamatly the way im doing it here with phisics I'll need a way to detect when it intersect with a casle but the 5000 is just for the directional arc that mves the ammo approxamatly the same as the phisical one
OK seems like this might be impossible for some reason but I have a catapult it rezzes a flaming ball and almost goes into slow motion on its way to it's target. Its buoyancy is like .75 and physics enabled, but really only using the gravity part of physics to travel it's headed for a castle then for no apparent reason it stops dead in mid air and then drops straight down like someone in edit mode grabbed it and looked at it then let it go. It's not thiers so there's no reason why they should be allowed to edit it. and I Already added the llSetStatus(STATUS_BLOCK_GRAB, TRUE); to it, which by the way is worded exactly opposite of the way you'd expect it to work. I'd think putting that in your script made the prim grabbable. But It does the opposite and only works if thier not in edit mode. I've been driving before and had someone check out my transpo in edit mode it stops you in your tracks. I also have seen things that don't seem to care if your editing them or not there on the move and editings not gonna stop them, how do I put that in my arrow like projectile? anyone? Or Identify the grabbee so that person can be disqualified, or ousted.during the event.
|
Jesrad Seraph
Nonsense
Join date: 11 Dec 2004
Posts: 1,463
|
07-27-2005 08:54
I seem to remember that SetPos won't be stopped by something as trivial as someone in Edit mode  But then, of course, non-physical movement ain't quite as agreable...
_____________________
Either Man can enjoy universal freedom, or Man cannot. If it is possible then everyone can act freely if they don't stop anyone else from doing same. If it is not possible, then conflict will arise anyway so punch those that try to stop you. In conclusion the only strategy that wins in all cases is that of doing what you want against all adversity, as long as you respect that right in others.
|
Christopher Omega
Oxymoron
Join date: 28 Mar 2003
Posts: 1,828
|
07-27-2005 11:46
Have the object detect when it is stopped by using a timer that checks its velocity. When it detects this, have it continually apply force in the direction its *supposed* to go, until it no longer detects that its selected. You're going to have to use some ballistics math for the latter, to get the correction looking realistic. ==Chris
|
Gurgon Grumby
Registered User
Join date: 2 Dec 2004
Posts: 24
|
07-27-2005 11:56
Correct me if I'm wrong, but using physical movement, no amount of force will overpower the edit function which stops you in your tracks. The only option I can see around that is to detect the velocity as Christopher Omega suggests and have the object become non-physical and set its position if it is stopped from physically moving, since being in edit mod doesn't stop objects from using set pos to move...
|
RacerX Gullwing
Magic Rabbit
Join date: 18 Jun 2004
Posts: 371
|
07-27-2005 15:30
Ya that's about what I thought, Can some super genius out there come up with a chunk of script that takes over like that, i'll put 3000 on it and I'll give you two a 1000 each for your parts of the solution. oh heres the code thatrezzes it rot = llGetLocalRot(); // Get current direction vel = llRot2Up(rot); llRezAtRoot( ammo_name, llGetPos() + <0,0,1>,speed * (vel + <0,0,1>),rot, 42); and the projectile is set to to llSetBuoyancy(0.75); hope thats helpful
|
Rayve Mendicant
Scripts for L$5 billion
Join date: 12 Mar 2005
Posts: 90
|
07-27-2005 15:40
yay, physics calculus!
_____________________
_______________________ Rayve Mendicant Second Evolution "Darwin ain't got nothin' on this"
|
Rickard Roentgen
Renaissance Punk
Join date: 4 Apr 2004
Posts: 1,869
|
07-27-2005 16:08
Someone pointed out recently that objects actually collide with the region border as they cross. maybe try applying the last known impulse when it's detected as having stopped?
|
Jesrad Seraph
Nonsense
Join date: 11 Dec 2004
Posts: 1,463
|
07-28-2005 01:45
If it's so crucial that no amount of cheating / editing can stop the projectile, you are better off using entirely non-physical movement set to simulate physical. I'll look into this a bit.
_____________________
Either Man can enjoy universal freedom, or Man cannot. If it is possible then everyone can act freely if they don't stop anyone else from doing same. If it is not possible, then conflict will arise anyway so punch those that try to stop you. In conclusion the only strategy that wins in all cases is that of doing what you want against all adversity, as long as you respect that right in others.
|
Jillian Callahan
Rotary-winged Neko Girl
Join date: 24 Jun 2004
Posts: 3,766
|
07-28-2005 05:24
Pardon this that may be a tangent: Considering the platform and its intent, does it not strike anyone as a bug that it is possible to halt other's objects by grabbing them? Shouldn't STATUS_BLOCK_GRAB prevent this?
|
Champie Jack
Registered User
Join date: 6 Dec 2003
Posts: 1,156
|
07-28-2005 06:58
From: Jillian Callahan Pardon this that may be a tangent: Considering the platform and its intent, does it not strike anyone as a bug that it is possible to halt other's objects by grabbing them? Shouldn't STATUS_BLOCK_GRAB prevent this? Yes! If you arent the owner, you shouldn't be able to select edit from the pie menu, like some of the other actions are blocked - Take, Take Copy, Return, Delete, etc. If LL wants SL to be a development platform, we need these tools
|
RacerX Gullwing
Magic Rabbit
Join date: 18 Jun 2004
Posts: 371
|
07-28-2005 08:35
Yes exactly does seem like a bug, just searched proposals in the voting system it's not there yet, Found one similar where someone wanted sl to add dampening to the setpos to make it look smoother like physical movement because that's what they had to resort to to prevent cheating. after reading 10 or so adding a proposal to the voting system looks like a waste of time. It's up to nearly 500 proposals in there, last one Lindens commented on was the pony thing #124. I'd like to have this be an event next week or sooner as it is pretty fun to play, Say's everyone who's tried it. I don't know if I want to add the additional calculating time to this. Its was virtually lag free when we tested it with 6 people playing It's set up for 8 players and with all 8 catapults firing at once you can still move about with no distortion and I had my view set at 124. but the castles are only 70 meters away from each other at the farthest point. Still will pay 5000 if someone does the math for me so I can see what that looks like. That's like 20 bucks US
|
Kanker Greenacre
Registered User
Join date: 17 May 2003
Posts: 178
|
07-28-2005 16:39
RacerX, does your STATUS_BLOCK_GRAB actually prevent someone else from LEFT-clicking on the object (nevermind right-clicking to edit)? I'm having problems with STATUS_BLOCK_GRAB. Sometimes it seems to work, sometimes not. I've also been trying to find a work-around for the right-click issue, which is just ri-freaking-diculous.
_____________________
Living La Vida Segunda
|
RacerX Gullwing
Magic Rabbit
Join date: 18 Jun 2004
Posts: 371
|
07-29-2005 07:04
Yes does seem to be working I can't grab stuff my alt throws with a left click. I have it set to true. but only tried it about 8 or nine times. Caught it every time with right click. I could catch it on left click when my alt had modify permision. So I turned that off.
I Happend to look at the number of ctive scripts when I had 8 castles rezzed with 22 pieces in each was 1400 active scripts. That's a missleading statistic 1000 were my catles the other 400 were the rest of the sim and mine weren't very active a lot are waiting for a link message and alot had very specific listeners but still a lot of scripts. Not much lag evemnn with all 8 catapults fireing and castles blowing up.
|
RacerX Gullwing
Magic Rabbit
Join date: 18 Jun 2004
Posts: 371
|
08-11-2005 11:23
Candid Lemay Solved this for me finally. Ended up nesting the balls 8 deep inside each other and he wrote me some code that makes a stoped ball rez a new one going abot the same speed and angle. Didn't think there was a solution for this. Paid him the 5000 good job well worth it. Almost ready to make it an event now
|
RyeDin Meiji
Reluctant Entrepeneur
Join date: 15 Mar 2005
Posts: 124
|
Riddle me this
08-11-2005 12:13
Lol, that was quite an ingenious solution!
|