Posts: 11
Threads: 4
Joined: Jun 2012
Reputation:
0
03-01-2013, 11:30
(This post was last modified: 03-01-2013, 11:33 by lammv.)
Can somebody answer the two questions?
1. How can I make sniper rifles shoting without bullet's spread, when players dont use scope.
When a player shots from sniper rifle using scope there is no bullet's spread. The sniper shots accurately. But without using sniper's scope there is a huge bullet's spread. How to remove it?
(Not a cheat. Just a mod for everyone in my server)
2. How can I prevent anybody join to axis team in my server in the middle of the game. Maybe there is some restriction likewise if a server is team balanced nobody can join to the team where players are in majority. The button of the team is not active. So you have no choice to join to the second team.
So I would like to restrict my team for example for 6 players. Maybe there is a possibility to decieve the game and tell it the maximum quantity of players are exceeded
Thanks.
Posts: 285
Threads: 15
Joined: Nov 2011
Reputation:
12
Second is possible but not first
Posts: 76
Threads: 5
Joined: Sep 2012
Reputation:
2
03-04-2013, 09:46
(This post was last modified: 03-04-2013, 09:47 by yokai134.)
if(count(axis) > count(allies))
client.team = team.allies
else
client.team = team.axis
That would be to see if there are more Axis players than Allies, as well as you can do a version thats vice versa.
Count is a method that grabs all players, adds up all players on a team and returns an integer.
You'd use that if/then statement with the OnPlayerSpawn or OnPlayerConnect
Posts: 76
Threads: 5
Joined: Sep 2012
Reputation:
2
You cannot modify a weapons characteristics, that's hard coded into the game.
The code I posted, doesn't deactivate buttons but just forces them on the opposite team if the team they are trying to join has more players and the other or a specific number.
Posts: 5
Threads: 0
Joined: Dec 2012
Reputation:
0
03-05-2013, 23:04
(This post was last modified: 03-05-2013, 23:09 by Diskretor.)
Dear, yokai134.
2) We are using old version of server addon.
So, there are no "Team" property on the ClientServer Structure.
Even if I will use a new version (but I will not for some reason) are you sure that Team property is not Read-only?
There must be another way... isn't it?
2.1. But changing of the team and preventing to join the team is a different things.
For example, when the balance is ON and Allies have a maximum players, the button for joining the team is not active. How can I realize it in my plugin?
2.2. Maybe, there are a possibility to FILL all empty slots of the team, that the server thinks this team are already full?
1) Sniper bullets spread.
All weapon's settings are store in the memory. So, it can be change by direct write. Just need to know what the address and value.
archit, why do you think this is impossible?
2) P.S. Can I modify the memory to force changing the team? How this code looks like?
Posts: 76
Threads: 5
Joined: Sep 2012
Reputation:
2
03-06-2013, 00:33
(This post was last modified: 03-06-2013, 00:36 by yokai134.)
The ServerAddon version you should be using is at least 1.414 as thats what I have been using.
Client.Team can equal: Teams.Allies, Teams.Spectator, Teams.Axis, or Teams.FFA
As for disabling the button no you cannot. My code is so if they try to join a team with more players than specified or more than the opposite team it forces them to the other side.
As to tell the server that one team is full when its not cannot be done, however specifying a limit of players or if the team theyre joining has more than the opposite is just as effective.
Are you writing this for Teckno? 4D1 IW5? or Steam?
Posts: 5
Threads: 0
Joined: Dec 2012
Reputation:
0
yokai134, thank you. I'm understand your code pretty well.
I asked you about limit that must be set to a one of the team because a plugin's purpose to make some unbalance.
That's why I think there is a way to deceive a server with adding some "bots". Changing the count of players in your code is not an option because of my old Addon version. New Addon needs a new version of a game. So, update will cause problems with cheaters. New cheats released just for new ver. of game, but willn't work on my server.
Maybe, I will try to move new functions from the last Addon to a plugin.
Posts: 1,741
Threads: 93
Joined: Mar 2012
Reputation:
26
Why not give the steady aim perk and then modify it's dvar value?
Do not take life too seriously. You will never get out of it alive.