zturtleman / sgfork

Automatically exported from code.google.com/p/sgfork for archive purposes. I do not maintain it. Don't report issues here.
GNU General Public License v2.0
0 stars 0 forks source link

Anti-camp #34

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Overall description of the new feature:
The anticamp patch should solve camp problems by checking if a player is in
the same area for x seconds and then damage him and tell him to stop
camping. Since you can camp in a building, that could be good to damage a
player if he stays in the same stage.
Since players movements are really slow in SG, time before people is
damaged would be increased if he is reloading, being hurt, shooting or if
they are ennemies nearby.

I already did a patch about it that is attached with the issue.

Variables to control the new feature:
g_antiCamp
g_antiCamp_radius
g_antiCamp_damage
g_antiCamp_bot
g_antiCamp_y

Original issue reported on code.google.com by kikc...@gmail.com on 23 Aug 2009 at 2:08

Attachments:

GoogleCodeExporter commented 9 years ago
Added usability flag.

Original comment by igorpana...@gmail.com on 23 Aug 2009 at 7:17

GoogleCodeExporter commented 9 years ago
The link to desing documentation:
http://docs.google.com/present/edit?id=0AdDYiCWRZI__ZGR0enhmejNfMmRjZjg0cmQ3&hl=
en

After the document will be accepted the feature to be implemented.

Original comment by igorpana...@gmail.com on 31 Aug 2009 at 12:59

GoogleCodeExporter commented 9 years ago
updated your doc

Original comment by mortijs-...@yahoo.de on 31 Aug 2009 at 8:40

GoogleCodeExporter commented 9 years ago
Almost all changes are applied to doc.
The doc is updated.
There is remain only a few questions:
The variables to control increasing/decreasing in different states. We would do 
them 
as factor again, but we can't because they depend on player movement. So, 
instead I 
think that we may apply them as more variables:
g_anticamp_factor_<safe, initial, danger, scary, suffer>_<jump, run, walk, 
crawl, 
stand>
But that seems to be 25 variables.. So, any ideas?

Original comment by igorpana...@gmail.com on 1 Sep 2009 at 5:37

GoogleCodeExporter commented 9 years ago
i would make 2 variable-groups:
g_anticamp_factor_<save, initial, danger, scary, suffer>
g_anticamp_factor2_<jump, run, walk, crawl, stand>

in code you just need to multiply them to get the wanted result.

and i updated the doc once more

we still need to do some detailed designing before you start to code

Original comment by mortijs-...@yahoo.de on 1 Sep 2009 at 8:44

GoogleCodeExporter commented 9 years ago
Do you plan to activate anti-camp feature as default in every mode and 
player-role?
IMHO, it should be a default option only for robbers in BR mode. Maybe I'll get 
the
answer from the document mentioned above (have no access).

BTW, would you like this kind of posts in here or rather in forum section?

Original comment by dowos...@gmail.com on 8 Nov 2009 at 11:37

GoogleCodeExporter commented 9 years ago
We at the design stage of the whole anti-camp thing, I mean we didn't started 
to 
implement the feature. We have to finish doc first. So, I think it is better to 
read 
the doc first and then to add comments inside the doc (just take a look as it 
done by 
others) or to discussion board. Not a big deal to add here comments as well 
until 
they are concerned the feature and not just discussion.
Or probably you'll want just to improve the doc. If you are really interested 
in the 
improvements - let me  or anyone else here know and we'll include you to 
project 
members in no time (if you don't afraid of spam ;)), so you'll get the access 
to all 
the docs.
And about anti-camp activation - I never though about initial values. Probably 
I 
would suggest to have them to "off" state and let each admin to activate them 
if 
he/she'll want to. As well as vote options for the stuff. I want to do so 
because 
this thing is created to get spoil-players off the game and I hope that by 
default we 
suggest that we have no-fun-spoil-players. Still I agree, we may let it do as 
you 
suggest. Probably you better to add the comments or whole page about default 
values 
if you wish to the document.

Original comment by igorpana...@gmail.com on 8 Nov 2009 at 9:05

GoogleCodeExporter commented 9 years ago

Original comment by igorpana...@gmail.com on 23 Nov 2009 at 11:44