Raised This Month: $12 Target: $400
 3% 

[FAQ/Tutorial] CS Bomb Scripting


Post New Thread Reply   
 
Thread Tools Display Modes
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 11-30-2006 , 20:47   Re: CS Bomb Scripting FAQ/Tutorial
Reply With Quote #21

sighface

You're receiving id as an argument into your function. You don't then re-declare it. In other words, scrap the whole "new id =" line.
__________________
Brad is offline
The Specialist
BANNED
Join Date: Nov 2006
Old 11-30-2006 , 21:00   Re: CS Bomb Scripting FAQ/Tutorial
Reply With Quote #22

but according to VEN thats the only way to get an index from a logevent. Since logevents dont parse indexs jsut names . so using VEN's get_loguser_index function and assigning == to id liek he did on the very first page of this tutorial at the top .
The Specialist is offline
Send a message via AIM to The Specialist
Zenith77
Veteran Member
Join Date: Aug 2005
Old 11-30-2006 , 22:01   Re: CS Bomb Scripting FAQ/Tutorial
Reply With Quote #23

You can't declare a variable with the name of one of the parameters...
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
The Specialist
BANNED
Join Date: Nov 2006
Old 11-30-2006 , 22:22   Re: CS Bomb Scripting FAQ/Tutorial
Reply With Quote #24

i know that know lol .
The Specialist is offline
Send a message via AIM to The Specialist
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 11-30-2006 , 22:55   Re: CS Bomb Scripting FAQ/Tutorial
Reply With Quote #25

can we get a dump for c4s? (incase people want to make their own bomb)
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
VEN
Veteran Member
Join Date: Jan 2005
Old 12-01-2006 , 04:49   Re: CS Bomb Scripting FAQ/Tutorial
Reply With Quote #26

I don't think that the dump info will help to recreate the exact functionality of the CS C4. There are many things that AMXX unable to do. For example you can't create a weaponbox with the packed weapon, etc. We need a direct access to the mod to do such mod-specific things.
But anyway, here is the dump.
Attached Files
File Type: zip c4datadump.zip (8.0 KB, 301 views)
VEN is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 01-01-2007 , 22:05   Re: CS Bomb Scripting FAQ/Tutorial
Reply With Quote #27

Updated the section "How to remove the dropped bomb?" with the better technical method of deleting bomb backpack - "natural" and safe now.
VEN is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 04-12-2007 , 15:17   Re: [FAQ/Tutorial] CS Bomb Scripting
Reply With Quote #28

Updated "Targets" section.
VEN is offline
Zenith77
Veteran Member
Join Date: Aug 2005
Old 04-12-2007 , 21:01   Re: [FAQ/Tutorial] CS Bomb Scripting
Reply With Quote #29

I believe I was going to do this before, but I've decided not to for some reason. Maybe you should look in on how to trigger the c4 explosion "naturally" (probably impossible).
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 04-13-2007 , 09:38   Re: [FAQ/Tutorial] CS Bomb Scripting
Reply With Quote #30

Code:
set_pdata_float(ent, 100 /* win32 offset */, get_gametime())
VEN is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:53.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode