Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → Weird error
Weird error
2003-01-07, 7:30 AM #1
Ok, here's the deal: This is a weapon cog for a DBZ mod of mine. It naturally uses new templates, which means it also uses a trigger cog to work.

The template always shoots straight from the player real reliable like, but the problem is that, even though I define player as getlocalplayerthing() in the fire: message, about 50% of the time it will play the sound and animation for someone else.

Like, if I'm in multiplay with one other person, half the time I'll shoot and it'll work fine, but the other half of the time I'll shoot and the bullet just sort of appears in front of me, and the other guy plays a sound and animation.

The cogs are kind of hefty, so I won't post them, but I'm online at IRC.Holonet.org in #dbztdir, and I'm on AIM as XxCHeCkSuMxX.

Any help is REALLY appreciated.

This post is sort of aimed at GBK, btw.
2003-01-07, 1:32 PM #2
GetLocalPlayerThing() only gets the host. Use GetSenderRef().

------------------
The Sniper Missions. Current project, The Sniper Missions

The Magician Saber System.
Major projects working on:
SATNRT, JK Pistol Mod, Aliens TC, Firearms

Completed
Judgement Day (HLP), My level pack
2003-01-07, 2:35 PM #3
NO!!! It cant. I have working mp versions using GetLocalPlayerThing();. It must work [http://forums.massassi.net/html/eek.gif]
Team Battle.
2003-01-07, 3:30 PM #4
GetLocalPlayerThing() does work for clients in multiplayer as long as the cog has been flagged as local.

Raynar
Pagewizard_YKS: "making your own lightsaber doesn't make you a nerd... "
Raynar - the man with a 10.75" ePenis
2003-01-07, 3:33 PM #5
Yup, Raynar's right. I remember my strange experiances with that function... Like my cliffhanging system where if I tried to grab onto the ledge, wherever the host was, he would play the animations and all that jazz. [http://forums.massassi.net/html/eek.gif]

It was also kind of funny in my old SN jump pad where I would hit the pad and the host would fly into the air. [http://forums.massassi.net/html/biggrin.gif]
Bassoon, n. A brazen instrument into which a fool blows out his brains.
2003-01-07, 4:15 PM #6
hmm, ok. Now that I read some of my cogs that could explain why making them local with the 0x240 flag and then using triggers to sync them worked.

Back-end.
Team Battle.
2003-01-07, 5:22 PM #7
I WILL try that deal about changing it to something other than localplayerthing(), but what I've found is that, if you hold the button down, it only screws up the FIRST shot, all shots after it work fine unless you let go of the button and start over, then the first shot again.

Thanks for your help so far guys, it's given me insight.

↑ Up to the top!