Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - aXXo

#16
Support / Re: I need help...
Jul 12, 2017, 11:37 PM
onPlayerRequestClass is triggered when a player scrolls through skins in the spawn screen. This means, that he is obviously not spawned. The position and weapon settings you did inside that event will not work. You need to do it AFTER the player has spawned. So, either do it onPlayerSpawn or after the player.Spawn() statement.

I guess you want a 3 second delay when players respawn on death. An easier approach is to change the Wasted Screen settings. The default wasted screen displays for 4 seconds. By setting it to 7 seconds, you can effectively add 3 seconds without needing any timers.

SetWastedSettings( 7000, 7000, 1, 2, RGB(0,0,0), 1000, 200 );
So, your autospawn is now:
function onPlayerRequestClass( player, classID, team, skin )
{
player.Spawn();  //Force the player to spawn.
//After the player is spawned, now set his position and weapon.
player.Pos = ggpos[ random( 0, ggpos.len() ) ];
player.Disarm();   
local wep = lastwep[ player.ID ];
player.SetWeapon( wep, 500 );
}
#17
Quote from: ysc3839 on Jun 13, 2017, 01:10 AM
Quote from: EK.IceFlake on Jun 12, 2017, 07:26 PMTry? What?

for (local i = 0; i < 100; ++i)
{
    local player = FindPlayer(i);
    if (player != null)
    {
        CreateExplosion(0, 1, player.Pos, -1, true); // not tested
    }
}
Move 'FindPlayer' out of the 'for'. This code will find player for 100 times, which slows down the server.
local player = FindPlayer(i);
if (player != null)
{
    for (local i = 0; i < 100; ++i)
    {
        CreateExplosion(0, 1, player.Pos, -1, true); // not tested
    }
}
Why would he want to blow every player on the server? <omit islam joke>
He's obviously asking for multiple explosion at a player's loc.
#18
I need a huge chicken burger. Lots of lettuce, lots of cheese, no tomatoes.
#19
From my practical VCMP experience, I'd recommend not to bother too much about script/server lag. The average VCMP player lags like shit, so if there is a lag issue, the bottleneck is his own Internet connection/PC.

I've seen scripts writing data in a loop every second, with 20+ players online. No complains about lag(EAD).
In Vicewar, I INSERT'ed every kill straight to MySQL. The event had 25k kills in 24 hours with 45 players average online. Players were so busy FPS lagging, that no-one complaint about script lag(if any).
#20
Quote from: jUan* on May 24, 2017, 08:41 PMcool and mind fixing ghost shots so they're able to be made as they were back in the older versions? :D
you mean breaking?
Ghost shooting was a game breaking bug, which ruined game modes where ammo is limited. I'm glad it is hard to pull off in 0.4
#21
Ban evading is very bad.
#22
I have a theory.

Maybe there is a school in Pakistan, with a programming teacher who added Squirrel Scripting as the curriculum for little kids. So, to get grades or finish their assignments, these kids ask here for the scripts.

What the fuck are you gonna do with the script, even if somehow you get it?
#23
Off-Topic General / Re: Scripting challenges!
Apr 13, 2017, 07:24 PM
print("          * ");
print("         * * ");
print("        * * * ");
print("       * * * * ");
print("      * * * * * ");
print("     * * * * * * ");
print("    * * * * * * * ");
print("   * * * * * * * * ");
print("  * * * * * * * * *");
#24
Servers / Re: [0.4] Argonath RPG 3.0
Mar 27, 2017, 05:55 PM
For role-playing an extermist/rebel, a player needs to role-play a solid background. This is the specific role, where you need to walk an extra mile before you can kill somebody. If you blow up the first person you see on the server and claim it was an act of terrorism, it is just a poor excuse to deathmatch.

Some pointers, I could give are:
- Open an extremist group on the forum, recruit some members so admins would know that you exist and what you stand for.

- Make some demands. Political demands, demand to pass a law, lower taxes, construct a mosque or whatever. Even terrorists in real life justify their cause. If you want to roleplay a terrorist, you have to justify it. Call the Chief of Police, or make a peaceful rally/parade to get the message across.

- If your demands were ignored, you can take the violence route. Take claim of a bomb blast, write a blackmail note in a crate and drop it in the VCPD HQ. There's a lot of stuff that you can do if you stretch your imagination.
#25
Quote from: WiLsOn on Mar 22, 2017, 08:57 PMHow it will work?

The tournament will be a knockout system, if a team loses they are out from the event.

How teams will be made?

Teams will be formed by randomly picking 5 players from the applicant pool. Applicants will be seeded into skill tiers and randomly picked when forming a team, so that each team has balanced numbers of high skill players.

Where players will be chosen?

There will be a selection day hosted before the event. A randomization script will draw the random teams and transparently echo the names on a public IRC channel.

How will a match be played?

Each match consists of 4 A/D rounds, played in the following fashion:
- Script chooses one base randomly.
- Team Red defends the base, Team Blue attacks.
- Team Blue defends the base, Team Red attacks.
- Script chooses another base randomly.
- Team Red defends the base, Team Blue attacks.
- Team Blue defends the base, Team Red attacks.

EAD Forum
Applications
#26
Servers / Re: [0.4] Argonath RPG 3.0
Mar 16, 2017, 08:35 PM
Quote from: vito on Mar 16, 2017, 03:37 AMBeing a rebel to explode cars was a pure roleplaying from my side.
If we don't put a leash on rebellious killings, this will turn into an Al-Qaeda simulator which would prevent any sort of role-play happening on the server. The rules exist for a reason and must be upheld at all times.

You want things to change, post a suggestion here.
For your personal unban, make an application here.
To report the administrator who banned you, send an E-Mail to [email protected]
#28
Is there any dimension limit on custom Map Markers?
If not, you could create a big 50% Opacity colored square block and CreateMarker it anywhere. Though, I think it will probably hide player blips near it.
#29
Widescreen changes a player's field of view. VCMP detects a player getting hit through their client's field of view. Hence a modified field of view would change a player's perspective of getting shot.

That means, players running their game on wide screen are harder to kill, so they have an advantage. This is why the feature is blocked and any attempt to make it work through fishy techniques is likely to get you banned from servers.
#30
Quote from: vito on Feb 24, 2017, 08:45 PM
Quote from: aXXo on Feb 24, 2017, 08:32 PMHe wants a competitive game mode, with a balanced game play
Nope. He wants just playercount and won't join empty server. And he will join to any shitty server if it has alot of players online.
There must be something about the shitty server which attracted the first player. Then the first player attracted the second player and so on. Playercount is all about catering to the needs of a few individuals, until it grows into a group.

It's quite a lot of work to script multiple game modes and then push updates to all of them consistently.  It would suck for all that work to go in vain with 0 player count.