News | Forum | People | FAQ | Links | Search | Register | Log in
General Abuse
Talk about anything in here. If you've got something newsworthy, please submit it as news. If it seems borderline, submit it anyway and a mod will either approve it or move the post back to this thread.

News submissions: https://celephais.net/board/submit_news.php
First | Previous | Next | Last
Taking A Players Weapons 
I seem to remember some discussion about taking weapons from a player between maps in an episode (or something like that).

Can someone point me in the right direction please? 
Re: Accessibility 
Removing Weapons 
The essential part of the hack is to create a trigger with classname InitTrigger and touch door_touch. You can then set the trigger's items to the bitflags of the weapons you want to remove.


There are a number of extra things that you may need to workaround:

� The door_touch function will cause crashes without a workaround.

� The function will fail if the player does not have all the items you want to remove.

� If the player is holding one of the weapons you remove, they can still use that weapon until they switch away from it.

� Removing the axe does not behave as you might hope.


The first one is fairly methodical to resolve - you just need some kind of dummy object for the trigger to refer to in the enemy and owner fields. The safest thing to do is create a func_door outside the map, and note its entity number. Then set both enemy and owner to that number.

The second one is also fairly easy to work around. What you need to do is have another InitTrigger entity which the player touches first. This time, use touch BackpackTouch and set items to be all the items you want to remove. The idea is that you give all of the items to the player right before removing them, so that you avoid any problems that might arise. The easiest way to make sure this sequence occurs is to stack the two triggers, and put the BackpackTouch earlier in the entity list.

The third problem is quite thorny. Most of the code that forces a player to change weapons is called when they grab a new weapon. But you will only switch to that weapon if the weapon you are currently holding is your best. If you don't own the weapon you are holding, it will never be your best weapon.

You are okay though, if you are willing to get rid of all the player's ammo at the same time. The trick for getting rid of the player's ammo is to create a BackpackTouch trigger with negative ammo counts. Sadly, the function which bounds the amount of ammo the player can hold only bounds it above, it does not check for ammo counts less than zero. So we have to resort to the same trick as with removing the weapons - give the player full ammo with the first BackpackTouch(which will be correctly bounded regardless of how much he had), then subtract it all off with the second one.

Once the player has no ammo, they will switch to the axe. Since you should always leave the axe item on the player(see below), their current weapon matches their best weapon. You can now give them an item with a further BackpackTouch, and they will switch to that (as long as you give them some ammo for it to boot).

The first sentence of the preceding paragraph actually explains why removing the axe leads to odd behaviour. Once you have no ammo, you always switch to the axe - even if you don't have an axe! However, if the player switchs away from this "magic" axe once they find more ammo or new weapons, they cannot go back to it unless they run out of ammo again. Rather than let the player get into this inconsistent state, just don't remove the axe. 
Versioning Systems 
So I want to setup, or somehow acquire access to, cvs/svn/git repositories so I can conveniently manage some repositories between my home desktop, my laptop, and my linux box at uni. I've seen Beanstalk which is a free, but for multiple repositories I would need to create multiple accounts.

I'm just wondering what everyone else does? 
Tortoise SVN (Subversion) 
The only problem it has, for a Windows / Linux setup at least, is that it recognises the difference between a and A, which windows doesn't.

Can cause the odd screw up, but haven't had any other problems.

CVS is a POS.

Git I've never used.

SVN is free and should allow multiple repositories under the same access as far as I'm aware.

And yeah, using a file repository is light years ahead of messing around with external drives, discs, uploads or email. 
 
git would have the benefit that you would have your "local repository" always with you, where you can check in, branch etc. Then later you would merge to the master. I am not sure if SVN does that too. 
Not Sure I Follow, 
But yeah, it does.

Although merging is only for code - binaries from Max, Photoshop or anything else can't be merged AFAIK. Although nothing stops you from copying out and merging by hand. 
No, It Doesn't 
SVN does not work in offline mode, but obviously, if you have a local repository, you are never offline. While local repositories are still much better than flat files, having offsite repositories is much better since it's like an additional backup and you can easily share your work with others. 
Ok 
 
