Author Topic: Script Core Suggestions  (Read 72283 times)

0 Members and 1 Guest are viewing this topic.

Offline urraka

  • Soldat Developer
  • Flagrunner
  • ******
  • Posts: 703
Re: Script Core 2.6.4 Suggestions
« Reply #60 on: June 20, 2008, 11:57:01 am »
function OnBattlEyeKick(ID: byte; Reason: Text): Boolean;

ID would be the player and Reason the message that battleye gives. And the return value could avoid player from getting kicked.
urraka

Offline freestyler

  • Soldat Beta Team
  • Camper
  • ******
  • Posts: 326
Re: Script Core 2.6.4 Suggestions
« Reply #61 on: June 21, 2008, 09:00:40 am »
As I said before:
GetCursorXY(ID: byte; X, Y: single);
SetCursorXY(ID: byte; X, Y: single);

Forcing the map's GIFs to start/stop would be awesome, but as I remember, you said it's impossible...

DrawTextAbsolute(ID: byte; Text: string; Delay: integer; Color: longint; Scale: single; X,Y: integer)
Same as DrawText, but the text sticks to the map instead of player's screen (someone suggested it already, but it's great idea).

Speaking of DrawText, could you fix it so if text's opacity is less than 100% then it doesn't blink after fading off?

Offline xmRipper

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 742
    • Personal
Re: Script Core 2.6.4 Suggestions
« Reply #62 on: June 21, 2008, 10:11:37 am »
and that would be good if drawtext function can use multiple times without previous one disappear.

(hmm. Sorry for bad English. That was hard for me =P )
Co-Founder / CTO @ Macellan
Founder Turkish Soldat Community

Offline EnEsCe

  • Retired Soldat Developer
  • Flamebow Warrior
  • ******
  • Posts: 3101
  • http://enesce.com/
    • [eC] Official Website
Re: Script Core 2.6.4 Suggestions
« Reply #63 on: June 21, 2008, 11:17:49 am »
xmRipper I suggest you read this line again:

ONLY REPLY TO THIS THREAD WITH AN IDEA ~ NOT A COMMENT REGARDING SOMEONE ELSE'S IDEA!

So stop it. (not referring to last post, ones before it)

Offline Mr

  • Inactive Soldat Developer
  • Soldier
  • ******
  • Posts: 166
Re: Script Core 2.6.4 Suggestions
« Reply #64 on: June 24, 2008, 09:53:42 am »
Downloads a graphik mod from a webserver ... or the gameserver and loads it: LoadMod(Name, DownloadURL: Text);
ExecOnClient(ID: Byte; Command: Text;); ^^

Offline danmer

  • Camper
  • ***
  • Posts: 466
  • crabhead
Re: Script Core 2.6.4 Suggestions
« Reply #65 on: June 25, 2008, 09:31:56 am »
function DirListing(directory: string): TStringArray;

would be nice (returns the list of all files/folders in the given folder)

Offline Serial K!ller

  • Camper
  • ***
  • Posts: 408
    • Soldat Mods Archive
Re: Script Core 2.6.4 Suggestions
« Reply #66 on: June 29, 2008, 05:36:09 am »
putplayericon(ID,"/downloads/medic.png",Teamviewonly=true/false)
can be very usefull for scripts with classes

Offline iDante

  • Veteran
  • *****
  • Posts: 1967
Re: Script Core 2.6.4 Suggestions
« Reply #67 on: June 29, 2008, 07:29:00 pm »
isInPoly(X,Y: Integer): boolean;
Returns True if the point is in a polygon.
EDIT: Thanks to a tip from DorkeyDear...
Code: [Select]
function isInPoly(X,Y: single): boolean;
var Dist: single;
begin
   Result := iif(RayCast(X,Y,X,Y,Dist,1), false, true);
end;

GetPolyStat(ID: byte;Stat: string): Variant;
IDK if polygons are given ID's, but if so you could have things like... color of all 3 verticies, poly type, opacity, etc.
« Last Edit: June 29, 2008, 10:28:02 pm by iDante »

Offline shantec

  • Soldier
  • **
  • Posts: 140
  • Get ANGREH!!
Re: Script Core 2.6.4 Suggestions
« Reply #68 on: July 01, 2008, 06:49:11 am »
putplayericon(ID,"/downloads/medic.png",Teamviewonly=true/false)
can be very usefull for scripts with classes

This is an IDEA regardin' to Serial K!llers idea:
Everyone would have their own player indicators, which would be changeable with PutPlayerIcon(...)

E.
PlayerChat(ID: byte; Text: string);
Same as BotChat, but would work with players.
« Last Edit: July 01, 2008, 06:53:52 am by shantec »
Also Known As REIMA


Lol Happles (happy apples)

Offline CurryWurst

  • Camper
  • ***
  • Posts: 265
    • Soldat Global Account System
Re: Script Core 2.6.4 Suggestions
« Reply #69 on: July 07, 2008, 05:54:01 am »
- Ability to use pointers - I think that would be a really great script core improvement, because you will have the possibility to do things, which could not be done before, for example a dynamic data management realized with linked lists.

