![]() |
Disabling Classic-Style swords?
Alright so, I want to disable Classic-Like swords on my server.
Example: Era. They have guns and when you click S, a sword doesn't hit. I want my server like that because I have future plans for different weapons. I want it so you can kill, and get hurt, and everything. Just disable the whole S for sword thing. I'm not sure if it would go into server options or not, So that's what I need help figuring out as well. P.N. I would have looked it up, But I have no idea how to briefly explain it. |
Era uses a custom movement system.
You can disable the sword with something like replaceani("sword", "idle"); but I'm not sure that this is still the preferred way as it has some unintended consequences. |
Using that, I tried it as a test run under weapons. But it doesn't seem to work?:
function onWeaponFired() { if (weaponfired) { setani("swim"); replaceani("idle","swim"); replaceani("walk","swim"); } } Doesn't work o.o |
Quote:
|
As i said, I was using it as a test. It still doesn't work.
|
Quote:
|
Setting the sword power to 0 should be an easy hack to disable it, but definitely not recommended. Write a movement system.
|
CBK,
I think i've listed quite clearly now that the script I listed was a test, Not the actual thing to disable since it doesn't even work anyways. All I need is how to fix the script I have listed. From there, I can work my own way towards disabling swords. Get it not?{o}.{o} |
Quote:
On Zodiac we use this (to disable nearly everything): -System: PHP Code:
http://wiki.graal.net/index.php/Enablefeatures http://wiki.graal.net/index.php/Showstats Then we have custom systems to trigger WeaponFired/Cast on weapons. |
Quote:
Quote:
//#CLIENTSIDE function onCreated() { showstats(0x200); //Inventory NPC's enablefeatures(allfeatures-4); // Disabled S and D disableweapons(); } The problem is, Now I can't use my inventory (Q) and I can't use items (D) Would you know how to fix this? I've been looking into it but can't seem to figure it out. |
Quote:
Quote:
Quote:
PHP Code:
Put that in some system weapon that all players have. To enable Q (not positive if it works when weapons are disabled—test it), don't remove it from "allfeatures" in your enablefeatures. See here. |
Put your code in PHP tags.
PHP Code:
|
Quote:
|
Quote:
|
| All times are GMT +2. The time now is 02:31 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.