Ijed 
http://en.wikipedia.org/wiki/Distributed_revision_control#Distributed_vs._centralized

If I understand correctly you could not do a commit to (your local) SVN while being offline. Eg if you are working on a huge text and want to keep it in versioning a DVCS would be useful. It seems much more complicated too though. 
Git Is Okay 
quite fast, but the commands are a bitch to get right. very unintuitive. I can't remember them.

Distributed is nice, local commits are quite an advantage, although i don't get what all the fuzz is about. 
Yes 
You can commit to a local SVN while you're offline. 
Right 
So you all just have your own private server and set it up on there, or what? I'm wondering if I should sign up with Beanstalk, if people recommend another service, or if there's some better option. 
RMQ 
Uses www.Assembla.com 
It Comes With My Host Package 
One-click installs for subversion projects (dreamhost). 
Killzone 2... 
...is official cool, almost a bit too much action though, I barely have time to spot and admire the scenery. 
A Nice Read 
Fucking SONY / Gamestop 
So in October 2008, I purchases a PSP for my fiance and a few days ago, the screen became completely garbled: reboots don't help, resetting to factory defaults doesn't either and there is visible damage on the INSIDE part of the screen.

I took the PSP to the local Gamestop where I had purchased the thing and they told me they would get in touch with SONY and then get back to me. A few hours later I received a call saying SONY is refusing to fix the screen free of charge because according to them, the screen fault was caused by the user. According to my fiance: the PSP was working at home, she put it into her shirt pocket, walked down the stairs, walked 100m to the nearest bus stop, took it out of the pocket and the screen was garbled at this point. I have absolutely no reason to doubt her words as she is generally pretty careful with hardware.

I called Gamestop back again and they essentially washed their hands off the issue saying that they can't do anything if SONY won't take my PSP for a warranty repair and they can only send it in for repairs if I agree to fit the bill for a 115 euro repair charge by SONY. I tried to reason with them using logic: if the PSP screen was hit with something, wouldn't there be some visible damage to the front side of the screen instead of only the inside part? However, according to them, it's not impossible for a screen to only show visible damage from the inner side even if it's hit/damaged by something from the outside. They have however, at least given me an address to another store which can replace my PSP screen for a price of 69 euro (instead of the outrageous 115 euro price of SONY).

SONY refusing to honor warranty: check
Gamestop washing their hands off the issue: check
Fiance absolutely furious that SONY is trying to blame her: check
Me in-between of all this shit: check

I could take the easy way out and just pay the local repair shop 69 euro to replace the damn screen. However, I really don't feel like doing this out of principle: SONY is refusing to honor their fucking warranty. I could take this to the Finnish equivalent of "good business beaurau" but stuff usually takes weeks and often months to get anywhere with them. All meanwhile, my fiance is out of a PSP (which she uses for both gaming and as a music player).

I have, after all this, tried calling SONY's "Playstation support" number again and this time they have now washed their hands off the issue as well and told me that if I want to, I should write a complaint to the finnish "good business beaurau". 
Fuck Sony 
That's pretty horrible Jago. You should try contacting Kotaku or something, let Sony get a shit ton of bad press for screwing over their customers. 
Write Up 
An article shitting on their warranty obligations - read the warranty etc. ask a friend who works in legal matters to clarify anything then get in contact with Kotaku or similar.

Because if they're refusing to honor the warranty then that means they're pretty sure they don't have to, or that it'd cost you too much to press the issue against their army of lawyers.

Upshot being that the warranty probably isn't worth the paper its written on.

To be honest you probably won't get anywhere and will end up paying the 69 euros, but at least its better than just keeping quiet - enough complaints and maybe they will, one day, treat their customers with some respect. 
Or Maybe 
buy a ds for 100 bucks 
DS 
Doesnt play the PSP games we already have, nor can make use of the 8gb memory card we bought, nor is it a particularly good media player. 
 
It has Scribblenauts. 
It Fucks With Sony 
 
Cutting Off Your Nose To Spite Your Face 
First | Previous | Next | Last
You must be logged in to post in this thread.
Website copyright © 2002-2024 John Fitzgibbons. All posts are copyright their respective authors.