- If possible try to implement a support for overloading functions (KeYDoN told me already that pascal doesn't support overloading functions, however).

- Access to search results of Reg ExpMatch could be pretty useful.
Soldat Global Account System: #soldat.sgas @ quakenet

Offline PKS|Shooter

  • Soldier
  • **
  • Posts: 130
  • Dont fuck with us!
    • PKS - La Familia
Re: Script Core 2.6.4 Suggestions
« Reply #70 on: July 12, 2008, 06:41:24 am »
a Ignore core, works like a Ignore list/Block System, /ign <ID>,  ignore the player.

Offline As de Espada

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1493
  • Mapper
    • My maps
Re: Script Core 2.6.4 Suggestions
« Reply #71 on: July 12, 2008, 08:45:32 am »
particle support
like blood and jets, but controled by the script
All my maps | my latest map: SoldatX Racing Mappack
me making a map on youtube: ctf_FastMade

Offline Avarax

  • Veteran
  • *****
  • Posts: 1529
    • Official Hexer & MMod site
Re: Script Core 2.6.4 Suggestions
« Reply #72 on: July 12, 2008, 09:15:54 am »
Just to make sure he remembers >_<




Hey enesce,
Here's a very personnel request of mine for the upcoming server / client versions:
Add the function to the number keys (1-9 & 0) on the keyboard that when you press them, a special command is sent to the server you're playing on.
These commands would have the only effect of triggering a scriptingcore event on the server like:
Code: [Select]
Hotkey(ID,Number: byte)
This would make total game modifications like Hexer, MMod or Tactical Trenchwars get rid off having to use taunts for fast special ability usage.
Thus, such mods would be way easier to get into for beginners that don't really know yet how to bind taunts or are too lazy to bind them exclusively for that mod.

Thanks for considering ;D

ciao, ava
I like to have one Martini
Two at the very most
Three I'm under the table
Four I'm under the host

Offline iDante

  • Veteran
  • *****
  • Posts: 1967
Re: Script Core 2.6.4 Suggestions
« Reply #73 on: July 18, 2008, 03:56:42 am »
IDK if it is already, but GetPlayerStat(ID,'kills'); should return KILLS only, not points. Possibly add another thing for points?

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: Script Core 2.6.4 Suggestions
« Reply #74 on: July 18, 2008, 01:02:47 pm »
GetPlayerStat(Id, 'Kills') should not be modified, and should return points (due to older script capability), although there should be 'realkills' or something to return the number of kills a player got
Maybe next major change w/ no more capability for older versions this should change to 'points', and 'kills'

Offline lewymati

  • Major(1)
  • Posts: 38
Re: Script Core 2.6.4 Suggestions
« Reply #75 on: July 24, 2008, 03:51:21 am »
1) Make Drawtext and that red kill messages not overdraw another messages - that i would like to see

2) Add abilty to put some additional scenery by scripting, something like:
putscenery(sceneryname:string,x:single,y:single,z-index:integer, optional: rotation,scale etc...)

maybe it will need some client changes, idk... But it will be something awesome... We could mark some places (for ex. mine positions), have a changable camp places :D, lots of new script abilities then

3)
Hey enesce,
Here's a very personnel request of mine for the upcoming server / client versions:
Add the function to the number keys (1-9 & 0) on the keyboard that when you press them, a special command is sent to the server you're playing on.
These commands would have the only effect of triggering a scriptingcore event on the server like:
Code: [Select]
Hotkey(ID,Number: byte)
This would make total game modifications like Hexer, MMod or Tactical Trenchwars get rid off having to use taunts for fast special ability usage.
Thus, such mods would be way easier to get into for beginners that don't really know yet how to bind taunts or are too lazy to bind them exclusively for that mod.

Thanks for considering ;D

ciao, ava
yes yes yes yes yes yes add that!!!

Offline iDante

  • Veteran
  • *****
  • Posts: 1967
Re: Script Core 2.6.4 Suggestions
« Reply #76 on: July 24, 2008, 04:07:53 am »
Well since OnWeaponFire couldn't happen, could you implement like... a variable BulletsFired[1..32] that just increments every time a player fires their gun?

Edit:
Also could like... onPlayerSpeak become a function that we can modify the result of?
by default it would be Result := Text; but it would make actual filters possible, instead of just warning people n stuff.
« Last Edit: July 24, 2008, 06:07:35 pm by iDante »

Offline neverknown

  • Major(1)
  • Posts: 2
Re: Script Core 2.6.4 Suggestions
« Reply #77 on: July 24, 2008, 09:25:44 pm »
dont know if this one has been suggested before but well:

SetPlayerColor(Id, Part, Color)

This little function should let you change the color of a players pants and shirt on the fly ( e.g. while he is on the server ).
So scripts with classes and stuff are able to identify each others classes..

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: Script Core 2.6.4 Suggestions
« Reply #78 on: August 04, 2008, 07:27:53 pm »
GetPlayerStat(byte, 'Shirt'): longint; and other body parts

Date Posted: July 25, 2008, 09:56:45 pm
moving the spawn point of a flag on the server doesnt move it on the client, it flickered at the default spawn point once (unless im mistaken) (actually i deleted the spawn point, and recreated it elsewhere)

Date Posted: July 27, 2008, 09:41:39 pm
GetPlayerStat(Id, 'SecondaryAmmo')

Date Posted: August 04, 2008, 08:20:19 pm
ForceWeapon ammo being 255 to have the player start reloading (for a real 0 amount of ammo)

Offline Norbo

  • Camper
  • ***
  • Posts: 338
Re: Script Core 2.6.4 Suggestions
« Reply #79 on: August 16, 2008, 02:49:09 am »
GetBulletExplosion maybe? that would be kinda hard to make, and u would have to specify the ID of the explosion... but how would u do that.... that would be extremely usefull, but hard to make.