Author Topic: Script Core Suggestions  (Read 85703 times)

0 Members and 2 Guests are viewing this topic.

Offline sai`ke

  • Camper
  • ***
  • Posts: 318
  • Can't be arsed to remove christmas avatar
Re: Script Core 2.6.4 Suggestions
« Reply #80 on: August 16, 2008, 06:40:28 am »
Perhaps a special version of CreateBullet that would send the server to a specific routine on impact. CreateBulletImpact( standard createbullet parameters, 'routinename' ) or something.

Where the routine in question would get the coordinates of the impact passed as input parameters.
For example: function impact( X, Y: single );

Kinda like crossfunc but triggered by the impact. Could be lagtastic if used wrong but would open some nice possibilities for scripted weaponry.
#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 #81 on: August 16, 2008, 09:19:58 am »
Thats a good concept there Sai`ke, sounds interesting. Shall definately have a look into that one

Offline zop

  • Major
  • *
  • Posts: 81
Re: Script Core 2.6.4 Suggestions
« Reply #82 on: August 17, 2008, 08:50:05 pm »
Is there anyone talk about UI?
Weapon menu, mini-map, score point list, any UI show messages or selections should be used to script.

I would like to add a class menu before weapon menu, and show something in mini-map, and some messages in score points.

Maybe scripter can create new UI list for their mod.
« Last Edit: August 18, 2008, 03:20:55 am by zop »

http://122.116.167.31:23238:23238/galavela/?inc=player&name=%5BTomato+Bird%5D+Cibo[/size=1]

Offline Norbo

  • Camper
  • ***
  • Posts: 338
Re: Script Core 2.6.4 Suggestions
« Reply #83 on: August 23, 2008, 09:49:39 am »
another parameter for CreateBulllet, something like,  CreateBullet(standar createbullet params, visibleto) to set the bullet to be visible for what teams, that would be cool on trenchwars servers so both team can see the airstrike...

Offline chutem

  • Veteran
  • *****
  • Posts: 1119
Re: Script Core 2.6.4 Suggestions
« Reply #84 on: August 24, 2008, 12:10:38 am »
Making it so that Poly's have ID's. (You could make the server load them by having the top-most poly having ID 1, etc)

And then you can have a procedure:

OnPlayerPolyCollide(PolyID, PlayerID, PlayerX, PlayerY, PolyType);

You could also have stuff like GetPolyStat and SetPolyStat too.
1NK3FbdNtH6jNH4dc1fzuvd4ruVdMQABvs

Offline Norbo

  • Camper
  • ***
  • Posts: 338
Re: Script Core 2.6.4 Suggestions
« Reply #85 on: August 26, 2008, 03:35:31 am »
GiveBonus(ID,type,time);
a new parameter for give bonus, time, which is how long the bonus will last

Offline SyavX

  • Soldat Beta Team
  • Camper
  • ******
  • Posts: 338
Re: Script Core 2.6.4 Suggestions
« Reply #86 on: August 26, 2008, 03:57:29 am »
changes that have already been proposed

Code: [Select]
GetPlayerStat(ID, 'Admin');

OnVoteKick(Voter, Target: byte; Reason: string): boolean;
OnVoteMap(Voter: byte; MapName: string): boolean;

Plus ability to call StartVoteKick/StartVoteMap even if there was another voting less than 2 min ago.

btw, EnEsCe, fix a mistake in example for GetPiece:
Quote
WriteLn(GetPiece(MyString,' ',0)); //Hello
etc...

Offline zakath

  • Inactive Soldat Developer
  • Veteran
  • ******
  • Posts: 1224
    • Soldatladder
Re: Script Core 2.6.4 Suggestions
« Reply #87 on: September 04, 2008, 08:05:54 am »
Change onplayerDamage to include bullettype that caused the damage
function OnPlayerDamage(Victim,Shooter,type: Byte;Damage: Integer) : integer
So that You can do things like a chance to critical damage with for example ruger.

#soldat.mapping - #soldat.inc - #soldatladder - #soldat.gather.nordic

Offline Norbo

  • Camper
  • ***
  • Posts: 338
Re: Script Core 2.6.4 Suggestions
« Reply #88 on: September 29, 2008, 11:52:48 am »
procedure RespawnFlag(TeamFlag: byte)

TeamFlag = the id of the team that the flag is (so TeamFlag would be 1 for alpha)

kills the flag and resapwns it in its spawnpoint (like after a round in survival mode)

Offline BombSki

  • Flagrunner
  • ****
  • Posts: 927
    • Climbing-soldiers.net
Re: Script Core 2.6.4 Suggestions
« Reply #89 on: September 29, 2008, 12:02:44 pm »

Offline Vyka

  • Major
  • *
  • Posts: 59
Re: Script Core 2.6.4 Suggestions
« Reply #90 on: September 29, 2008, 12:45:05 pm »
GetPlayerStat(ID,'prone')

support prone to available variables in GetPlayerStat, please ;)

Offline Norbo

  • Camper
  • ***
  • Posts: 338

