Author Topic: Script Core Suggestions  (Read 84183 times)

0 Members and 1 Guest are viewing this topic.

Offline amb2010

  • Camper
  • ***
  • Posts: 264
  • Fear the dot ...
Re: Script Core 2.6.4 Suggestions
« Reply #20 on: May 03, 2008, 05:00:46 pm »
Maybe a DrawToMap command that would be basically draw text but you can set it to do it to a part of the map(objective based map like thing :D) Would stay there until removed.
And as the lyrics go in the United State's national anthem: "America, f**k YEAH!".

Offline JFK

  • Camper
  • ***
  • Posts: 255
    • My TraxInSpace Account
Re: Script Core 2.6.4 Suggestions
« Reply #21 on: May 03, 2008, 06:53:26 pm »
OnVoteKick(ID: byte, Reason: string) would be a nice event to be called if someone does a vote-kick. Or any other way to at least get the reason why someone should be kicked.
Also a way to nullify a kick-vote, so you can decide what reasons for kick-voting are valid.
Maybe like this:
Code: [Select]
Function OnVoteKick(ID: byte, Reason: string):boolean;
begin
  result := true //let the vote go through
  result := false //nullify the vote, player will not be kicked even if enough players press f12
end;
Come join: EliteCTF
Listen to: My Music

Offline Neosano

  • Camper
  • ***
  • Posts: 253
  • IIAWAK!
Re: Script Core 2.6.4 Suggestions
« Reply #22 on: May 04, 2008, 08:08:21 am »
GetObjectStat: VelX,VelY
SetPlayerVel(ID: byte;VelX, VelY: single)
CancelBonus(ID,Bonus:byte) //can cancel predator, berserker from player
OnPlayerBonusPickUp(ID,BonusID: byte) //or something like that
OnPlayerAmmoChange //if its possible...
OnPlayerChangeStat // for example when GetPlayerStat(ID,'ground') activates
CancelVote

MoveObject(ID: byte; X,Y:single)
MoveFlag(FlagTeam: byte; X,Y:single)
mouse coordinates would be good too...

Add to SpawnObject VelX and VelY

KAWAAAAAAAIIIIIIIIII

Offline shantec

  • Soldier
  • **
  • Posts: 140
  • Get ANGREH!!
Re: Script Core 2.6.4 Suggestions
« Reply #23 on: May 04, 2008, 02:17:10 pm »
You could be able to control which player bot is attacking (Normally nearest player?)
It would be useful ? for making "different" bots.
Also Known As REIMA


Lol Happles (happy apples)

Offline chutem

  • Veteran
  • *****
  • Posts: 1119
Re: Script Core 2.6.4 Suggestions
« Reply #24 on: May 06, 2008, 11:05:49 pm »
It would be super funky cool if you were able to script the bots AI, you would need commands and events specific to the scrip for bots though, so you can control how they react when the see enemies, hit waypoints, control their aim and reloading etc, etc.

This would lead to HUGE improvements in how good the bots are (but say, in the bot skill you could choose easy, normal, hard and scripted (only works if script present)) and you have a seperat .PAS file for each 'action' like aiming and reacting to spotting players.

EDIT: probably not gonna be in the script v2.6.4, but something definitely worth thinking about.
1NK3FbdNtH6jNH4dc1fzuvd4ruVdMQABvs

Offline sai`ke

  • Camper
  • ***
  • Posts: 318
  • Can't be arsed to remove christmas avatar
Re: Script Core 2.6.4 Suggestions
« Reply #25 on: May 07, 2008, 04:17:47 am »
Being able to set jetpack fuel level/maximum on a per player basis.
#soldat.ttw #ttw.gather --- Quakenet!
http://ttwforums.com

Offline EnEsCe

  • Retired Soldat Developer
  • Flamebow Warrior
  • ******
  • Posts: 3101
  • http://enesce.com/
    • [eC] Official Website
Re: Script Core 2.6.4 Suggestions
« Reply #26 on: May 07, 2008, 07:26:56 am »
Keep em' coming guys. Quite afew aren't possible due to sync issues (like the one above this post)

Ill post a larger reply about suggestions when I get time

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: Script Core 2.6.4 Suggestions
« Reply #27 on: May 08, 2008, 02:58:14 pm »
A pre-processor type of thing...
I'm not sure how pascal preprocessor is supost2 be like, but something like...
{$VAR := true}
var
  MapStart: cardinal;
  Players: array[1..32] of record
    Deaths: byte;
    {$IF VAR}
    JoinTime: cardinal;
    {$ENDIF}
  end;

OnJoinGame...
begin
  {$IF VAR}
  Players[Id].JoinTime := GetTickCount();
  {$ENDIF}
end;

to slightly make scripting more efficient when it comes to memory and options in a script

Offline NTxC

  • Major(1)
  • Posts: 34
  • Scripter
Re: Script Core 2.6.4 Suggestions
« Reply #28 on: May 14, 2008, 06:54:31 am »
GetMousePosX(ID: integer);
GetMousePosY(ID: integer);

would be great.  ;)
:[ 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 #29 on: May 14, 2008, 08:19:52 am »
Oh okay, no biggie :).

Here's just a minor gripe, but it would be very convenient if it'd be 'fixed'. When you have multiple included script files and have an error somewhere, the scriptcore engine gives you a line number that's cumulative. It would be nicer to have the line number of the specific file the error is in so you don't have to subtract the length of the other files manually each time.
« Last Edit: May 14, 2008, 08:22:00 am by sai`ke »
#soldat.ttw #ttw.gather --- Quakenet!
http://ttwforums.com

Offline xmRipper

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 742
    • Personal
Re: Script Core 2.6.4 Suggestions
« Reply #30 on: May 18, 2008, 06:37:20 am »
CreateSpark(x,y,velx,vely,style,color,etc...);
Co-Founder / 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 #31 on: May 18, 2008, 07:36:15 am »
procedure onBonusPickup( Type: Byte? );
#soldat.ttw #ttw.gather --- Quakenet!
http://ttwforums.com

Offline TheToast

  • Major
  • *
  • Posts: 52
Re: Script Core 2.6.4 Suggestions
« Reply #32 on: May 18, 2008, 09:46:50 am »
I second JFKs OnVoteKick, or at least a possibility to abort a vote (map or kick). Seen it in Trackmania and it'svery usefull.

Like abort every MapChangeVote when there are only less then 5 kills to do or only 10% Time left or if the map just played.

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: Script Core 2.6.4 Suggestions
« Reply #33 on: May 18, 2008, 05:46:55 pm »
Ability to get few player modded materials (for example, /Txt/font.ini > FontConsoleSize= would be nice to have in order to determine if the console's text will verticall align if linebreaks are used in messages in the console (9 = aligned, i use 7 which doesn't, would be nice to know when making cool-looking multi-line stuff in the console)

Scripting/server option of setting few moded things, such as Txt/font.ini (temporarily while in server)

Offline Neosano

  • Camper
  • ***
  • Posts: 253
  • IIAWAK!
Re: Script Core 2.6.4 Suggestions
« Reply #34 on: May 21, 2008, 05:39:47 am »
i heard about GIFs... well.. how about
GifPlay(ID:byte);
GifStop(ID:byte);
CreateBlood(X,Y:single); - maybe size and type if possible..

i also heard about your trying to move bot.. but, make it possible to move anyways? doesn't matter he loose his AI or not.. for me it would be useful
ForceSwitch(ID:byte); - forces player to switch weapons (like Q button)

urm, how about.. CreateBulletForPlayer?
DrawLineToMap(X,Y,X2,Y2:single,Color:longint); - draws line sticked to map, if possible - add size
CreateDanmer; - creates sumo on your screen
ControlSwitch(ID:byte,Controllable:boolean); - or something.. the player cannot move and shoot while his control is shut down
KAWAAAAAAAIIIIIIIIII

Offline UPNPAD

  • Major(1)
  • Posts: 36
Re: Script Core 2.6.4 Suggestions
« Reply #35 on: May 21, 2008, 06:48:27 am »
Oh I better suggest it here: http://forums.soldat.pl/index.php?topic=11505.0

Add a Weapon variable to OnPlayerDamage (as it is implemented in OnPlayerKill) so it's possible to find out which weapon did the damage.

Offline NTxC

  • Major(1)
  • Posts: 34
  • Scripter
Re: Script Core 2.6.4 Suggestions
« Reply #36 on: May 25, 2008, 01:01:49 pm »
Is it possible to set Soldat's default animations on players? :o

SetAnimation(ID, Animation: byte);

also

LockPlayer(ID: byte; Lock: boolean);

makes player unable to move?
:[ 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 xmRipper

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 742
    • Personal
Re: Script Core 2.6.4 Suggestions
« Reply #37 on: May 25, 2008, 04:12:47 pm »
LockPlayer(ID: byte; Lock: boolean);
You can already do that.
Co-Founder / 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 #38 on: May 31, 2008, 10:10:54 pm »
i'm still really really wanting procedure RespawnPlayer or Respawn(Id: byte);, obviously respawning the player, especially sense setteam doesn't respawn people anymore

Date Posted: May 26, 2008, 06:07:01 pm
Bug: ForwardClient server IP may not be something like "mm.climbing-soldiers.net" for example, says "'mm' is not a valid integer value"
Has been suggested before but... ForwardClientPass(PlayerIP: string; PlayerPort: integer; ServerIP: string; ServerPort: integer; ServerPass: string);

Date Posted: May 31, 2008, 12:34:05 pm
unix time supported in FormatDate or as a separate function

Date Posted: May 31, 2008, 09:38:37 pm
FormatDate containing number of days within the year

Offline Neosano

  • Camper
  • ***
  • Posts: 253
  • IIAWAK!
Re: Script Core 2.6.4 Suggestions
« Reply #39 on: June 03, 2008, 08:15:20 am »
GetPlayerStat(ID,'admin')
KAWAAAAAAAIIIIIIIIII