Author Topic: Script Core Suggestions  (Read 60720 times)

0 Members and 1 Guest are viewing this topic.

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: Script Core 2.6.4 Suggestions
« Reply #40 on: June 03, 2008, 02:25:50 pm »
GetPlayerStat(Id, 'Port'): integer; relating to ForwardClient

Offline NTxC

  • Major(1)
  • Posts: 34
  • Scripter
Re: Script Core 2.6.4 Suggestions
« Reply #41 on: June 04, 2008, 08:17:34 am »
LockPlayer(ID: byte; Lock: boolean);
You can already do that.

How can I? LockPlayer doesn't work. :(

also:

RenamePlayer(ID: byte; Name: string);
:[ NT-Online Server Mod Coming Up! ]:
________________________________
Featuring:
- Admin System with dynamic ranks and privileges...
- Duel System...
- Reward System - earn rewards for your frags...
- CVARs - configuration variables - to make the server administering easier...

... and more! Coming soon!

Offline sai`ke

  • Camper
  • ***
  • Posts: 318
  • Can't be arsed to remove christmas avatar
Re: Script Core 2.6.4 Suggestions
« Reply #42 on: June 04, 2008, 09:32:33 am »
More descriptive error messages than Invalid Opcode or out of Global Vars range would be nice.

Probably a lot of work since the scripts are probably compiled into bytecode before running, but some more extensive debugging tools would be nice for rare bugs that are hard to reproduce. Like a variable name the bug is associated with.

Perhaps fix some compatibility issues regarding the crazy access violations on many OSes?
#soldat.ttw #ttw.gather --- Quakenet!
http://ttwforums.com

Offline xmRipper

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 742
    • Macellan
Re: Script Core 2.6.4 Suggestions
« Reply #43 on: June 07, 2008, 01:53:38 pm »
- "Script Packages" may be sent to the Client containing some WAV files that the server can then command the client to play. More types of files will be added gradually.

Suggestion:
X, Y coordinates for playing sound. so we can make 3D effect :P
CoFounder / CTO @ Macellan
Founder Turkish Soldat Community

Offline spkka

  • Camper
  • ***
  • Posts: 469
Re: Script Core 2.6.4 Suggestions
« Reply #44 on: June 08, 2008, 08:01:52 am »
A option to hide messages like (player) joined the game, (player) left the game

Offline xmRipper

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 742
    • Macellan
Re: Script Core 2.6.4 Suggestions
« Reply #45 on: June 08, 2008, 08:51:57 am »
if it possible, make the OnPlayerSpeak as a function.
and result is Text.
CoFounder / CTO @ Macellan
Founder Turkish Soldat Community

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: Script Core 2.6.4 Suggestions
« Reply #46 on: June 08, 2008, 08:57:20 am »
function OnPlayerSpeak(const Id: byte; var Text: string): boolean;
begin
  Result := false;
  if Text[1] = '!' then begin
    Result := true;
//do stuff
    exit;
  end;
  Text := StrReplace(Text, 'fuck', '!@#$');
end;

Offline Frenchie

  • Camper
  • ***
  • Posts: 358
  • SoldatHQ
Re: Script Core 2.6.4 Suggestions
« Reply #47 on: June 10, 2008, 01:02:32 am »
Don't think anyone posted this...

Ability to draw a box with positioned text.
Eg: DrawBox( TopLeft corner, Bottomright corner, colour)
PosText ( X Pos, Y Pos, String)

This feature would have unlimited possibilites in scripts.
(ctf, inf, htf...) You could have a box above flag caps representing overall team wins
(tw, zombie, race....) You could have a box which lists time before a specific event.. such as in tw an airstrike or backup arrives, zombie.. time till cure arrives, race.. time before slowest player in race gets spectated.. And Much more
(hexer, miraclemod, an rpg thing...) Could list number of spells you have obtained in specific classes
(cs, a script with a money system..) Could list how much money you have/ list weapons you can afford/list weapons you currently have

It is a small feature which would allow scripts to integrate better with soldat itself

Please read this ideaEnesce,
 I just don't know how much work you would have to put into the client though... (But 1.5 is around the corner...)
Soldat Lobby Avec Players -New Release! - Updated AGAIN!


Offline JFK

  • Camper
  • ***
  • Posts: 255
    • My TraxInSpace Account
Re: Script Core 2.6.4 Suggestions
« Reply #48 on: June 10, 2008, 06:05:29 am »
LockPlayer(ID: byte; Lock: boolean);
You can already do that.

How can I? LockPlayer doesn't work. :(


I know were not supposed to comment each others ideas, but since im not the first one to comment on this: i think that XM means that you can keep a player on its position by using MovePlayer(ID, x, y). However the player will still be able to move, so you'll have to call the procedure as many times as possible per second. If you do this, for example, in mid air, a player will constantly fall and get picked up again and the player doesn't actually 'freeze'.
I think LockPlayer would be a nice function and not hard to implement. Would be nice if it worked for bots also.. and moveplayer for bots..

edit:
now that i think of it, very great that we'll get gravity modifiers, but it would be totally awesome if we will be able to adjust the gravity PER PLAYER. Something like:
Code: [Select]
SetGravity(ID: byte, Gforce: Double); ID to zero for all players, ofc.
GetPlayerStat(ID, 'Gravity'); //would then return a double
then you could pretty much freeze a player in mid air btw...
« Last Edit: June 10, 2008, 06:11:06 am by JFK »
Come join: EliteCTF
Listen to: My Music

Offline Rampage_Terranius

  • Major
  • *
  • Posts: 69
  • The Strategist
    • Soldat Noob Servers
Re: Script Core 2.6.4 Suggestions
« Reply #49 on: June 10, 2008, 10:31:12 am »
what i would love to see (although i dont think it is possible) is separate weapons.ini files that can be loaded for different players this combined with leveling scripts etc could bring some very cool server scripts

LoadWeapon(ID: byte; Text: String);
ID is obviously id of player to load the .ini with the weapon stats
String would be what the file is called


so you could use it like
if Players[ID].Level = 1 then LoadWeapon(ID, 'LevelOneWeapons.ini')
if Players[ID].Level = 2 then LoadWeapon(ID, 'LevelTwoWeapons.ini')

so you could have different scripted level weapons

Offline xmRipper

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 742
    • Macellan
Re: Script Core 2.6.4 Suggestions
« Reply #50 on: June 11, 2008, 05:40:30 pm »
function OnPlayerSpeak(const Id: byte; var Text: string): boolean;
begin
  Result := false;
  if Text[1] = '!' then begin
    Result := true;
//do stuff
    exit;
  end;
  Text := StrReplace(Text, 'feck', '!@#$');
end;

wtf is that ? >_>
CoFounder / CTO @ Macellan
Founder Turkish Soldat Community

Offline Neosano

  • Camper
  • ***
  • Posts: 253
  • IIAWAK!
Re: Script Core 2.6.4 Suggestions
« Reply #51 on: June 13, 2008, 04:06:07 pm »
xmRipper, possibly it's word filter..
NTxC, check out my Freezer in scripting releases

and one more thing... i have real problems with Weapon list menu in my mod.. so..
HideWeaponList(ID:byte); - hides weapon list if it is on player screen.
KAWAAAAAAAIIIIIIIIII

Offline xmRipper

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 742
    • Macellan
Re: Script Core 2.6.4 Suggestions
« Reply #52 on: June 13, 2008, 04:16:57 pm »
xmRipper, possibly it's word filter..
Nah. That will not work.
CoFounder / CTO @ Macellan
Founder Turkish Soldat Community

Offline PorN

  • Major
  • *
  • Posts: 55
Re: Script Core 2.6.4 Suggestions
« Reply #53 on: June 19, 2008, 09:02:17 am »
for deathmatch survival,
if anyone type !radar than the server shows where u can find all other living players

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: Script Core 2.6.4 Suggestions
« Reply #54 on: June 19, 2008, 05:28:35 pm »
functions to draw stuff on the radar on a Soldat client (time, or create / destroy (resulting an id))
function DrawBox(X1, Y1, X2, Y2: single; Colour: longint): byte;
function DrawPos(X, Y: single; Colour: longint);
procedure DestroyDraw(Id: byte);
things like that

X, and Ys are on map position

would help server players find scripted locations
If possible, setting alpha so that.. well, heres an image:
left side would help bunches more than right side for the way I have locations setup..
(maybe a depth thing too, so u can draw behind the polys on the radar)

Offline xmRipper

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 742
    • Macellan
Re: Script Core 2.6.4 Suggestions
« Reply #55 on: June 19, 2008, 08:32:55 pm »
procedure BulletTime(blabla: boolean);

true = turns on bullettime mode.
false = turns off bullettime mode.
CoFounder / CTO @ Macellan
Founder Turkish Soldat Community

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: Script Core 2.6.4 Suggestions
« Reply #56 on: June 19, 2008, 10:06:27 pm »
procedure BulletTime(blabla: boolean);
(or a server command, and then Command('/whatever 1/0')

Offline xmRipper

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 742
    • Macellan
Re: Script Core 2.6.4 Suggestions
« Reply #57 on: June 20, 2008, 12:00:17 am »
if it possible;
procedure ChangeSkin(ID: byte; Hair, Shirt, Pants: longint);

(i remember, someone was suggest that before)
« Last Edit: June 20, 2008, 07:16:51 am by xmRipper »
CoFounder / CTO @ Macellan
Founder Turkish Soldat Community

Offline sai`ke

  • Camper
  • ***
  • Posts: 318
  • Can't be arsed to remove christmas avatar
Re: Script Core 2.6.4 Suggestions
« Reply #58 on: June 20, 2008, 05:57:06 am »
An option to be able to dump all the variables in memory upon access violation.
#soldat.ttw #ttw.gather --- Quakenet!
http://ttwforums.com

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: Script Core 2.6.4 Suggestions
« Reply #59 on: June 20, 2008, 11:47:35 am »
Making it so TCPAdminPM doesn't write in the console (maybe as an option for the server); sometiems u goda send weird characters to a bot connected through as an admin that don't look so good when looking at the server through an admin program..