Offline Serial K!ller

  • Camper
  • ***
  • Posts: 408
    • Soldat Mods Archive
Re: Script Core 2.6.4 Suggestions
« Reply #92 on: September 29, 2008, 01:40:32 pm »
putbutton(ID,uniquebuttonname,Xpos,Ypos,"Text",myprocedure)
Deletebutton(ID,uniquebuttonname)

Add a buton on a users screen (f.e. an "Admin" button that open a selection box that shows some actions depending on you authorisation lvl.)

Offline Norbo

  • Camper
  • ***
  • Posts: 338
Re: Script Core 2.6.4 Suggestions
« Reply #93 on: October 01, 2008, 12:18:19 pm »
OnBulletFire(ID,Weapon,VelocityX,VelocityY);
its self-explainable

Offline iDante

  • Veteran
  • *****
  • Posts: 1967
Re: Script Core 2.6.4 Suggestions
« Reply #94 on: October 01, 2008, 12:59:19 pm »
OnBulletFire(ID,Weapon,VelocityX,VelocityY);
its self-explainable
Think about how often that would be called in a 16 vs 16 deathmatch where everyone is using miniguns.

EnEsCe: can OnMapChange be called when the first map loads on a server? You can't call it from ActivateServer because the map isn't loaded by that time.

Offline chutem

  • Veteran
  • *****
  • Posts: 1119
Re: Script Core 2.6.4 Suggestions
« Reply #95 on: October 04, 2008, 04:36:01 pm »
How about adding some stuff to moveplayer, like being able to set the x velocity, y velocity, and side they are facing?
1NK3FbdNtH6jNH4dc1fzuvd4ruVdMQABvs

Offline tk

  • Soldier
  • **
  • Posts: 235
Re: Script Core 2.6.4 Suggestions
« Reply #96 on: October 21, 2008, 12:37:09 pm »
GetPlayerStat(ID, 'aimingX'): single
GetPlayerStat(ID, 'aimingY'): single   (angle of weapon which player is holding)
GetPlayerStat(ID, 'admin'): boolean
GetPlayerStat(ID, 'position'): byte   (0-normal, 1-duck, 2-prone)

AppOnIdleB(ticks: int)
   Like normal apponidle but called 10 times per second. No more apponidle bots and thread functions

KillPlayer(ID, Killer)

SetPlayerGrenades(NumberOfNades: byte; NadeType: boolean{normal or cluster})

SetJetFuel(ID, percent or jetticks)

CreateSpark(x,y, scale, Type)

PlaySound(x, y, range, name)
   Sound played from defined point on the map. If we are far to a source we dont hear the sound or it's less loud.

CreateText(ID, text, TimeDelay, RGB(0,0,0), scale, x, y)
   Text like we can see over the player saying smth, but sticked to defined point on the map.


Could be enabled exploding bullet types? (cluster, flamearrow, missile)
« Last Edit: October 21, 2008, 02:15:27 pm by tk »

Offline NakedSnake

  • Major(1)
  • Posts: 1
Re: Script Core 2.6.4 Suggestions
« Reply #97 on: October 26, 2008, 07:42:18 pm »
What I would like to see is -

DestroyBullet (BulletID: integer);

:)

By my logic - CreateBullet returns the Bullet ID No. - then why can we not have a Destroy Bullet?

Offline miketh2005

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 668
  • What's the URL for www.microsoft.com?
Re: Script Core 2.6.4 Suggestions
« Reply #98 on: October 30, 2008, 03:00:30 am »
I don't script, but here are a few procedure suggestions:

Onbulletcollide - Should have:
if player then
and
if polygon then

because theres no way to track if a bullet hits a polygon, would be nice for a portal sub-gamemode.

umm... these names a pretty sucky, but you can change them:

onplayerdoes: can slow down a player or tell if he is crouching

tellplayerchat: can tell the player to say stuff which is useless...

onbuttonpress: can tell what button the person pressed, prob the most usefull procedure here, think of the possibilities

onnade: can give the player / take away nades

onjet: can change the maximium jet for ALL players, or change it to so much, for ALL players

thats it...
« Last Edit: October 30, 2008, 03:20:05 am by miketh2005 »
Quote from: 'Ando.' pid='12999178' dateline='1309046898'
My new password is secure as shit :)
Mate, I am not sure Shit is even secured nowadays.

Offline chutem

  • Veteran
  • *****
  • Posts: 1119
Re: Script Core 2.6.4 Suggestions
« Reply #99 on: October 31, 2008, 05:38:36 pm »
LoadWeap(ID:byte, FileName:String);

Loads a weapon.ini file with the specified name, to the specified ID (0 for all).

Would need some good protection, as I can see hacks being made to exploit this, so it should be an option like scripting is in soldat.ini.
Would be awesome for scripts that involve skills, you could increase ammo, range and power much more efficiently. (Must not restart server though).
« Last Edit: October 31, 2008, 05:41:18 pm by chutem »
1NK3FbdNtH6jNH4dc1fzuvd4ruVdMQABvs