Author Topic: Scripting Suggestions  (Read 16040 times)

0 Members and 1 Guest are viewing this topic.

Offline Falcon`

  • Flagrunner
  • ****
  • Posts: 792
  • A wanted lagger
Re: Scripting Suggestions
« Reply #80 on: July 23, 2010, 10:02:30 am »
Fix GetPlayerStat(ID, 'Ammo').
God, it sometimes returns so fucking fake values....

Test it yourself, called somewhere at OnWeaponChage with bunch of ForceWeapons
If you're not paying for something, you're not the customer; you're the product being sold.
- Andrew Lewis

Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.

DarkCrusade

  • Guest
Re: Scripting Suggestions
« Reply #81 on: July 23, 2010, 10:24:38 am »
No problem with GetPlayerStat(). It's OnWeaponChange. For example if you access 'Primary' and the ID switched weapons it'll return SecondaryNum ;)

Offline Falcon`

  • Flagrunner
  • ****
  • Posts: 792
  • A wanted lagger
Re: Scripting Suggestions
« Reply #82 on: July 23, 2010, 10:36:05 am »
I already noticed this. But it sometimes returned max ammo, while i had only half or so.
If you're not paying for something, you're not the customer; you're the product being sold.
- Andrew Lewis

Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: Scripting Suggestions
« Reply #83 on: July 23, 2010, 02:09:54 pm »
A scripting event (or some other method) to filter what is seen by admins or on the console itself (more specifically of interest to me, admin-port dump).

DarkCrusade

  • Guest
Re: Scripting Suggestions
« Reply #84 on: July 23, 2010, 02:29:14 pm »
Function OnVoteKick(Voter,Target:Byte):Boolean;
begin
  Result := false;
end;

Voter: ID of the player who voted
Target: ID to be kicked
Result: Set to true to disallow the cast of the vote


Function OnVoteMap(ID:Byte; Map:String):Boolean;
begin
  Result := false;
end;

Voter: ID of the player who voted
Map: Mapname of the voted map
Result: Set to true to disallow the cast of the vote


Function OnVoteKickEnd(Voter,Target:Byte; Success:Boolean):Boolean;
begin
  Result := false;
end;

Voter: ID of the player who voted
Target: ID to be kicked
Success: Kicked=true
Result: Set to true to disallow the vote cast


Function OnVoteMapEnd(Voter:Byte; Map:String; Success:Boolean):Boolean;
begin
  Result := false;
end;

Voter: ID of the player who voted
Map: Map to be played
Success: Successful = true
Result: Set to true to disallow the vote cast

Quite obvious suggestion. We have scripted long enough without it..
« Last Edit: July 23, 2010, 06:14:36 pm by DarkCrusade »

Offline frosty

  • Flagrunner
  • ****
  • Posts: 601
  • Uber Desert Eagle ^^
Re: Scripting Suggestions
« Reply #85 on: July 25, 2010, 09:43:59 pm »
Suggestion for GetPlayerStat:

is Visible? (boolean) (checks to see if the user is in pred mode or not)

just a suggestion, might make it a bit easier for other devs
check out my server! click here

If at first you don't succeed, Improvise! :D

DarkCrusade

  • Guest
Re: Scripting Suggestions
« Reply #86 on: July 26, 2010, 03:20:10 am »
Maybe a bit more advanced:

Function GetPlayerStat(ID,'Mode'):Byte;

Result = 1: Normal
Result = 2: Berserker
Result = 3: Predator
Result = 4: Flamegod


Returns 1 if player is dead.

Offline mich1103

  • Flagrunner
  • ****
  • Posts: 558
  • Did you say chocolate ? O.o
    • ZoMbIe-DeStRoYeR pk server
Re: Scripting Suggestions
« Reply #87 on: July 26, 2010, 10:46:37 am »
Nice suggestion !  ;D
Aleady suggested but EnEsCe didn't read it ...  >:(
Function GetPlayerStat(ID,'Hair'):Byte;
1= Army
2= Punk
3= Mr.T style
4= Dreadlocks
5= Normal

Why should this be added ?
Because in rpg server player will be auto assigned classe if the player have a dreadlock hair :P

We could do the same thing with the hat,helmet or the skin :P


« Last Edit: July 26, 2010, 10:49:46 am by mich1103 »

DarkCrusade

  • Guest
Re: Scripting Suggestions
« Reply #88 on: July 26, 2010, 11:27:35 am »
Code: [Select]
Function GetGostekStat(ID,'Stat'):Variant;

Chain: Dogtags: Byte
Hat: Hatstyle: Byte
Hair1: Hairstyle: Byte
Hair2: Colour of the hair: Longint
Face: Colour of the face: Longint
Body: Colour of the body: Longint
Legs: Colour of the legs: Longint

Same added for SetPlayerStat() would be nice ;)

Offline frosty

  • Flagrunner
  • ****
  • Posts: 601
  • Uber Desert Eagle ^^
Re: Scripting Suggestions
« Reply #89 on: July 26, 2010, 12:59:31 pm »
« Last Edit: July 26, 2010, 01:02:58 pm by frosty »
check out my server! click here

If at first you don't succeed, Improvise! :D

Offline Falcon`

  • Flagrunner
  • ****
  • Posts: 792
  • A wanted lagger
Re: Scripting Suggestions
« Reply #90 on: November 27, 2010, 07:40:23 am »
* FalconPL revives the dead topic

If soldat will be ever developed, please add something like "Dummy=true/false" to .bot files, so i don't have to name bot "Dummy" to make it not moving/shooting/interacting
If you're not paying for something, you're not the customer; you're the product being sold.
- Andrew Lewis

Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.

Offline dnmr

  • Camper
  • ***
  • Posts: 315
  • emotionally handicapped
Re: Scripting Suggestions
« Reply #91 on: November 27, 2010, 07:53:55 am »
* FalconPL revives the dead topic

If soldat will be ever developed, please add something like "Dummy=true/false" to .bot files, so i don't have to name bot "Dummy" to make it not moving/shooting/interacting
+1000 votes